**Component:** Proxmox Backup Server, sync jobs / verify jobs
## Summary
After upgrading the sync target (bck2) from 4.2.8-1 to 4.2.14-1, the daily verify job on the target went from a few minutes to 16-26 hours per run, and the daily pull sync job started failing on one group per run with `unable to acquire snapshot lock ... (os error 11)`.
Related: #6990 (sync now drops the verify state of pulled snapshots). I understand that change is intentional, so the target copy gets verified on its own. The side effect is that a daily verify job on a sync target now does real work every day, runs continuously, and collides with the sync job on the newest snapshot of a group. I am not asking to revert #6990, but to make the sync tolerate this lock contention, and to document the interaction.
## Environment
- Source: bck1 (ZFS). Target: bck2, datastore bck2_tree1 on ZFS 2.4.4, 198 groups.
- bck2: proxmox-backup-server 4.2.14-1 (was 4.2.8-1 until 2026-11-23 11:17), kernel 7.0.14-30-pve, rebooted 2026-11-23 and 2026-11-27.
- Pull sync job from bck1, schedule 11:00 daily, `remove-vanished false`, `verified-only false`. It takes 8-15 minutes.
- Verify job on bck2_tree1: `schedule daily`, `ignore-verified true`, `outdated-after 30`.
- This chain ran for about two years without this problem.
## What changed
Verify job durations on bck2_tree1:
- August to 2026-11-24: typically 1-5 minutes. About every 30 days there was a cluster of longer runs (7-14 h), consistent with `outdated-after 30`.
- After the 4.2.14 upgrade: 2026-11-25 23h33, 11-26 16h29, 11-28 and 11-29 about 26 h each (11-27 was aborted by a reboot), 11-30 running since 04:04. Since the previous run overruns 24 h, the next one starts immediately.
- Skipped snapshots in the verify log: 1492 on the 2026-11-24 run, 1283 on the 2026-11-25 run. The difference (209) is consistent with roughly one fresh snapshot per group (~198) no longer being skipped.
Sync job results: errors on 2026-11-25 (same os error 11 on vm/5678, snapshot 2026-11-23T22:30:51Z, the newest snapshot on the target, copied by the 11-24 sync, the first one under 4.2.14; the verify job had been running since 00:00 that day), 11-28, 11-29 and 11-30. OK on 11-26 and 11-27.
## Evidence for the lock conflict
2026-11-30, failure 3 minutes after sync start:
```
[vm/1234]: vm/1234: skipped: 6 snapshot(s) (...) - older than the newest snapshot present on sync target
[vm/1234]: percentage done: 57.32% (113/198 groups, 1/2 snapshots in group #114)
[vm/1234]: sync group vm/1234 failed - 2026-11-28T22:48:50Z: while creating locked snapshot "vm/1234/2026-11-28T22:48:50Z": unable to acquire snapshot lock "/run/proxmox-backup/locks/bck2_tree1/vm-1234-2026\x2d11\x2d28T22\x3a48\x3a50Z": ... Resource temporarily unavailable (os error 11)
```
After the sync had ended (11:08:35), `lslocks` showed the daemon holding exactly that lock:
```
proxmox-backup- 2265 /run/proxmox-backup/locks/bck2_tree1/vm-1234-2026\x5cx2d11\x5cx2d28T22\x5cx3a48\x5cx3a50Z
```
PID 2265 (0x8D9) is the PID in all task UPIDs of that period. The verify job, started at 04:04 and still running, was the only long-running task, and no `.index.json.lck` existed yet for that snapshot (consistent with verification in progress).
2026-11-29, group vm/7890, snapshot 2026-11-27T23:17:06Z: the sync failed at 11:04:49. On the target, the snapshot directory was already complete (all files dated from the previous day's sync, same files and sizes as on bck1). Its `index.json.blob` was modified, and its `-.index.json.lck` created, at 11:05, which looks like the verify job writing its result at that moment.
I could not confirm the lock holder for the 2026-11-28 failure.
The sync already treats these snapshots as present: the log says older snapshots are skipped, then tries to process the newest local one again ("1/2 snapshots in group").
## Impact
- The sync job ends with errors every day, which triggers notifications.
- A failing snapshot aborts its group for that run, so newer snapshots of the group are delayed by one day.
- Data on both sides is intact, and snapshots are complete.
## Expected behavior / suggestions
1. A lock held by a verify job on an already complete, unchanged snapshot should not make the group fail. Options: skip the snapshot without needing the lock when the source is unchanged, wait or retry for a bounded time, or at least continue with the newer snapshots of the group and log a warning instead of an error.
2. Mention in the release notes or docs that since 4.2.11 a verify job on a sync target re-verifies every newly synced snapshot. This can make a daily verify job run continuously and overlap the sync schedule.
3. Is the repeated processing of the newest local snapshot at each sync intended?
Workaround: running the verify job weekly instead of daily.
## Summary
After upgrading the sync target (bck2) from 4.2.8-1 to 4.2.14-1, the daily verify job on the target went from a few minutes to 16-26 hours per run, and the daily pull sync job started failing on one group per run with `unable to acquire snapshot lock ... (os error 11)`.
Related: #6990 (sync now drops the verify state of pulled snapshots). I understand that change is intentional, so the target copy gets verified on its own. The side effect is that a daily verify job on a sync target now does real work every day, runs continuously, and collides with the sync job on the newest snapshot of a group. I am not asking to revert #6990, but to make the sync tolerate this lock contention, and to document the interaction.
## Environment
- Source: bck1 (ZFS). Target: bck2, datastore bck2_tree1 on ZFS 2.4.4, 198 groups.
- bck2: proxmox-backup-server 4.2.14-1 (was 4.2.8-1 until 2026-11-23 11:17), kernel 7.0.14-30-pve, rebooted 2026-11-23 and 2026-11-27.
- Pull sync job from bck1, schedule 11:00 daily, `remove-vanished false`, `verified-only false`. It takes 8-15 minutes.
- Verify job on bck2_tree1: `schedule daily`, `ignore-verified true`, `outdated-after 30`.
- This chain ran for about two years without this problem.
## What changed
Verify job durations on bck2_tree1:
- August to 2026-11-24: typically 1-5 minutes. About every 30 days there was a cluster of longer runs (7-14 h), consistent with `outdated-after 30`.
- After the 4.2.14 upgrade: 2026-11-25 23h33, 11-26 16h29, 11-28 and 11-29 about 26 h each (11-27 was aborted by a reboot), 11-30 running since 04:04. Since the previous run overruns 24 h, the next one starts immediately.
- Skipped snapshots in the verify log: 1492 on the 2026-11-24 run, 1283 on the 2026-11-25 run. The difference (209) is consistent with roughly one fresh snapshot per group (~198) no longer being skipped.
Sync job results: errors on 2026-11-25 (same os error 11 on vm/5678, snapshot 2026-11-23T22:30:51Z, the newest snapshot on the target, copied by the 11-24 sync, the first one under 4.2.14; the verify job had been running since 00:00 that day), 11-28, 11-29 and 11-30. OK on 11-26 and 11-27.
## Evidence for the lock conflict
2026-11-30, failure 3 minutes after sync start:
```
[vm/1234]: vm/1234: skipped: 6 snapshot(s) (...) - older than the newest snapshot present on sync target
[vm/1234]: percentage done: 57.32% (113/198 groups, 1/2 snapshots in group #114)
[vm/1234]: sync group vm/1234 failed - 2026-11-28T22:48:50Z: while creating locked snapshot "vm/1234/2026-11-28T22:48:50Z": unable to acquire snapshot lock "/run/proxmox-backup/locks/bck2_tree1/vm-1234-2026\x2d11\x2d28T22\x3a48\x3a50Z": ... Resource temporarily unavailable (os error 11)
```
After the sync had ended (11:08:35), `lslocks` showed the daemon holding exactly that lock:
```
proxmox-backup- 2265 /run/proxmox-backup/locks/bck2_tree1/vm-1234-2026\x5cx2d11\x5cx2d28T22\x5cx3a48\x5cx3a50Z
```
PID 2265 (0x8D9) is the PID in all task UPIDs of that period. The verify job, started at 04:04 and still running, was the only long-running task, and no `.index.json.lck` existed yet for that snapshot (consistent with verification in progress).
2026-11-29, group vm/7890, snapshot 2026-11-27T23:17:06Z: the sync failed at 11:04:49. On the target, the snapshot directory was already complete (all files dated from the previous day's sync, same files and sizes as on bck1). Its `index.json.blob` was modified, and its `-.index.json.lck` created, at 11:05, which looks like the verify job writing its result at that moment.
I could not confirm the lock holder for the 2026-11-28 failure.
The sync already treats these snapshots as present: the log says older snapshots are skipped, then tries to process the newest local one again ("1/2 snapshots in group").
## Impact
- The sync job ends with errors every day, which triggers notifications.
- A failing snapshot aborts its group for that run, so newer snapshots of the group are delayed by one day.
- Data on both sides is intact, and snapshots are complete.
## Expected behavior / suggestions
1. A lock held by a verify job on an already complete, unchanged snapshot should not make the group fail. Options: skip the snapshot without needing the lock when the source is unchanged, wait or retry for a bounded time, or at least continue with the newer snapshots of the group and log a warning instead of an error.
2. Mention in the release notes or docs that since 4.2.11 a verify job on a sync target re-verifies every newly synced snapshot. This can make a daily verify job run continuously and overlap the sync schedule.
3. Is the repeated processing of the newest local snapshot at each sync intended?
Workaround: running the verify job weekly instead of daily.
Last edited: