ESXi S.M.A.R.T. health monitoring for hard drives
- font size decrease font size increase font size
- Print Email
In 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:
- Determine the device parameter to use by running the command:
esxcli storage core device list
- Read the data from the device:
esxcli storage core device smart get -d device
Wheredevice
is a value found in step 1.
- The expected output is a list with all SCSI devices seen by the ESXi host. For example:
t10.ATA_____WDC_WD2502ABYS2D18B7A0________________________WD2DWCAT1H751520
Note: External FC/iSCSI LUNs or virtual disks from a RAID controller might not report a S.M.A.R.T. status.
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, seeHow does S.M.A.R.T. function of hard disks Work?
Note: The preceding link was correct as of December 7, 2012. 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:
- A number between 0-253
- A word (for example, N/A or OK)
Column descriptions
Note: The values returned and their meaning for each of these columns can vary by manufacturer. For more information, please consult your hardware supplier.
- Parameter
This is a translation from the attribute ID to human-readable text. For example:
hex 0xE7 = decimal 231 = "Drive Temperature"
For more information, see the Known ATA S.M.A.R.T. attributes section of the S.M.A.R.T. Wikipedia article.
Note: The preceding link was correct as of December 7, 2012. If you find the link is broken, provide feedback and a VMware employee will update the link.
- Value
This is the raw value reported by the disk. To illustrate a simple Value using the example above, the Drive Temperature is reported as27
, which means 27 degrees Celsius.
A Value can either be a number (0-253) or a word (for example,N/A
orOK
).
- Threshold
The (failure) limit for the attribute.
- Worst
The highest Value ever recorded for the parameter.
smartd daemon
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_____SanDisk_SDSSDX120GG25___________________120506403552________: below MEDIA WEAROUT threshold (0)
XXXX-XX-28T10:15:12Z smartd: [warn] t10.ATA_____SanDisk_SDSSDX120GG25___________________120506403552________: above TEMPERATURE threshold (27 > 0)
XXXX-XX-28T10:15:12Z smartd: [warn] t10.ATA_____WDC_WD2502ABYS2D18B7A0________________________WD2DWCAT1H751520: above TEMPERATURE threshold (113 > 0)
Notes:
- You can stop the daemon by typing Ctrl+c.
- Logged events should be viewed with caution. As can be seen in the example, all three warnings are irrelevant. The output can vary greatly between manufacturers and disk models.
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0013 | 413936 | {main}( ) | .../index.php:0 |
2 | 0.1313 | 4727072 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1313 | 4727072 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.5321 | 12480504 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.5327 | 12504912 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.5338 | 12560240 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.5342 | 12589064 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.5434 | 13027744 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.5434 | 13027744 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.5561 | 13754352 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.5561 | 13754352 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.5612 | 14152736 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.5630 | 14173104 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.6543 | 17197208 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.6543 | 17197208 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.6570 | 17377352 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in Vsphere ESXI
- Read 1709 times
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0013 | 413936 | {main}( ) | .../index.php:0 |
2 | 0.1313 | 4727072 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1313 | 4727072 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.5321 | 12480504 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.5327 | 12504912 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.5338 | 12560240 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.5342 | 12589064 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.5434 | 13027744 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.5434 | 13027744 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.5561 | 13754352 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.5561 | 13754352 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.5612 | 14152736 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.5630 | 14173104 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.6543 | 17197208 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.6543 | 17197208 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.6570 | 17377352 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |