{"id":6915,"date":"2017-08-25T14:53:30","date_gmt":"2017-08-25T06:53:30","guid":{"rendered":"http:\/\/rmohan.com\/?p=6915"},"modified":"2017-08-25T14:53:30","modified_gmt":"2017-08-25T06:53:30","slug":"pvresize-command","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6915","title":{"rendered":"pvresize command"},"content":{"rendered":"<h2>Resolution<\/h2>\n<p>pvresize is a tool to resize Physical Volume which may already be in a volume group and have active logical volumes allocated on it.<\/p>\n<p>Expand the PV on \/dev\/sda1 after enlarging the partition with fdisk:<\/p>\n<div class=\"code-raw\">\n<div class=\"code-raw-toolbar\"><\/div>\n<pre><code>pvresize \/dev\/sda1\r\n<\/code><\/pre>\n<\/div>\n<p>Shrink the PV on \/dev\/sda1 prior to shrinking the partition with fdisk (ensure that the PV size is appropriate for your intended new partition size):<\/p>\n<div class=\"code-raw\">\n<div class=\"code-raw-toolbar\"><\/div>\n<pre><code>pvresize --setphysicalvolumesize 40G \/dev\/sda1<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Resolution <\/p>\n<p>pvresize is a tool to resize Physical Volume which may already be in a volume group and have active logical volumes allocated on it.<\/p>\n<p>Expand the PV on \/dev\/sda1 after enlarging the partition with fdisk:<\/p>\n<p> pvresize \/dev\/sda1 <\/p>\n<p>Shrink the PV on \/dev\/sda1 prior to shrinking the partition with fdisk (ensure that the PV size [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6915"}],"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=6915"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6915\/revisions"}],"predecessor-version":[{"id":6916,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6915\/revisions\/6916"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}