VMware vSphere ESXi
Starting with ESXi 5.1, VMware added S.M.A.R.T. functionality to monitor hard drive health. The S.M.A.R.T. feature records various operation parameters from physical hard drives attached to a local controller. The feature is part of the firmware on the circuit board of a physical hard disk (HDD and SSD).
To read the current data from a disk:
# esxcli storage core device list
t10.ATA_____XXXXX________________________XXXXX
device
is a value found in step 3:# esxcli storage core device smart get -d device
This table breaks down some example output:
Parameter | Value | Threshold | Worst |
Health Status | OK | N/A | N/A |
Media Wearout Indicator | 0 | 0 | 0 |
Write Error Count | N/A | N/A | N/A |
Read Error Count | 118 | 50 | 118 |
Power-on Hours | 0 | 0 | 0 |
Power Cycle Count | 100 | 0 | 100 |
Reallocated Sector Count | 100 | 3 | 100 |
Raw Read Error Rate | 118 | 50 | 118 |
Drive Temperature | 27 | 0 | 34 |
Driver Rated Max Temperature | N/A | N/A | N/A |
Write Sectors TOT Count | N/A | N/A | N/A |
Read Sectors TOT Count | N/A | N/A | N/A |
Initial Bad Block Count | N/A | N/A | N/A |
Note: A physical hard drive can have up to 30 different attributes (the example above supports only 13). For more information, see How does S.M.A.R.T. function of hard disks Work?
Note: The preceding link was correct as of September 2, 2014. If you find the link is broken, provide feedback and a VMware employee will update the link.
A raw value can have two possible results:
Note: The values returned and their meaning for each of these columns can vary by manufacturer. For more information, please consult your hardware supplier.
hex 0xE7 = decimal 231 = "Drive Temperature"
27
, which means 27 degrees Celsius.N/A
or OK
).
ESXi 5.1 also has the /sbin/smartd
daemon in the DCUI installed. This tool does not have any command line switches or interaction with the console. If you run the command in the shell, a S.M.A.R.T. status is reported in the /var/log/syslog.log
file.
For example:XXXX-XX-28T10:15:12Z smartd: [warn] t10.ATA_____
XXXXX
___________________XXXXX
________: below MEDIA WEAROUT threshold (0)
XXXX-XX-28T10:15:12Z smartd: [warn] t10.ATA_____XXXXX
___________________XXXXX
________: above TEMPERATURE threshold (27 > 0)
XXXX-XX-28T10:15:12Z smartd: [warn] t10.ATA_____YYYYY________________________YYYYY: above TEMPERATURE threshold (113 > 0)
Notes:
vm-support
bundle also captures S.M.A.R.T. details in the smartinfo.sh.txt
file. The file can be found in the commands/
directory.