TOPIC: Snapshot volume chains on LVM
Reproducible: Yes
ISSUE: LVM Size is 1TB, Several VMs exist on the storage. One VM has 200GB disk. and one Snapshot consuming also 200GB as expected. Free space on storage is less than 200GB. Rollback of the snapshot gives this error: Can't allocate new volume vm-116-disk-0.qcow2: lvcreate 'vg_sas_d1/vm-116-disk-0.qcow2' error: Volume group "vg_sas_d1" has insufficient free space (44642 extents): 51208 required. The issue is that the LV vg_sas_d1-vm--116--disk--0.qcow2 is also deleted, leaving only LV vg_sas_d1-snap_vm--116--disk--0_test.qcow2 and the VM in a locked state. qmunlock unlocks the VM but the VM does not start with the following error qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
Questions:
Host Version
Storage Config
Log Sequence
Reproducible: Yes
ISSUE: LVM Size is 1TB, Several VMs exist on the storage. One VM has 200GB disk. and one Snapshot consuming also 200GB as expected. Free space on storage is less than 200GB. Rollback of the snapshot gives this error: Can't allocate new volume vm-116-disk-0.qcow2: lvcreate 'vg_sas_d1/vm-116-disk-0.qcow2' error: Volume group "vg_sas_d1" has insufficient free space (44642 extents): 51208 required. The issue is that the LV vg_sas_d1-vm--116--disk--0.qcow2 is also deleted, leaving only LV vg_sas_d1-snap_vm--116--disk--0_test.qcow2 and the VM in a locked state. qmunlock unlocks the VM but the VM does not start with the following error qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
Questions:
- If there is not enough disk space to perform rollback, do not delete the original LV after the prompt.
- Why does it require another 200GB if the snapshot is being rolled back? This means that before taking a snapshot one must ensure that there is at least 2x free space as the original disk space.
Host Version
Code:
Kernel Version Linux 6.17.4-2-pve (2025-12-19T07:49Z)
Manager Version pve-manager/9.1.4/5ac30304265fbd8e
Storage Config
Code:
lvm: tst01pvecluster-fc-sas
vgname vg_sas_d1
content rootdir,images
saferemove 1
shared 1
snapshot-as-volume-chain 1
Log Sequence
Code:
2026-02-04T14:21:43.000+01:00 pvehost02 pvedaemon[326238]: <testuser> starting task UPID:pvehost02:0007606D:085EC05B:698347E7:qmsnapshot:116:testuser:
2026-02-04T14:21:43.000+01:00 pvehost02 pvedaemon[483437]: <testuser> snapshot VM 116: test
2026-02-04T14:22:21.000+01:00 pvehost02 pvedaemon[326238]: <testuser> end task UPID:pvehost02:0007606D:085EC05B:698347E7:qmsnapshot:116:testuser: OK
2026-02-04T14:27:17.000+01:00 pvehost02 pvedaemon[487719]: <testuser> starting task UPID:pvehost02:00077916:085F42EE:69834935:qmrollback:116:testuser:
2026-02-04T14:27:17.000+01:00 pvehost02 pvedaemon[489750]: <testuser> rollback snapshot VM 116: test
2026-02-04T14:27:20.000+01:00 pvehost02 pvedaemon[489750]: can't allocate new volume vm-116-disk-0.qcow2: lvcreate 'vg_sas_d1/vm-116-disk-0.qcow2' error: Volume group "vg_sas_d1" has insufficient free space (44642 extents): 51208 required.
2026-02-04T14:27:20.000+01:00 pvehost02 pvedaemon[487719]: <testuser> end task UPID:pvehost02:00077916:085F42EE:69834935:qmrollback:116:testuser: can't allocate new volume vm-116-disk-0.qcow2: lvcreate 'vg_sas_d1/vm-116-disk-0.qcow2' error: Volume group "vg_sas_d1" has insufficient free space (44642 extents): 51208 required.
2026-02-04T14:28:49.000+01:00 pvehost02 pvedaemon[326238]: <testuser> starting task UPID:pvehost02:000780FC:085F66CD:69834991:qmrollback:116:testuser:
2026-02-04T14:28:49.000+01:00 pvehost02 pvedaemon[491772]: <testuser> rollback snapshot VM 116: test
2026-02-04T14:28:50.000+01:00 pvehost02 pvedaemon[491772]: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:28:50.000+01:00 pvehost02 pvedaemon[326238]: <testuser> end task UPID:pvehost02:000780FC:085F66CD:69834991:qmrollback:116:testuser: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:29:37.000+01:00 pvehost02 pvedaemon[380591]: <testuser> starting task UPID:pvehost02:000785AF:085F7952:698349C1:qmdelsnapshot:116:testuser:
2026-02-04T14:29:37.000+01:00 pvehost02 pvedaemon[492975]: <testuser> delete snapshot VM 116: test
2026-02-04T14:29:37.000+01:00 pvehost02 pvedaemon[492975]: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:29:37.000+01:00 pvehost02 pvedaemon[380591]: <testuser> end task UPID:pvehost02:000785AF:085F7952:698349C1:qmdelsnapshot:116:testuser: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:31:41.000+01:00 pvehost02 pvedaemon[380591]: <testuser> starting task UPID:pvehost02:0007903A:085FA9E0:69834A3D:qmdelsnapshot:116:testuser:
2026-02-04T14:31:41.000+01:00 pvehost02 pvedaemon[495674]: <testuser> delete snapshot VM 116: test
2026-02-04T14:31:41.000+01:00 pvehost02 pvedaemon[495674]: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:31:41.000+01:00 pvehost02 pvedaemon[380591]: <testuser> end task UPID:pvehost02:0007903A:085FA9E0:69834A3D:qmdelsnapshot:116:testuser: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:37:38.000+01:00 pvehost02 pvedaemon[487719]: <testuser> starting task UPID:pvehost02:0007B258:08603587:69834BA2:qmrollback:116:testuser:
2026-02-04T14:37:38.000+01:00 pvehost02 pvedaemon[504408]: <testuser> rollback snapshot VM 116: test
2026-02-04T14:37:39.000+01:00 pvehost02 pvedaemon[504408]: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:37:39.000+01:00 pvehost02 pvedaemon[487719]: <testuser> end task UPID:pvehost02:0007B258:08603587:69834BA2:qmrollback:116:testuser: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:41:03.000+01:00 pvehost02 pvedaemon[509502]: start VM 116: UPID:pvehost02:0007C63E:08608563:69834C6F:qmstart:116:testuser:
2026-02-04T14:41:03.000+01:00 pvehost02 pvedaemon[326238]: <testuser> starting task UPID:pvehost02:0007C63E:08608563:69834C6F:qmstart:116:testuser:
2026-02-04T14:41:03.000+01:00 pvehost02 pvedaemon[509502]: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory
2026-02-04T14:41:03.000+01:00 pvehost02 pvedaemon[326238]: <testuser> end task UPID:pvehost02:0007C63E:08608563:69834C6F:qmstart:116:testuser: qemu-img: Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': Could not open '/dev/vg_sas_d1/vm-116-disk-0.qcow2': No such file or directory