[SOLVED] ZFS: When you delete an snapshot, sometimes it is not really deleted

fireon

Distinguished Member
Oct 25, 2010
4,610
546
183
Austria/Graz
deepdoc.at
Hello,

today i browsed throug my zpool and i see some snapshots. I remember that i have deleted them. And yes via webgui they sucessfully were deleted. No Error. But they were not gone away real. Then i deleted them manualy with "zfs destroy" ok.

Then i see on VM that should be deleted too, the whole vm. I see an snapshot at cmd. Same thing. Deleted few weeks ago. Ok, in webgui the snapshot is gone, so i clicked on delete vm:

Code:
TASK ERROR: command 'zfs destroy -r v-machines/vm-108-disk-1' failed: got timeout

But there was also an snapshot. I deleted the snapshot manually. And after that i was able to delete whole vm via webui.

Code:
proxmox-ve: 4.0-16 (running kernel: 4.2.2-1-pve)
pve-manager: 4.0-50 (running version: 4.0-50/d3a6b7e5)
pve-kernel-4.2.2-1-pve: 4.2.2-16
lvm2: 2.02.116-pve1
corosync-pve: 2.3.5-1
libqb0: 0.17.2-1
pve-cluster: 4.0-23
qemu-server: 4.0-31
pve-firmware: 1.1-7
libpve-common-perl: 4.0-32
libpve-access-control: 4.0-9
libpve-storage-perl: 4.0-27
pve-libspice-server1: 0.12.5-1
vncterm: 1.2-1
pve-qemu-kvm: 2.4-10
pve-container: 1.0-10
pve-firewall: 2.0-12
pve-ha-manager: 1.0-10
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.3-1
lxcfs: 0.9-pve2
cgmanager: 0.37-pve2
criu: 1.6.0-1
zfsutils: 0.6.5-pve4~jessie


Best Regards
 
Hi,

normally snapshots could not be erased if you have a writable snapshot aka clone on it.
It there something like this?
 
It could be that your system is under load and then zfs command is not responding.
if this is happens and your vm is running. then we get no error because qmp is handle this and do not return errors.
 
Ok, maybe this was the problem... i don't know. But it is not nice. We need an fix for this. Otherwise we must browse sometimes over and delete old snapshots. Not nice.

Thanks and best Regards.
 
Seems to be fixed.
Code:
pve-manager/4.1-2/78c5f4a2 (running kernel: 4.2.6-1-pve)