Increasing VM bootdisk size does not increase the size on the operating system

Nucker

New Member
Mar 28, 2022
7
0
1
Hey there, so I incremented my storage from 32G to 96G, however when I run df -h, it says I still only have 32G. I am wondering if there is any process I need to go through on the VM itself. I am running Ubuntu.
 
Increasesing the size of the virtual disk is like cloning the data of a physical HDD to a bigger one. You still need to edit your partition table (as the superblocks aren't at the end anymore), expand your partitions, extend your filesystem of that partition. And in case of LVM you also need to extend your PVs, VGs and LVs. So yeah, there is still alot to do inside the VM and you should create a backup first as you can screw up your data while extending stuff.
Thats why thin-provisioning is great. You can start with a 128GB disk, even if you think you just need 32GB and it will only consume as much space as there is real data on it. You can then be generous and will less often run into the problem to increase your virtual disks with all that work that is linked with it.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!