SMART disk monitoring tool that provide us with the information of overall hard disk health status. The SMART it self stand for Self Monitoring Analysis and Reporting Tool and on Linux .
root@tester [~]# rpm -qa smartmontools
smartmontools-5.38-3.el5
On centos or Redhat you can use yum install smartmontools to install
syntax:
smartctl -a -d 3ware,N /dev/tweYsmartctl -a -d 3ware,N /dev/twaY
Devices /dev/sda and /dev/twe0 is used with 3ware series 6000, 7000, and 8000 controllers that use the 3x-xxxx driver.
/dev/sda form is deprecated starting with the Linux 2.6 kernel.
/dev/twa0 is used with 3ware 9000 series controllers, which use the 3w-9xxx driver.
You can also check on the series with the below command:
root@tester [~]# lspci |grep 3ware
0a:00.0 RAID bus controller: 3ware Inc 9650SE SATA-II RAID PCIe (rev 01)
N is the disk number ie. 3ware port number. You can check it with
root@tester [~]# ./tw_cli info
Ctl Model (V)Ports Drives Units NotOpt RRate VRate BBU
------------------------------------------------------------------------
c0 9650SE-8LPML 8 6 2 0 1 1 OK
root@tester [~]# ./tw_cli info c0
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-5 VERIFYING - 55% 64K 2095.44 ON ON
u1 RAID-0 OK - - 64K 1862.62 ON OFF
Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK u0 698.63 GB 1465149168 WD-WCAPT0861355
p1 OK u0 698.63 GB 1465149168 WD-WCAPT0902164
p2 OK u0 698.63 GB 1465149168 WD-WCAPT0900512
p3 OK u0 698.63 GB 1465149168 WD-WCAPT0861173
p4 OK u1 931.51 GB 1953525168 WD-WCASJ1648096
p5 OK u1 931.51 GB 1953525168 WD-WCASJ1648042
p6 NOT-PRESENT - - - -
p7 NOT-PRESENT - - - -
Name OnlineState BBUReady Status Volt Temp Hours LastCapTest
---------------------------------------------------------------------------
bbu On Yes OK OK OK 0 xx-xxx-xxxx
bbu - battery backup unit.
You can check the health of the disk with the following syntax. For more details you can check with the smartctl man page.
root@tester [~]# smartctl -H -d 3ware,1 /dev/twa0
smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Command to check the smart info
# smartctl -a -d 3ware,0 /dev/twa0
# smartctl -a -d 3ware,1 /dev/twa0
root@tester [~]# smartctl -a -d 3ware,0 /dev/twa0
smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar RE Serial ATA family
Device Model: WDC WD7500AYYS-01RCA0
Serial Number: WD-WCAPT0861355
Firmware Version: 30.04G30
User Capacity: 750,156,374,016 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Wed May 2 22:25:49 2012 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x84) Offline data collection activity
was suspended by an interrupting command from host.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (15960) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off supp ort.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 198) minutes.
Conveyance self-test routine
recommended polling time: ( 6) minutes.
SCT capabilities: (0x303f) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_ FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0003 191 187 021 Pre-fail Always - 7433
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 82
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x000e 200 200 051 Old_age Always - 0
9 Power_On_Hours 0x0032 055 055 000 Old_age Always - 32896
10 Spin_Retry_Count 0x0012 100 253 051 Old_age Always - 0
11 Calibration_Retry_Count 0x0012 100 253 051 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 79
192 Power-Off_Retract_Count 0x0032 192 192 000 Old_age Always - 6053
193 Load_Cycle_Count 0x0032 198 198 000 Old_age Always - 6055
194 Temperature_Celsius 0x0022 124 109 000 Old_age Always - 28
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 051 Old_age Offline - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
No comments:
Post a Comment