[CentOS] 6.2 - How to check for a failed disk using LVM with a hardware RAID (3ware)
Jerry Franz
jfranz at freerun.com
Thu Apr 5 13:36:55 UTC 2012
On 04/05/2012 05:38 AM, Jonathan Vomacka wrote:
> CentOS Community,
>
> What commands can I use to check the disk health of the system when LVM2
> is being used on top of a RAID 10 using a HARDWARE 3ware raid card. The
> OS sees a hardware raid usually as one big drive. Is there a way to
> check the disks individually to see if any are failing, or throwing hard
> or scsi transport errors?
yum install smartmontools
smartctl -a /dev/twa0 -d 3ware,0
You can check each drive by changing '3ware,0' to '3ware,x' where x is
the drive #.
You can automate the checks by configuring /etc/smartd.conf using lines
like:
/dev/twa0 -d 3ware,0 -H -l selftest -l error -o on -S on -s
(O/../../6/22|S/../../1/2|L/../../2/1) -m root at yourdomain.com
Remember to comment out the default line (the first line of
/etc/smartd.conf).
--
Benjamin Franz
More information about the CentOS
mailing list