{"id":1126,"date":"2014-08-18T11:55:35","date_gmt":"2014-08-18T18:55:35","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1126"},"modified":"2014-08-18T11:55:35","modified_gmt":"2014-08-18T18:55:35","slug":"s-m-a-r-t-status-for-vmware","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1126","title":{"rendered":"S.M.A.R.T. status for VMware."},"content":{"rendered":"<p>I wanted to try to find out the health of my hard drives on a server running VMware ESXi 5.  Not even thinking, I used the smartctl command in one of my linux guests.<\/p>\n<blockquote><p># smartctl &#8211;all \/dev\/sda<br \/>\nsmartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-431.17.1.el6.x86_64] (local build)<br \/>\nCopyright (C) 2002-12 by Bruce Allen, http:\/\/smartmontools.sourceforge.net<\/p>\n<p>Vendor:               VMware<br \/>\nProduct:              Virtual disk<br \/>\nRevision:             1.0<br \/>\nUser Capacity:        107,374,182,400 bytes [107 GB]<br \/>\nLogical block size:   512 bytes<br \/>\nDevice type:          disk<br \/>\nLocal Time is:        Mon Aug 18 11:18:29 2014 PDT<br \/>\nDevice does not support SMART<\/p>\n<p>Error Counter logging not supported<br \/>\nDevice does not support Self Test logging<\/p><\/blockquote>\n<p>When I saw the output above, I was hoping for something I could run from the guest to get the information.  Unfortunately, it looks like this something that has to be done from the host OS.  You need to use the esxcli command to get the information.  First, you need to identify the disks:<\/p>\n<blockquote><p>~ # esxcli storage core device list<br \/>\nt10.ATA_____ST32000542AS________________________________________5XW25D4F<br \/>\n   Display Name: Local ATA Disk (t10.ATA_____ST32000542AS________________________________________5XW25D4F)<br \/>\n   Has Settable Display Name: true<br \/>\n   Size: 1907729<br \/>\n   Device Type: Direct-Access<br \/>\n   Multipath Plugin: NMP<br \/>\n   Devfs Path: \/vmfs\/devices\/disks\/t10.ATA_____ST32000542AS________________________________________5XW25D4F<br \/>\n   Vendor: ATA<br \/>\n   Model: ST32000542AS<br \/>\n   Revision: CC34<br \/>\n   SCSI Level: 5<br \/>\n   Is Pseudo: false<br \/>\n   Status: on<br \/>\n   Is RDM Capable: false<br \/>\n   Is Local: true<br \/>\n   Is Removable: false<br \/>\n   Is SSD: false<br \/>\n   Is Offline: false<br \/>\n   Is Perennially Reserved: false<br \/>\n   Queue Full Sample Size: 0<br \/>\n   Queue Full Threshold: 0<br \/>\n   Thin Provisioning Status: unknown<br \/>\n   Attached Filters:<br \/>\n   VAAI Status: unknown<br \/>\n   Other UIDs: vml.01000000002020202020202020202020203558573235443446535433323030<br \/>\n   Is Local SAS Device: false<br \/>\n   Is Boot USB Device: false\n<\/p><\/blockquote>\n<p>As you can see, this provides a lot interesting information about the drive.  However, if you have a lot of drives, it can be more information than you need.  I used grep to filtered out the unneeded information:<\/p>\n<blockquote><p>~ # esxcli storage core device list | egrep &#8220;^t10&#8221;<br \/>\nt10.ATA_____ST32000542AS________________________________________5XW25D4F<br \/>\nt10.ATA_____WDC_WD20EARX2D00PASB0_________________________WD2DWCAZAK376887<br \/>\nt10.ATA_____WDC_WD20EARS2D00MVWB0_________________________WD2DWMAZA3727224<br \/>\nt10.ATA_____WDC_WD5003ABYX2D18WERA0_______________________WD2DWMAYP2756258\n<\/p><\/blockquote>\n<p>That way, I can identify all the drives in my system in a neat list.<\/p>\n<p>Then, to view the S.M.A.R.T. information:<\/p>\n<blockquote><p>~ # esxcli storage core device smart get -d t10.ATA_____ST32000542AS________________________________________5XW25D4F<br \/>\nParameter                     Value  Threshold  Worst<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-  &#8212;&#8211;  &#8212;&#8212;&#8212;  &#8212;&#8211;<br \/>\nHealth Status                 OK     N\/A        N\/A<br \/>\nMedia Wearout Indicator       N\/A    N\/A        N\/A<br \/>\nWrite Error Count             N\/A    N\/A        N\/A<br \/>\nRead Error Count              111    6          99<br \/>\nPower-on Hours                66     0          66<br \/>\nPower Cycle Count             100    20         100<br \/>\nReallocated Sector Count      100    36         100<br \/>\nRaw Read Error Rate           111    6          99<br \/>\nDrive Temperature             42     0          46<br \/>\nDriver Rated Max Temperature  58     45         54<br \/>\nWrite Sectors TOT Count       200    0          200<br \/>\nRead Sectors TOT Count        N\/A    N\/A        N\/A<br \/>\nInitial Bad Block Count       100    99         100\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to try to find out the health of my hard drives on a server running VMware ESXi 5. Not even thinking, I used the smartctl command in one of my linux guests. # smartctl &#8211;all \/dev\/sda smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-431.17.1.el6.x86_64] (local build) Copyright (C) 2002-12 by Bruce Allen, http:\/\/smartmontools.sourceforge.net Vendor: VMware Product: [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[160,377,33],"class_list":["post-1126","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-esx","tag-smart","tag-vmware"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1126"}],"version-history":[{"count":4,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1126\/revisions"}],"predecessor-version":[{"id":1130,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1126\/revisions\/1130"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}