Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building Networks and Servers using Beaglebone

You're reading from  Building Networks and Servers using Beaglebone

Product type Book
Published in May 2015
Publisher
ISBN-13 9781784390204
Pages 110 pages
Edition 1st Edition
Languages

Preparing the RAID set


In this section, we will build the actual software RAID drive from our previously prepared and formatted physical drives.

Confirming whether RAID is correctly initialized

The /proc/mdstat file is a dynamically modified log file, which provides the current status of all the RAID devices on the system. We can confirm that the initialization is complete by displaying the file, with the following command:

cat /proc/mdstat

This may take some time to complete, depending on the size of the attached drives.

The preceding screenshot shows the result of this command. You will notice that our array is called md0 and that it consists of two physical drives, called sda and sdb.

It's now time to format the drives in our RAID array. We will use the mkfs.ext4 command to do this, as shown in the screenshot that follows the command line:

mkfs.ext4 /dev/md0

Creating the Mdadm.conf configuration file

The new Mdadm installer creates an mdadm.conf file in the /etc/mdadm directory.

All the partitions...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}