mywindowsdownloads.blogspot.com
Click here for all Free Linux Downloads
Making RAID work A) On Enterprise Linux 4 or above
Creating MIRROR:
Suppose we want to create one RAID1 (Mirror) device md0 with 2 partitions:
- Create 2 additional partitions with at least 100MB each. Use fdisk to create these partitions. Set the partition type (t) to ‘fd’, save and exit:
# fdisk /dev/sda (Let the drive be /dev/sda)
Press n (to create new partition)
Press Enter (for assigning starting cylinder)
+100M (for defining space of 100 MB)
Press t (for changing partition type)
Press 8 then Enter (for telling partition number)
Press fd then Enter (for making it Linux RAID autodetect)
Press p (to see the partition table)
Repeat above process to create another 100MB partition.
Press w (to save changes and quit)
- Make sure that kernel uses these new partitions:
# partprobe ( or restart the system)
- Use mdadm to create one RAID1 device with 2 partitions:
# mdadm -C /dev/md0 -l1 -n2 /dev/sda{8,9}
Here, -C means creating new array, /dev/md0 is the new device name, -l1 means RAID level 1, -n2 means number of disks in this RAID array is 2 and the 2 device are /dev/sda8 and /dev/sda9.
No comments:
Post a Comment