Is there a command I can use to check the health of the software RAID 1 that I am running. Any command to check the health of the individual disks?
Look at http://www.samag.com/documents/s=9102/sam0404a/0404a.htm
if ( open( F, "/proc/mdstat" ) ) { print "RAID detected: "; @file = <F>; if ( / \[(\d)\/(\d)\] / && $2 ne $1 ) { print "NOT OK\n"; } else { print "OK\n"; } }
You can use a bit of perl to detect mdstat errors. Hope it helps.
-- Pau Montero Parés http://www.imente.com - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html