Backup does not complete and get error: Can't remove open logical volume

hisaltesse

Well-Known Member
Mar 4, 2009
227
2
58
we upgraded another server with Proxmox 1.9 (raid 10, sas drives, so IO is not an issue) and the backup ran yesterday and worked for most of the containers except for 3.


In /etc/vzdump.conf we have size: 2048.


In the vzdump logs we get.


Code:
Mar 18 06:53:09 INFO: Starting Backup of VM 600 (openvz)
Mar 18 06:53:09 INFO: CTID 600 exist mounted running
Mar 18 06:53:09 INFO: status = CTID 600 exist mounted running
Mar 18 06:53:09 INFO: backup mode: snapshot
Mar 18 06:53:09 INFO: ionice priority: 7
Mar 18 06:53:09 INFO: trying to remove stale snapshot '/dev/pve/vzsnap-proxmox2-0'
Mar 18 06:53:09 INFO: umount: /mnt/vzsnap0: device is busy
Mar 18 06:53:09 INFO: umount: /mnt/vzsnap0: device is busy
Mar 18 06:53:09 ERROR: command 'umount /mnt/vzsnap0' failed with exit code 1
Mar 18 06:53:09 INFO:   Can't remove open logical volume "vzsnap-proxmox2-0"
Mar 18 06:53:09 ERROR: command 'lvremove -f /dev/pve/vzsnap-proxmox2-0' failed with exit code 5
Mar 18 06:53:09 INFO: creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap-proxmox2-0')
Mar 18 06:53:09 INFO:   Logical volume "vzsnap-proxmox2-0" already exists in volume group "pve"
Mar 18 06:53:09 INFO:   Can't remove open logical volume "vzsnap-proxmox2-0"
Mar 18 06:53:09 ERROR: command 'lvremove -f /dev/pve/vzsnap-proxmox2-0' failed with exit code 5
Mar 18 06:53:09 ERROR: Backup of VM 600 failed - command 'lvcreate --size 2048M --snapshot --name vzsnap-proxmox2-0 /dev/pve/data' failed with exit code 5




I even tried manually:


lvremove /dev/pve/vzsnap-proxmox2-0


and got:


Can't remove open logical volume "vzsnap-proxmox2-0"


Any idea why vzsnap is stuck and how to kill it?
 
Last edited:
Thanks. I just tried that.

But the question is whether things will then complete on their own or whether I have to still kill vznap? If I have to kill it, how would I do that since it lvremove doesn't work?
 
Anyone has an idea how I can remove the vzsnap device without rebooting the server? It is stuck and lvremove does not work.

Code:
/dev/mapper/pve-vzsnap--proxmox2--0
                      704G  541G  163G  77% /mnt/vzsnap0
 
I removed the size parameter from the vzdump.conf file and it seems to have solved the issue.