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 -lcfdiskNext choose "Resize" and then "Write".
fdisk -l <pathtomaindevice> #example path: /dev/sdapartedNext choose "print" -> "Resizepart". Enter number of device. Then choose "quit".
pvresize <pathtonewdevice>lvextend -l +100%FREE <pathtolocalpartition>resize2fs <pathtolocalpartition>df -hThen reboot the machine.
