Software RAID status
I have a system running Slackware 9.0 (2.4.20 kernel). I have a RAID1 running on two drives. I want to check for the status of the array, but when I cat /proc/mdstat I get the same response when both drives are running, and when I "fail" one of the drives (kill power to the drive). What can I check to determine the health of the two drives in the array?? I want to awk and sed in order to automatically generate an email on failure of one of the drives.
Thanks in advance for you help. |
OK - here's one way -
the command lsraid will report the status of the array. lsraid -A -a /dev/md? will report status of the array and each component lsraid -A -f -a /dev/md? (where ? is your raid device) reports only failed drives. Thanks - - |
All times are GMT -5. The time now is 06:33 PM. |