Sunday, May 2, 2010

Command to check the software raid is working fine

Command to check the software raid is working fine:

Check the mdstat file:

# cat /proc/mdstat

You are looking for a line like this:

md0 : active raid1 sdb5[0] sda5[1] 32000 blocks [2/2] [UU]

If the last part ever changes you know one of the drives has failed, ie if it changes to "[2/1] [U_]" then the second drive is out.



No comments:

Post a Comment