{"id":868,"date":"2022-01-14T02:11:16","date_gmt":"2022-01-13T20:11:16","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=868"},"modified":"2022-01-14T02:11:28","modified_gmt":"2022-01-13T20:11:28","slug":"how-to-find-drive-error-in-raid-behind-lsi-raid-card","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-find-drive-error-in-raid-behind-lsi-raid-card.html","title":{"rendered":"How to Find Drive Error in RAID Behind LSI RAID Card"},"content":{"rendered":"\n<p>Question: How can I see if the drives behind the hardware raid card using LSI has any reported error or not?<\/p>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>First, to find out if your drive raid arrays are optimal or not, you may run the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[root@bd4 ~]# \/opt\/MegaRAID\/MegaCli\/MegaCli64 -LDInfo -Lall -aAll\n\n\nAdapter 0 -- Virtual Drive Information:\nVirtual Drive: 0 (Target Id: 0)\nName                :dr1\nRAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0\nSize                : 931.0 GB\nSector Size         : 512\nMirror Data         : 931.0 GB\nState               : Optimal\nStrip Size          : 64 KB\nNumber Of Drives    : 2\nSpan Depth          : 1\nDefault Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU\nCurrent Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU\nDefault Access Policy: Read\/Write\nCurrent Access Policy: Read\/Write\nDisk Cache Policy   : Enabled\nEncryption Type     : None\nDefault Power Savings Policy: Controller Defined\nCurrent Power Savings Policy: None\nCan spin up in 1 minute: No\nLD has drives that support T10 power conditions: No\nLD's IO profile supports MAX power savings with cached writes: No\nBad Blocks Exist: No\nIs VD Cached: No\n\n\nVirtual Drive: 1 (Target Id: 1)\nName                :\nRAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0\nSize                : 465.25 GB\nSector Size         : 512\nMirror Data         : 465.25 GB\nState               : Optimal\nStrip Size          : 64 KB\nNumber Of Drives    : 2\nSpan Depth          : 1\nDefault Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU\nCurrent Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU\nDefault Access Policy: Read\/Write\nCurrent Access Policy: Read\/Write\nDisk Cache Policy   : Enabled\nEncryption Type     : None\nDefault Power Savings Policy: Controller Defined\nCurrent Power Savings Policy: None\nCan spin up in 1 minute: Yes\nLD has drives that support T10 power conditions: No\nLD's IO profile supports MAX power savings with cached writes: No\nBad Blocks Exist: No\nIs VD Cached: No\n\n\n\nExit Code: 0x00\n<\/pre>\n\n\n\n<p>This shall result in a key called &#8216;State&#8217;, which would say &#8216;Optimal&#8217; if the raid is healthy. Although, it is possible that your drives have reported a few errors which might indicate a potential drive failure, which hasn&#8217;t been picked up by the RAID state yet. These errors are available under the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/opt\/MegaRAID\/MegaCli\/MegaCli64 pdlist a0<\/pre>\n\n\n\n<p>The above command lists the drive details. There are 3 error\/failure counts, which are important to notice are &#8216;Media Error Count&#8217;, &#8216;Other Error Count&#8217;, and &#8216;Predictive Failure Count&#8217;. If you are seeing the number is changing quickly a few sets of times, then you should look at the drive status closely, as it seems to be producing a hardware failure soon. I have seen several times in my life, that the raid state saying it is &#8216;Optimal&#8217;, but the Media error was reported, soon after, we found the drive was actually failing. <\/p>\n\n\n\n<p>To find out error counts in one go, you may use the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[root@bd4 ~]# \/opt\/MegaRAID\/MegaCli\/MegaCli64 pdlist a0 | grep -i \"Predictive Failure Count\" -B 6\nEnclosure position: 1\nDevice Id: 2\nWWN: 5000c5002834a246\nSequence Number: 2\nMedia Error Count: 0\nOther Error Count: 0\nPredictive Failure Count: 0\n--\nEnclosure position: 1\nDevice Id: 3\nWWN: 5000c500461c9ec6\nSequence Number: 2\nMedia Error Count: 0\nOther Error Count: 0\nPredictive Failure Count: 0\n--\nEnclosure position: N\/A\nDevice Id: 0\nWWN: 4154412020202020\nSequence Number: 2\nMedia Error Count: 0\nOther Error Count: 0\nPredictive Failure Count: 0\n--\nEnclosure position: N\/A\nDevice Id: 1\nWWN: 4154412020202020\nSequence Number: 2\nMedia Error Count: 0\nOther Error Count: 0\nPredictive Failure Count: 0\n<\/pre>\n\n\n\n<p>Look at the count sections it has returned. Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: How can I see if the drives behind the hardware raid card using LSI has any reported error or not? Solution First, to find out if your drive raid arrays are optimal or not, you may run the following command: This shall result in a key called &#8216;State&#8217;, which would say &#8216;Optimal&#8217; if the &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-find-drive-error-in-raid-behind-lsi-raid-card.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Find Drive Error in RAID Behind LSI RAID Card&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[654,653,655,492,656],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/868"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=868"}],"version-history":[{"count":2,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/868\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/868\/revisions\/870"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}