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?
Le jeu. 05 avril 2012 08:38:39 CEST, Jonathan Vomacka a écrit:
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?
You can try : man smartctl
smartd can access individual disks behind (supported) RAID controllers.
centos-bounces@centos.org schrieb am 05.04.2012 14:38:39:
Jonathan Vomacka juvix88@gmail.com Gesendet von: centos-bounces@centos.org
05.04.2012 14:44
Bitte antworten an CentOS mailing list centos@centos.org
An
CentOS mailing list centos@centos.org
Kopie
Thema
[CentOS] 6.2 - How to check for a failed disk using LVM with a hardware RAID (3ware)
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? _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi Jonathan,
it depends on your Hardware. I've a 3ware Raid-Kontroller with Linux-Software (cmd-line and Web-gui) to contoll and manage the controller. Just look at the website of 3ware.
Gruß Andreas Reschke ________________________________________________________________
Unix/Linux-Administration Andreas.Reschke@behrgroup.com
On 04/05/2012 02:38 PM, 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?
You need to get the tw_cli tool from the 3ware page. With this you can check the health of the raid and its disks:
# tw_cli /c0 show
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 OK - - 256K 1862.62 ON OFF
Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 931.51 GB 1953525168 WD-WMATV4882192 p1 OK u0 931.51 GB 1953525168 WD-WMATV4911813 p2 OK u0 931.51 GB 1953525168 WD-WMATV4884633 p3 OK u0 931.51 GB 1953525168 WD-WMATV4881597 p4 NOT-PRESENT - - - - p5 NOT-PRESENT - - - - p6 NOT-PRESENT - - - - p7 NOT-PRESENT - - - -
Regards, Dennis
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@yourdomain.com
Remember to comment out the default line (the first line of /etc/smartd.conf).