Skip to main content

Increase diskstorage for Linux VMs

To increase the storage drive you first have to increase the storagecapacity in the proxmox admin gui. Then you can use the following commands in this order to increase the size of the volume.

fdisk -l

Next choose "Resize" and then "Write".

fdisk -l <pathtomaindevice> #example path: /dev/sda

Next choose "print" -> "Resizepart". Enter number of device. Then choose "quit".

pvresize <pathtonewdevice>
lvextend -l +100%FREE <pathtolocalpartition>
resize2fs <pathtolocalpartition>
df -h

Then reboot the machine.