When VM Backups Fail Silently: Proxmox Storage Lock Repair and PBS Datastore Rebuilds
A stale snapshot lock caused our core virtual machine backups to silently stall for weeks while hypervisor dashboards showed green. Here is how we cleared the ZFS lock and built destination-side verification.

Key Architectural Takeaways
- Proxmox VE backup jobs can silently skip locked virtual machines without failing the overall parent backup schedule.
- Orphaned snapshot locks must be resolved on both the VM configuration (qm unlock) and the underlying ZFS dataset.
- Independent freshness monitoring that queries the destination Proxmox Backup Server prevents silent backup degradation.
The illusion of green checkmarks
In enterprise virtualization, the most dangerous failure is the one that produces no alert.
Our Proxmox VE hypervisors run automated backup jobs streaming incremental virtual disk snapshots to an independent Proxmox Backup Server (PBS) instance. The hypervisor cluster dashboard showed the backup job completing with a green status icon every single morning.
During an architectural audit of our Home Assistant environment (VM 150), we decided to perform a test restore drill. We opened the PBS datastore to pull the previous night's snapshot, only to discover a terrifying reality: > The newest backup snapshot for our most critical VM was three weeks old.
For 21 consecutive days, our hypervisor had skipped the machine entirely, all while reporting the overarching backup schedule as successful.
Anatomy of the silent stall
Investigating the individual task logs in /var/log/pve/tasks/ revealed the sequence:
- Three weeks earlier, during a scheduled backup, a transient storage latency spike occurred while QEMU was freezing filesystem writes.
- The backup task timed out and was terminated by the scheduler.
- The aborted task exited abruptly without cleaning up its state, leaving a lingering lock (
lock: backup) written inside the virtual machine's configuration file (/etc/pve/qemu-server/150.conf). - On every subsequent night, the backup daemon (
vzdump) initiated the cluster backup pass. When it reached VM 150, it encountered the configuration lock, logged a warning (VM 150 is locked (backup) - skipping), and proceeded to back up the remaining containers. - Because
vzdumpsuccessfully backed up the other dozen workloads in the job definition, the overall job exited with code 0 (success). The dashboard showed green; our data was unprotected.
Deep remediation: Clearing the dual locks
Resolving an orphaned backup lock in Proxmox requires clearing state at two distinct layers:
1. The Hypervisor Configuration Lock
First, the virtual machine management lock must be cleared:
# Clear the administrative lock on the VM configuration
qm unlock 150This removes the lock: backup directive from the .conf file, permitting normal management actions.
2. The Underlying ZFS Snapshot Lock
However, clearing the configuration lock is often insufficient. If QEMU began creating a volume snapshot before aborting, an orphaned snapshot reference can linger in the ZFS pool:
# Inspecting datasets for orphaned backup snapshots
zfs list -t snapshot | grep "vm-150-disk"If an orphaned snapshot (e.g. subvol-150-disk-0@vzdump) is held open by a dead process handle, subsequent backup passes will fail with dataset is busy. We manually destroyed the orphaned snapshot and confirmed that ZFS block pointers were completely clean.
Reconciling the PBS datastore
With the VM unlocked, we turned our attention to the Proxmox Backup Server repository:
- Integrity Verification: We ran
proxmox-backup-client verifyacross the datastore to confirm that previous valid snapshot chunks had not been corrupted by the interrupted transfer. All chunk cryptographic hashes verified 100% clean. - Garbage Collection: We triggered a manual prune and garbage collection run to purge unreferenced data chunks and reclaim disk space.
- Fresh Baseline Backup: We initiated a manual
vzdump 150 --mode snapshot --storage pbs-primarypass. The backup completed in 4 minutes, streaming 32 GB of data with full deduplication.
The permanent architectural fix: Destination-side freshness monitoring
The root failure was relying on the hypervisor to report on its own backup success. A backup job should never be trusted based on whether the sender believes it sent data.
We engineered an independent, automated verification monitor that runs outside the hypervisor:
- A lightweight scheduled task queries the Proxmox Backup Server REST API directly.
- It enumerates every registered VM and container ID in our inventory and checks the
backup-timetimestamp of the latest snapshot in the datastore. - If any production VM does not possess a verified snapshot created within the past 26 hours, it fires an immediate alert to Mattermost (
#monitoring) and Discord.
Engineering takeaway
A backup job that exits without an error is not proof of a valid backup. Relying on source-side green checkmarks masks silent snapshot locks and skipped targets. True disaster readiness requires auditing the destination datastore directly and testing restores regularly.