mdadm RAID Tutorial

Here is how you make a software RAID (switch to root)

I am currently writing a python script which will automate all these steps by taking in a few parameters from the user. This is work in progress and will be available on my github repository. In the meantime you can use this tutorial as a reference.

lshw -class disk
fdisk /dev/sd*
apt-get install madam
mdadm -C /dev/md0 -v -l 5 -n 3 /dev/sdc1 /dev/sdb1 /dev/sdd1
mke2fs -t ext4 /dev/md0
mkfs.xfs -d su=64k,sw=4 /dev/device
mdadm --detail --scan >> /etc/madadm/mdadm.conf

A line like this will be appended ( ARRAY /dev/md/synapse1:0 metadata=1.2 name=synapse1:0 UUID=04d1879f:4dfc2e39:b25601e0:52b1cf6 )

mkdir /data
vim /etc/fstab

Add this line ( /dev/md0 /data ext4 noatime,rw 0 0 )

shutdown -r now

OR

reboot
Kunal Lillaney

Kunal Lillaney

rss facebook twitter github youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora