Saturday, February 20, 2010

Making RAID work contd...

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

We also can check the status of current RAID configuration using mdstat command and check the log messages for any new message regarding this RAID, if any:


# cat /proc/mdstat


# cat /var/log/messages


It will be as follows:




Failing MIRROR:


If by chance any hard disk gets failed (here in this example one of the partitions, say

/dev/sda9), then we will have to fail it and thereafter remove this from the RAID device as follows:


# mdadm --fail /dev/md0 /dev/sda9


# cat /proc/mdstat (again check status)


# cat /var/log/messages (again check messages)


# mdadm --remove /dev/md0 /dev/sda9 (remove the disk / partition from RAID array)


# cat /proc/mdstat (again check status)


# cat /var/log/messages (again check messages)


Adding new device in MIRROR:


Now suppose we have got a working disk / partition which we can add in the RAID, we may do it as follows:



# mdadm --add /dev/md0 /dev


# cat /proc/mdstat (again check status)


To be continued...

No comments:

Post a Comment