Re: 6.2 - How to check for a failed disk using LVM with a hardware RAID (3ware)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxxxx

Remember to comment out the default line (the first line of 
/etc/smartd.conf).

-- 
Benjamin Franz
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux