{"id":333,"date":"2019-04-24T19:30:27","date_gmt":"2019-04-24T19:30:27","guid":{"rendered":"https:\/\/unsrewiki.1sys1.com\/?p=333"},"modified":"2019-04-24T21:30:29","modified_gmt":"2019-04-24T21:30:29","slug":"expanding-cloud-server-with-block-storage","status":"publish","type":"post","link":"https:\/\/server-help.org\/index.php\/2019\/04\/24\/expanding-cloud-server-with-block-storage\/","title":{"rendered":"Expanding a Cloud Server with Block Storage"},"content":{"rendered":"\n<p>1). After adding the Block Storage and assigning it to your VM in the Cloud Panel login to the server with SSH.<\/p>\n\n\n\n<p>2). From here run fdisk -l to ensure the new drive shows (it should be sdb), if not reboot the server.<\/p>\n\n\n\n<p>3). Run pvs to show your current volume group: <\/p>\n\n\n\n<p>PV         VG     Fmt  Attr PSize    PFree<br>\n  \/dev\/sda2  centos lvm2 a&#8211;  &lt;159.00g       0<\/p>\n\n\n\n<p>4). Using the volume group name from the previous step run:  vgdisplay centos | grep &#8220;PE Size&#8221; <\/p>\n\n\n\n<p>PE Size               4.00 MiB<\/p>\n\n\n\n<p>5). Run the command: pvcreate \/dev\/sdb<\/p>\n\n\n\n<p>6).  In referencing step 4,  Run the command:  vgcreate -s 4 new \/dev\/sdb<\/p>\n\n\n\n<p>7). Run the command: vgmerge centos new<\/p>\n\n\n\n<p>After running this pvs should now show the merged volumes:<\/p>\n\n\n\n<p>  PV         VG     Fmt  Attr PSize    PFree <br>  \/dev\/sda2  centos lvm2 a&#8211;  &lt;499.47g       0 <br>  \/dev\/sdb   centos lvm2 a&#8211;  &lt;499.97g &lt;499.97g <\/p>\n\n\n\n<p>8). You can now use: lvextend -L and resize2fs (ext4) or xfs_growfs (xfs) to resize your partitions.<\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1). After adding the Block Storage and assigning it to your VM in the Cloud Panel login to the server with SSH. 2). From here run fdisk -l to ensure the new drive shows (it should be sdb), if not reboot the server. 3). Run pvs to show your current volume group: PV VG Fmt&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/333"}],"collection":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":2,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/333\/revisions\/335"}],"wp:attachment":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}