lsblk
df -h
sudo pvs; sudo vgs; sudo lvs # if using LVM
Check whether the VM has snapshots. Resizing a disk that has snapshots can be problematic on some storage types, such as LVM-thin or raw files. Delete old snapshots if they are no longer needed.
Method A: Grow the existing disk
A1. Resize on the Proxmox host
GUI: VM → Hardware → select Hard Disk → Disk Action → Resize → enter the size increment in GB.
CLI:
bash
qm resize <VMID> scsi0 +50G
Use your actual disk name (scsi0, virtio0, sata0). Disks can only be grown, not shrunk.
A2. Rescan inside the Debian VM
bash
lsblk
# If the new size isn't shown:
echo 1 | sudo tee /sys/class/block/sda/device/rescan
Replace sda with your disk.
A3. Grow the partition
bash
sudo apt install cloud-guest-utils # provides growpart
sudo growpart /dev/sda 1 # disk, then partition number
Note the space between sda and 1. If the root partition is not the last one on the disk, for example when swap sits after it, you will need parted or fdisk instead. Alternatively, use the free space to create a new partition.
GUI: VM → Hardware → Add → Hard Disk. Choose the bus (SCSI is recommended), the storage and the size. Enable Discard and SSD emulation if the storage is thin-provisioned or SSD.
CLI:
bash
qm set <VMID> --scsi1 <storage>:100
The size is in GB.
B2. Detect the disk in the VM
bash
lsblk
# Rescan if needed:
echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan
df -h
lsblk
sudo mount -a # should return no errors
3. Rollback
Restore from the snapshot or backup taken in step 2.
bash
qm rollback <VMID> <snapname>
For Method B before any data is written, unmount the disk, remove the /etc/fstab entry, then detach and delete the disk in VM → Hardware.
A grown disk cannot be shrunk. Rollback means restoring from backup.
4. Post-checks
Applications and services are running normally.
df -h shows the expected size.
A reboot test confirms the mounts persist (Method B).
Delete the temporary snapshot once you are satisfied, because old snapshots consume space and hurt performance.
If you tell me your disk layout (lsblk and df -h output), whether the VM uses LVM, and the storage type (LVM-thin, ZFS, Ceph, directory), I can tailor the exact commands.