{"id":1110,"date":"2018-03-15T10:24:51","date_gmt":"2018-03-15T10:24:51","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=1110"},"modified":"2018-03-15T10:24:51","modified_gmt":"2018-03-15T10:24:51","slug":"retrieving-smart-status-sda-disk-attached-megaraid-card","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2018\/03\/15\/retrieving-smart-status-sda-disk-attached-megaraid-card\/","title":{"rendered":"Retrieving SMART status from a SDA disk attached to a MegaRAID card"},"content":{"rendered":"<p>Today I realised that manually checking the smart status of a disk required a bit more.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@box ~]# smartctl -a -d megaraid,0 \/dev\/sda\r\nsmartctl 5.43 2016-09-28 r4347 &#x5B;x86_64-linux-2.6.32-696.16.1.el6.x86_64] (local build)\r\nCopyright (C) 2002-12 by Bruce Allen, http:\/\/smartmontools.sourceforge.net\r\n\r\nVendor:               SEAGATE\r\nProduct:              ST3146356SS\r\nRevision:             HS10\r\nUser Capacity:        146,815,733,760 bytes &#x5B;146 GB]\r\nLogical block size:   512 bytes\r\nLogical Unit id:      -----\r\nSerial number:        ----\r\nDevice type:          disk\r\nTransport protocol:   SAS\r\nLocal Time is:        Thu Mar 15 05:18:57 2018 CDT\r\nDevice supports SMART and is Enabled\r\nTemperature Warning Disabled or Not Supported\r\nSMART Health Status: OK\r\n\r\nCurrent Drive Temperature:     32 C\r\nDrive Trip Temperature:        68 C\r\nElements in grown defect list: 15\r\nVendor (Seagate) cache information\r\n  Blocks sent to initiator = 3694557980\r\n  Blocks received from initiator = 4259977977\r\n  Blocks read from cache and sent to initiator = 2859908284\r\n  Number of read and write commands whose size &lt;= segment size = 1099899109\r\n  Number of read and write commands whose size &gt; segment size = 0\r\nVendor (Seagate\/Hitachi) factory information\r\n  number of hours powered up = 65098.07\r\n  number of minutes until next internal SMART test = 23\r\n\r\nError counter log:\r\n           Errors Corrected by           Total   Correction     Gigabytes    Total\r\n               ECC          rereads\/    errors   algorithm      processed    uncorrected\r\n           fast | delayed   rewrites  corrected  invocations   &#x5B;10^9 bytes]  errors\r\nread:   105645673        6         0  105645679   105645679      65781.538           0\r\nwrite:         0        0        38        38         45      48511.618           7\r\nverify: 48452245        7         0  48452252   48452259      43540.092           7\r\n\r\nNon-medium error count:       48\r\n\r\nSMART Self-test log\r\nNum  Test              Status                 segment  LifeTime  LBA_first_err &#x5B;SK ASC ASQ]\r\n     Description                              number   (hours)\r\n# 1  Background long   Completed                  16       1                 - &#x5B;-   -    -]\r\n# 2  Background short  Completed                  16       0                 - &#x5B;-   -    -]\r\n<\/pre>\n<p>In order to retrieve this detail you need to use -d megaraid,n where n is the disk id number. Try 0, 1, 2, 3, etc. Or use the megaraidCLI to get a list of all the disks.  I dunno I thought it was worth mentioning at least. It always pays to check this if customer is having weird I\/O troubles. Quite a lot of detail is provided about errors the disk encounters. So looking here, even if SMART OK. Gives you an idea if any test failing for disk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I realised that manually checking the smart status of a disk required a bit more. &#x5B;root@box ~]# smartctl -a -d megaraid,0 \/dev\/sda smartctl 5.43 2016-09-28 r4347 &#x5B;x86_64-linux-2.6.32-696.16.1.el6.x86_64] (local build) Copyright (C) 2002-12 by Bruce Allen, http:\/\/smartmontools.sourceforge.net Vendor: SEAGATE Product: &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2018\/03\/15\/retrieving-smart-status-sda-disk-attached-megaraid-card\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,37,63,10],"tags":[],"class_list":["post-1110","post","type-post","status-publish","format-standard","hentry","category-data-loss","category-disaster-recovery","category-disk-tools","category-filesystem"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/1110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1110"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/1110\/revisions"}],"predecessor-version":[{"id":1111,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/1110\/revisions\/1111"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=1110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=1110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}