{"id":580,"date":"2018-01-17T12:53:34","date_gmt":"2018-01-17T11:53:34","guid":{"rendered":"http:\/\/www.simweb.ch\/blog\/?p=580"},"modified":"2018-01-17T12:54:30","modified_gmt":"2018-01-17T11:54:30","slug":"megaraid-consistency-check-stuck","status":"publish","type":"post","link":"https:\/\/www.simweb.ch\/blog\/2018\/01\/megaraid-consistency-check-stuck\/","title":{"rendered":"MegaRAID drive inconsistent: consistency check stuck"},"content":{"rendered":"<p>Many server vendors ship their servers with branded MegaRAID RAID controllers. The relationship I have with the many flavours they come in is sometimes a bit poluted I dare to saay.<\/p>\n<p>An excellent quick guide to the more modern StorCLI utility available to Linux, Windows, FreeBSD and others is Thomas Krenn's <a href=\"https:\/\/www.thomas-krenn.com\/de\/wiki\/StorCLI\">Wiki page on StorCLI<\/a>. More often than not I have to look up in the CLI reference made available by (today) Broadcom.<\/p>\n<p>Now I've come across a slightly stubborn controller that reported a Virtual Drive not being consistent. <\/p>\n<p>I've come across a system with an IBM-branded MegaRAID controller where one of the virtual disks (a RAID5) show an optimal state but not consistent.<br \/>\n<code><br \/>\n# \/opt\/MegaRAID\/storcli\/storcli64 \/c0 show<br \/>\nGenerating detailed summary of the adapter, it may take a while to complete.<\/p>\n<p>CLI Version = 007.0409.0000.0000 Nov 06, 2017<br \/>\nOperating system = Linux3.2.0-5-amd64<br \/>\n[...]<\/p>\n<p>Product Name = ServeRAID M5110<br \/>\n[...]<br \/>\nFW Package Build = 23.34.0-0018<br \/>\nBIOS Version = 5.50.03.0_4.17.08.00_0x06110200<br \/>\nFW Version = 3.460.105-6456<\/p>\n<p>[...]<\/p>\n<p>VD LIST :<br \/>\n=======<\/p>\n<p>---------------------------------------------------------------<br \/>\nDG\/VD TYPE  State Access Consist Cache Cac sCC       Size Name<br \/>\n---------------------------------------------------------------<br \/>\n0\/0   RAID1 Optl  RW     Yes     RWBD  -   ON  278.464 GB<br \/>\n1\/1   RAID5 Optl  RW     No      RWBD  -   ON    3.635 TB<br \/>\n---------------------------------------------------------------<br \/>\n<\/code><\/p>\n<p>I've attempted to start a consistency check on that VD but the controller always reported it couldn't:<\/p>\n<p><code><br \/>\nroot@ieu04-sr21:~# \/opt\/MegaRAID\/storcli\/storcli64 \/c0 \/v1 start cc<br \/>\n[...]<br \/>\n------------------------------------------------<br \/>\nVD Operation Status ErrCd ErrMsg<br \/>\n------------------------------------------------<br \/>\n 1 CC        Failed   255 Start CC not possible<br \/>\n------------------------------------------------<br \/>\n<\/code><\/p>\n<p>At first I suspected a running patrol read would block it. (storcli64 \/c0 show pr) but the consistency check wouldn't start afterwards either. In the end after trying to resume it it was finally OK:<\/p>\n<p><code><br \/>\n# \/opt\/MegaRAID\/storcli\/storcli64 \/c0 \/v1 show cc<br \/>\n[...]<br \/>\n--------------------------------------------------<br \/>\nVD Operation Progress% Status Estimated Time Left<br \/>\n--------------------------------------------------<br \/>\n 1 CC        -         Paused -                   <\/p>\n<p># \/opt\/MegaRAID\/storcli\/storcli64 \/c0 \/v1 resume cc<br \/>\nCLI Version = 007.0409.0000.0000 Nov 06, 2017<br \/>\nOperating system = Linux3.2.0-5-amd64<br \/>\nController = 0<br \/>\nStatus = Success<br \/>\nDescription = Resume CC Operation Success<br \/>\n<\/code><\/p>\n<p>Afterwards the consistency check quickly ended as done and the alert issued by the monitoring system got cleared. Nonetheless I manually started a consistency check in order to see if any issues would be found. I guess the consistency check was paused at some point in time due  to a preceeding firmware updated but wasn't restarted automatically afterwards.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many server vendors ship their servers with branded MegaRAID RAID controllers. The relationship I have with the many flavours they come in is sometimes a bit poluted I dare to saay. An excellent quick guide to the more modern StorCLI utility available to Linux, Windows, FreeBSD and others is Thomas Krenn&#8217;s Wiki page on StorCLI. &#8230; <a class=\"moretag\" href=\"https:\/\/www.simweb.ch\/blog\/2018\/01\/megaraid-consistency-check-stuck\/\">more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[62,24,63],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-hardware","tag-linux","tag-megaraid"],"_links":{"self":[{"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":0,"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simweb.ch\/blog\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}