[SOLVED] Backup VM Failed

harleydica

New Member
Jul 13, 2024
14
1
3
Hello, I have a problem with my vm backup, even though previously it was safe and there was no problem, but now there is an error as below, can anyone help me?

INFO: starting new backup job: vzdump 104 --notes-template '{{guestname}}' --notification-mode auto --storage backup-storage --remove 0 --node elearning-data --mode snapshot
INFO: Starting Backup of VM 104 (lxc)
INFO: Backup started at 2025-03-05 20:41:44
INFO: status = running
INFO: CT Name: database
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
snapshot create failed: starting cleanup
no lock found trying to remove 'backup' lock
ERROR: Backup of VM 104 failed - lvcreate snapshot 'local-lvm-ssd/snap_vm-104-disk-0_vzdump' error: Logical Volume "snap_vm-104-disk-0_vzdump" already exists in volume group "local-lvm-ssd"
INFO: Failed at 2025-03-05 20:41:44
INFO: Backup job finished with errors
TASK ERROR: job errors
 
Hello, I have a problem with my vm backup, even though previously it was safe and there was no problem, but now there is an error as below, can anyone help me?

INFO: starting new backup job: vzdump 104 --notes-template '{{guestname}}' --notification-mode auto --storage backup-storage --remove 0 --node elearning-data --mode snapshot
INFO: Starting Backup of VM 104 (lxc)
INFO: Backup started at 2025-03-05 20:41:44
INFO: status = running
INFO: CT Name: database
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
snapshot create failed: starting cleanup
no lock found trying to remove 'backup' lock
ERROR: Backup of VM 104 failed - lvcreate snapshot 'local-lvm-ssd/snap_vm-104-disk-0_vzdump' error: Logical Volume "snap_vm-104-disk-0_vzdump" already exists in volume group "local-lvm-ssd"
INFO: Failed at 2025-03-05 20:41:44
INFO: Backup job finished with errors
TASK ERROR: job errors

Fix for Proxmox LXC VM Backup Failure (lvcreate snapshot already exists)

✅ Issue:
  • Backup failed because the LVM snapshot already exists (Logical Volume "snap_vm-104-disk-0_vzdump" already exists).
  • This can happen if a previous backup failed and left an orphaned LVM snapshot.

Solution Steps:

1️ Check if an old snapshot still exists
Run the following command to list existing LVM snapshots:
Bash:
lvs
If you see snap_vm-104-disk-0_vzdump, it needs to be removed manually.


2️ Manually remove the orphaned snapshot
Delete the problematic snapshot:
Bash:
lvremove local-lvm-ssd/snap_vm-104-disk-0_vzdump
Warning: Make sure you remove only the snapshot and not the actual VM disk!


3️ Re-run the backup
Try the backup again:
Bash:
vzdump 104 --storage backup-storage --mode snapshot


4️ Prevent Future Issues
  • Ensure previous backups are properly cleaned up:
    Bash:
    lvscan
    If you see unexpected snapshots, remove them.

  • Reboot the Proxmox node if the issue persists to ensure no stuck LVM processes.

Conclusion:

✅ Remove orphaned LVM snapshot (lvremove local-lvm-ssd/snap_vm-104-disk-0_vzdump)
✅ Retry the backup (vzdump 104 --storage backup-storage --mode snapshot)
✅ Check for leftover snapshots using lvs and lvscan
✅ Reboot the Proxmox node if needed

This should fix the backup failure and prevent it from happening again :)