{"id":174,"date":"2009-11-15T00:41:57","date_gmt":"2009-11-14T16:41:57","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=174"},"modified":"2009-11-15T00:41:57","modified_gmt":"2009-11-14T16:41:57","slug":"metastat-needs-maintenance-metareplace","status":"publish","type":"post","link":"http:\/\/www.sysadmindayph.com\/blog\/metastat-needs-maintenance-metareplace\/","title":{"rendered":"Metastat Needs Maintenance Metareplace"},"content":{"rendered":"<p>Guilty! Putting all those Metastat keywords on one subject, that&#8217;s me! ANyway, I don&#8217;t want to stale this blog so once in a while I&#8217;m going to be posting some bits and pieces of Unix tools\/tips.. and here&#8217;s a new one about SVM&#8230; Responding to Disk Errors courtesy of BigAdmin!<\/p>\n<p><!--more--><\/p>\n<p>Got a page.. something like &#8220;Fault found by metastat&#8221; in short description in Remedy&#8230; <\/p>\n<p><code># metastat | grep Need<br \/>\n      State: Needs maintenance<br \/>\n    State: Needs maintenance <\/code><\/p>\n<p>Which disk?<\/p>\n<p><code># metastat d9<br \/>\nd9: Mirror<br \/>\n    Submirror 0: d19<br \/>\n      State: Needs maintenance<br \/>\n    Submirror 1: d29<br \/>\n      State: Okay<br \/>\n    Pass: 1<br \/>\n    Read option: roundrobin (default)<br \/>\n    Write option: parallel (default)<br \/>\n    Size: 134221440 blocks (64 GB)<\/p>\n<p><strong>d19: Submirror of d9<\/strong><br \/>\n    State: Needs maintenance<br \/>\n    Invoke: metareplace d9 c0t2d0s5 <new device><br \/>\n    Size: 134221440 blocks (64 GB)<br \/>\n    Stripe 0:<br \/>\n        <strong>Device <\/strong>    Start Block  Dbase        State Reloc Hot Spare<br \/>\n        <strong>c0t2d0s5<\/strong>          0     No     Maintenance   Yes <\/p>\n<p>d29: Submirror of d9<br \/>\n    State: Okay<br \/>\n    Size: 134221440 blocks (64 GB)<br \/>\n    Stripe 0:<br \/>\n        Device     Start Block  Dbase        State Reloc Hot Spare<br \/>\n        c0t3d0s5          0     No            Okay   Yes <\/p>\n<p>Device Relocation Information:<br \/>\nDevice   Reloc  Device ID<br \/>\nc0t2d0   Yes    id1,sd@SSEAGATE_ST373307LSUN72G_3HZ6Y1EN000074312CVW<br \/>\nc0t3d0   Yes    id1,sd@SSEAGATE_ST373307LSUN72G_3HZ6Y46Y0000743249BK<br \/>\n<\/code><\/p>\n<p>Check for hard errors to verify if this disk can really be replaced&#8230; if it passed (on your criteria), you can try re-syncing it&#8230;<\/p>\n<p><code>c# metareplace -e  d9 c0t2d0s5<br \/>\nd9: device c0t2d0s5 is enabled<\/code><\/p>\n<p>Verify that it&#8217;s doing what it is expected..<\/p>\n<p><code># metastat d9<br \/>\nd9: Mirror<br \/>\n    Submirror 0: d19<br \/>\n      State: Resyncing<br \/>\n    Submirror 1: d29<br \/>\n      State: Okay<br \/>\n    Resync in progress: 0 % done<br \/>\n    Pass: 1<br \/>\n    Read option: roundrobin (default)<br \/>\n    Write option: parallel (default)<br \/>\n    Size: 134221440 blocks (64 GB)<\/p>\n<p><\/code><\/p>\n<p>And we wait&#8230;..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Guilty! Putting all those Metastat keywords on one subject, that&#8217;s me! ANyway, I don&#8217;t want to stale this blog so once in a while I&#8217;m going to be posting some bits and pieces of Unix &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,25,8],"tags":[301,300,299,111,112],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-solaris","category-solaris-10","category-tips","tag-meta-device","tag-metareplace","tag-metastat","tag-svm","tag-volume-manager"],"_links":{"self":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":0,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}