Thursday, February 18, 2010

Making RAID work


Click Here For Free Windows Downloads
mywindowsdownloads.blogspot.com

Click here for all Free Linux Downloads



Blog address for Linux in Hindi


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:


  1. 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)


  1. Make sure that kernel uses these new partitions:


# partprobe ( or restart the system)


  1. 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.


To be continued...

No comments:

Post a Comment