{"id":718,"date":"2026-02-10T15:32:41","date_gmt":"2026-02-10T22:32:41","guid":{"rendered":"https:\/\/www.ngfamily.dynu.com\/ngwp\/?p=718"},"modified":"2026-04-21T09:45:27","modified_gmt":"2026-04-21T15:45:27","slug":"increasing-for-a-vm-in-proxmox","status":"publish","type":"post","link":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/?p=718","title":{"rendered":"Increasing \/ for a VM in proxmox"},"content":{"rendered":"\n<p>It happens, a lot, you provision a VM, and find out later, it would be nice if the service running on it had more space.  Well, here&#8217;s the skinny.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Resize Hard Disk<\/h4>\n\n\n\n<p>We will presume you know how to associate the Hard Disk that is associated to the \/dev\/sdx you are wanting to increase.  Under the hardware settings for the Virtual Machine, select that Hard Disk and in the Disk Action dropdown menu above, click Resize.<\/p>\n\n\n\n<p>A window will pop up and will ask you how much to increment the disk in GiB.  This is a delta, so if you have 10GB and want to increase it to 30GB, you would type in 20 and click Resize Disk.<\/p>\n\n\n\n<p>This will reflect in the Hard Disk&#8217;s description with size={new expanded size}<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Connect to VM and determine dev name of the disk and partition you want to expand<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>$ lsblk\nNAME              MAJ:MIN RM  SIZE TYPE MOUNTPOINTS\nsda                 8:0    0   30G disk\n\u2514\u2500sda1              8:1    0    1M part\n\u2514\u2500sda2              8:2    0    2G part \/boot\n\u2514\u2500sda3              8:3    0    8G part\n  \u2514\u2500ubuntu--vg-ubuntu--lv 252:0 0 8G lvm \/<\/code><\/pre>\n\n\n\n<p>In this example, we see sda is resized to 30G and we want to use that free space in sda3.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Extend the partition<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo growpart \/dev\/sda 3<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Update LVM of volume change<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo pvresize \/dev\/sda3\n$ sudo lvextend -l +100%FREE \/dev\/mapper\/ubuntu--vg-ubuntu--lv<\/code><\/pre>\n\n\n\n<p>It&#8217;s nice to use +100%FREE as it will take every block from the disk volume<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Resize the ext4 filesystem to address new lvm space<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo resize2fs \/dev\/mapper\/ubuntu--vg-ubuntu--lv<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Profit!<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>It happens, a lot, you provision a VM, and find out later, it would be nice if the service running on it had more space. Well, here&#8217;s the skinny. Resize Hard Disk We will presume you know how to associate the Hard Disk that is associated to the \/dev\/sdx you are wanting to increase. Under [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1054,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[34,28],"tags":[],"class_list":["post-718","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-homelab","category-programming"],"_links":{"self":[{"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=\/wp\/v2\/posts\/718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=718"}],"version-history":[{"count":3,"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=\/wp\/v2\/posts\/718\/revisions"}],"predecessor-version":[{"id":1055,"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=\/wp\/v2\/posts\/718\/revisions\/1055"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=\/wp\/v2\/media\/1054"}],"wp:attachment":[{"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ngfamily.freeddns.org\/ngwp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}