Skip to main content

Sofware RAID from the command line

By October 21, 2013September 12th, 2022No Comments


This week I have come across another large UK blue-chip company using software RAID on SUSE Linux. This, I think, illustrates that there is still a need to look at managing software RAID from the command line. This of course can be managed though the GUI YaST but as with most things the command line is easy and fast with no reliance on the availability of the X Server. We need to create software raid partitions, type FD and then add them to are raid array with mdadm.

	mdmadm --create /dev/md0 --chunk=4 --level=1 --raid-devices=2 /dev/sda6 /dev/sda7
	mkfs.ext3 /dev/md0
	chkconfig -a
	mdadm --detail --scan >> /etc/mdadm.conf
	echo "/dev/md0 /data  ext3  defaults 0  2" >> /etc/fstab
	mount -a