I’ve created a LVM (eg. “vg1″) and set the whole space to a single group (eg. “vz”) to have
plenty room for my Proxmox VMs (space directive “all” at LVM creation).
Upon taking cron based snapshots of running VMs, Proxmox said that there’s no space left on
vg1.
INFO: Volume group "vg1" has insufficient free space (0 extents): 256
required.
ERROR: Backup of VM 123 failed - command 'lvcreate --size 1024M --snapshot
--name 'vzsnap-virtual-0' '/dev/vg1/vz'' failed: exit code 5
umount /dev/vg1/vz
e2fsck -f /dev/vg1/vz
mount /dev/vg1/vz
root@proxmox ~ # df /var/lib/vz
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg1-vz 1248378224 15409856 1170053812 2% /var/lib/vz
root@proxmox ~ # df -h /var/lib/vz
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-vz 1.2T 15G 1.1T 2% /var/lib/vz
Looks good. The value of 1K blocks is a bit lower than the actual block size of the whole
filesystem. That’s normal.
Verify the exact block size (LVM does not need to be mounted):
Looks good. Block count 314572800 matches the block count that resize2fs printed after
shrinking.
Unmount filesystem!
umount /dev/vg1/vz
Final check: