jueves, 9 de abril de 2015

Installing raid 10 (software)

Dependencies:
apt-get install mdadm

Creating a raid 10 partition:
mdadm -v --create /dev/md0 --level=raid10 --raid-devices=4 /dev/sda2 /dev/sdb1 /dev/sdc1 /dev/sdd1

Formating the partition:
mkfs.xfs /dev/md0

Show the partition details:
mdadm --detail --scan --verbose

ARRAY /dev/md1 metadata=1.2 name=ion:1 UUID=aa1f85b0:a2391657:cfd38029:772c560e
ARRAY /dev/md2 metadata=1.2 name=ion:2 UUID=528e5385:e61eaa4c:1db2dba7:44b556fb

And write to  /etc/mdadm/mdadm.conf (like this):
ARRAY /dev/md1 UUID=aa1f85b0:a2391657:cfd38029:772c560e
ARRAY /dev/md2 UUID=528e5385:e61eaa4c:1db2dba7:44b556fb

Run the command:
sudo update-initramfs -u

Finally, select the directory to mount the new partition, edit the file config /etc/fstab.
 

No hay comentarios: