{"id":4172,"date":"2015-01-27T19:21:56","date_gmt":"2015-01-27T11:21:56","guid":{"rendered":"http:\/\/rmohan.com\/?p=4172"},"modified":"2015-01-27T19:21:56","modified_gmt":"2015-01-27T11:21:56","slug":"resizing-an-online-multipath-device-3","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4172","title":{"rendered":"Resizing an Online Multipath Device"},"content":{"rendered":"<p><strong>Resizing an Online Multipath Device<\/strong><\/p>\n<p>If you need to resize an online multipath device, use the following procedure:<\/p>\n<p>1. Resize your physical device<\/p>\n<p>2. Use the following command to find the paths to the LUN:<\/p>\n<p># multipath -l<br \/>\n3. Resize your paths.  FOr SCSI devices, writing a 1 to the rescan file for the device causes the SCSI driver to rescan:<\/p>\n<p># echo 1 > \/sys\/block\/device_name\/device\/rescan<br \/>\n4. Resize your multipath device by running the multipathd resize command:<\/p>\n<p># multipath -k&#8217;reisze map mpathX&#8217;<br \/>\n5. Resize the file system (assuming no LVM or DOS partition are used):<\/p>\n<p># resize2fs \/dev\/mapper\/mpathX<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resizing an Online Multipath Device<\/p>\n<p>If you need to resize an online multipath device, use the following procedure:<\/p>\n<p>1. Resize your physical device<\/p>\n<p>2. Use the following command to find the paths to the LUN:<\/p>\n<p># multipath -l 3. Resize your paths. FOr SCSI devices, writing a 1 to the rescan file for the device [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4172"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4172"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4172\/revisions"}],"predecessor-version":[{"id":4173,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4172\/revisions\/4173"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}