Proxmox Backup Server Reboot Audit for S3 Sync Jobs
Run a Proxmox Backup Server reboot audit to verify S3 sync jobs, clear stale datastore locks, and confirm PVE storage paths before the next backup window.

On this page
If you rebooted a Proxmox Backup Server host after moving to Proxmox Backup Server 4.2 and Proxmox VE 9.2, a short post-reboot audit can show whether S3 sync jobs resume, datastore locks clear, and storage paths are usable again. The concrete outcome is simple: you get a go/no-go signal before the next backup window, instead of discovering a stale lock or missing PBS storage at 2 a.m.
Key Takeaways
- Ten minutes: A focused reboot check is fast enough to run after every PBS or PVE maintenance window.
- Service first: Confirm the PBS process and datastore mounts before judging sync jobs.
- Locks matter: A healthy reboot leaves no active datastore lock unless a task is truly running.
- Small sync beats big sync: A targeted sync job proves the S3 path without waiting for a full datastore copy.
- Path proof: On the PVE side, check the storage configuration, storage status, and the actual mount point.
Why a Post-Reboot S3 Sync Audit Is Worth Ten Minutes
A reboot after an upgrade is different from a planned stop/start. Services come up in parallel, network interfaces may not be ready, and ZFS pools or encrypted mounts may take a few seconds longer than PBS expects. On my lab PBS box, that gap is usually harmless, but it is exactly where S3 sync jobs fail quietly. The job may be enabled, the schedule may look right, and the remote credentials may be fine, yet the first attempt after boot can fail because the datastore was not fully ready.
This audit is not a deep performance test. It is a quick set of checks that answer three questions: did the PBS service start, did the datastore state survive the reboot, and can the sync path still reach the S3-backed target? If those answers are yes, you can let the normal schedule run. If any answer is no, you want to see it while the coffee is still hot, not after a backup chain has failed.
If you have already checked the network path, the VLAN audit before running PBS S3 sync jobs covers the layer that can make a healthy PBS installation look broken. This article assumes the network is not the first suspect and starts with the reboot itself.
What Does a Healthy Reboot Look Like?
Before running commands, it helps to know what a clean result should look like. The point is not to memorize output fields. The point is to notice when something changed after the reboot.
| Check area | Healthy sign after reboot |
|---|---|
| PBS service | The backup service is active and has not restarted repeatedly. |
| Datastore state | Datastores are listed with normal available and used values. |
| S3 sync jobs | The last successful sync is recent, or the job is idle with no error. |
| Datastore locks | No lock files remain unless the datastore is actively working. |
| PVE storage paths | Storage entries load and the storage mount is visible to the node. |
How to Confirm PBS Services and Datastores Came Back
Start with the service, because every later check is misleading if PBS is still starting. A single active check is enough for a quick audit:
systemctl is-active proxmox-backup-server
If that command returns active, move on. If it returns inactive or failed, stop and inspect the service before checking sync jobs. A failed PBS service often means a datastore path is missing, not that the S3 credentials are wrong.
Next, list the datastores. You want to see the expected names, normal usage values, and no odd state. On a healthy PBS 4.2 host, this output should look familiar from before the reboot:
proxmox-backup-manager datastore list
For a machine-readable pass, grep the fields that matter most:
proxmox-backup-manager datastore list --output-format json |
grep -E '"(datastore|state|available|used|active_tasks)"' || true
The exact JSON keys can vary by version, so treat this as a quick scan, not a script contract. If a datastore is missing, check the mount before blaming the sync job. If the datastore is present but shows active tasks shortly after boot, that may be normal: PBS can resume garbage collection or verify tasks automatically. Wait a few minutes, then re-run the list.
If your PBS datastore sits on ZFS, confirm the pool is healthy before you interpret any storage oddity:
if command -v zpool >/dev/null; then
zpool status -x
else
echo 'ZFS is not installed on this host.'
fi
A pool that is degraded or offline will make datastore checks look unstable even when the PBS service itself started. For PBS datastores on ZFS, I also keep the separate ZFS ARC checks after PBS S3 sync handy when sync speed drops after a busy backup window.
How to Check S3 Sync Jobs Without Starting a Full Sync
The scary part of an S3 sync audit is that a full sync can be slow. On my 1 GbE link, a 240 GB sync normally takes about 19 minutes, and I do not want to wait that long just to prove the host recovered. The good news is that the sync job status is usually enough.
List the configured sync jobs:
proxmox-backup-manager sync-job list
Look for the S3-backed job and note three things: whether it is enabled, the schedule, and the last status. If the last status is successful and the last try timestamp is older than the reboot, that is still acceptable; the job may simply not have run since boot. If it shows an error, open the details.
For a quick filtered view:
proxmox-backup-manager sync-job list --output-format json |
grep -E '"(id|remote|store|schedule|success|last_try|error)"' || true
Do not worry if some fields are absent. The purpose is to see whether the job is configured and whether the last run left a visible error. If the job has a recent success, you can usually move to the lock check.
One common post-reboot false alarm is the clock. PBS schedules depend on the system clock, and a host can come up with an old time before NTP catches up. Check the time source:
timedatectl show --property=NTPSynchronized --value
If it returns false, wait for time synchronization before running a manual sync. A schedule that fired a few minutes late is far less painful than a sync that starts with a bad timestamp and confuses your retention expectations.
When I want stronger proof, I run a small targeted sync rather than a full datastore copy. If you have a low-churn datastore or a namespace that changes little, a manual start is the fastest way to show that PBS can still reach the S3 target. For a repeatable pattern, see the PBS S3 sync test before clone; the same idea applies after a reboot, except the goal is recovery proof, not clone safety.
What Should Datastore Locks Look Like After Reboot?
Datastore locks are the part of the audit that many people skip until a backup job hangs. After a clean reboot, PBS should not leave a datastore locked. A lock file can exist while garbage collection, verify, or sync is running, but it should disappear when the task finishes.
Check the PBS lock area with a simple find command:
find /var/lib/proxmox-backup -maxdepth 3 -name '*.lock' -printf '%TY-%Tm-%Td %TH:%TM %p\n' 2>/dev/null || true
No output is usually the best output. If you see a lock file, compare its timestamp with the boot time and the datastore status. A very old lock file from a previous boot is suspicious. A fresh lock file may simply mean PBS is doing post-boot work.
If you see a stale lock, do not delete it blindly. PBS may have restarted a task that is still running. Check the recent service log:
journalctl -u proxmox-backup-server -b --since '10 minutes ago' --no-pager |
grep -i -E 'lock|sync|datastore|s3' || true
The log should show whether a task started, finished, or was interrupted. If the datastore status shows no active task and the log shows no matching lock activity, you have a stronger case for a stale lock from a hard reboot.
I have seen this after power-cycling a PBS host during garbage collection. The service came back healthy, but the datastore looked busy for a while because a lock file survived the abrupt shutdown. The fix was not to force anything; I let the next scheduled task run and watched the lock clear. If you force-delete a lock while PBS is actually working, you can turn a cosmetic issue into a real task interruption.
How Do Proxmox VE 9.2 Storage Paths Prove They Recovered?
The PBS side is only half the story. Proxmox VE 9.2 needs its storage definitions and mount points to come back cleanly, especially if PBS storage entries are used for backups or restores. Start with the cluster services that manage storage:
systemctl is-active pvedaemon pve-cluster pveproxy
All three should be active. If the cluster manager is not ready, storage checks can be misleading because the shared storage configuration may not be fully visible yet.
Then check the storage configuration file. A quick grep shows the storage entries without dumping every line:
grep -E '^(pbs|zfs|dir|lvm|nfs)' /etc/pve/storage.cfg
If your PBS storage entry is missing, the reboot did not break the file so much as it exposed a configuration that was never stored correctly. For a deeper look at that file, the PVE storage configuration article covers the common storage types and how they appear in cluster storage.
Next, ask the API what the node sees. The datacenter-wide storage list is useful, but the per-node view is better for mount and availability issues:
pvesh get /storage --output-format json |
grep -E '"(storage|type|status|path)"' || true
Then confirm the node-specific status:
pvesh get /nodes/$(hostname -s)/storage --output-format json |
grep -E '"(storage|type|status|active)"' || true
These greps are intentionally forgiving. They may not print every field, but they should show that storage entries exist and are not obviously inactive. If a PBS storage entry exists but is marked inactive, check the network and certificate path before re-adding it.
Finally, look at the actual mount. The local storage path is a good canary:
findmnt -T /var/lib/vz
For PBS hosts, also check the base PBS data directory:
findmnt -T /var/lib/proxmox-backup
A mount that exists but has the wrong source or filesystem type can cause storage checks to pass while backups fail. If you moved a PBS datastore to a new ZFS dataset during the upgrade, this is where that change shows up. A 10-second mount check can save you from a 40-minute failed restore.
When Should You Run a Small S3 Sync Test?
After the basic checks, decide whether you need a live sync. A full sync is not always the right proof. I usually run a small sync only when one of these is true: the PBS host had a hard reboot, the S3 credentials were changed during the upgrade, the last sync status is unknown, or the next backup window is too close to trust a silent failure.
A small sync test should be scoped. If you have multiple datastores, pick one that changes rarely. If you have namespaces, sync a namespace instead of the whole datastore when possible. The goal is to see PBS connect, list chunks, and complete without errors. A successful small sync also proves that the remote target can still accept writes after the reboot.
Here is the tradeoff: a manual sync gives you proof now, but it can overlap with the next scheduled sync and create extra S3 API activity. On a homelab, that is usually fine. On a paid S3 bucket, repeated manual syncs can add request costs, especially if the job scans many small namespaces. If your schedule is already close, waiting for the next scheduled run may be cheaper. If the last status is unknown, the cost of waiting is higher than the cost of one small sync.
A good rule is: if the reboot was clean and the job shows a recent success, do not run a manual sync. If the reboot was forced, the clock jumped, or the job status is stale, run the smallest sync you can. That keeps the audit useful without turning a maintenance window into a bandwidth event.
Gotchas That Turn a Quick Audit Into a Long One
The first gotcha is stale datastore locks after a hard reboot. They can make the datastore look busy even when PBS has no running task. The second is clock drift. A PBS host that boots before NTP can report a sync job as missed or run it at an odd time. The third is storage path drift. An upgrade can leave the PVE storage entry pointing at an old PBS fingerprint, old remote name, or old datastore name.
I learned the storage path lesson the hard way after a PBS host rename. The PBS service was healthy, the datastore was fine, and the S3 sync job had succeeded before the reboot. The failure was on the PVE side: the storage entry still pointed to the old remote. No amount of PBS-side checking would have found that. It showed up only when a restore tried to use the PBS storage.
The honest tradeoff is coverage versus time. A full restore test is the strongest proof, but it can take tens of minutes and may consume bandwidth. A post-reboot audit is weaker proof, but it is fast enough to run after every maintenance window. For most upgrades, I choose the fast audit first, then schedule a restore test separately.
Conclusion
A post-reboot audit for Proxmox Backup Server 4.2 and Proxmox VE 9.2 should take minutes, not hours. Confirm the PBS service, datastore state, sync job status, lock files, and PVE storage mounts in that order, and you will catch most reboot-related S3 sync failures before they become backup failures. Your next step is to run the checks once on a test PBS host after a normal reboot, then turn the sequence into a short runbook you can repeat after every upgrade.


