Creating a software RAID1 under RHEL
Get the Flash Player to see this player.
1. Create your two partitions both which need to be equal size for mirroring.
-> fdisk /dev/sdc
– Perform this action twice to create two seperate partitions –
n (add new partition)
p (Primary Partition)
1 (Start at 1st cylinder)
512 (end at last cylinder)
t (change partition type)
num (the number of the partition, refer to your parittion listing)
fd (Linux raid auto)
– After done creating 2 partitions type raid save your changes –
w (write changes to disk)
-> partprobe (sync disc and create block devices)
2. Create your block device if one does not exist.
-> /dev/MAKDEV md0
3. Create your RAID1 with your two partitions using your new Block device.
-> mdadm -c /dev/md0 -l 1 -n 2 /dev/sdc1 /dev/sdc2
– After creating your RAID you can check the build status in /proc/mdstat –
4. Next step is to create your Filesystem on this block device.
-> mkfs.ext3 /dev/md0

