SES by degreeadvantage.com

Saturday, March 8, 2008

RAID

Redundant Array Of Inexpensive Disk

RAID is a series of disk which can save your data even if there is catastrophic failure on one of the disk

RAID are classified as RAID0, RAID1 and RAID 5

RAID 0 : require minimum 2 HDD and also known as stripping without parity

RAID 1: require minimum 2 HDD and also known as disk mirroring

RAID 5: minimum 3 HDD requirement and also known as stripping with parity

First we create the two partition say each of 100MB and then change its type to (‘fd’) Raid

Now we create a RAID

#mdadm –C /dev/md0 –level=1 –raid-disks=2 /dev/hda8 /dev/hda9

Now check the raid

#cat /proc/mdstat

‘OR’

#mdadm --detail /dev/md0

Format the newly created RAID

#mkfs.ext3 /dev/md0

Now mount it

#mkdir /raid

#mount /dev/md0 /raid

In order to check first we fail any one of the partition

#mdadm --manage /dev/md0 --fail /dev/hda8

Check the status of the RAID

#mdadm --detail /dev/md0

Removing the failure partition

#mdadm --manage /dev/md0 --remove /dev/hda8

To add new disk partition

#mdadm --manage /dev/md0 --add /dev/hda10

Note:

In order to add new partition first we create the partition and change its type to ‘fd’

 
Free Search Engine Submission thanks to: Create a Website