ZFS Dataset Quota for PBS Datastores in Proxmox Upgrades
Set a ZFS dataset quota for your PBS datastore before a Proxmox VE 9.2 upgrade to stop backup jobs from filling the pool and avoid stalled upgrade windows.

On this page
A ZFS dataset quota is the simplest guard rail for a Proxmox Backup Server datastore that shares a pool with VM or container workloads. During a Proxmox VE 9.2 upgrade, backup jobs, snapshots, and PBS sync tasks can all write to the same pool, and a full pool can turn a routine backup failure into a stalled upgrade. With a carefully sized quota on the PBS datastore dataset, you keep backup jobs from eating the pool and leave enough free space for the upgrade to finish.
Key Takeaways
- Quota first: Put a hard quota on the PBS datastore dataset before the upgrade window, not after the pool is full.
- Snapshots count: Dataset snapshots and PBS backups compete for the same ZFS used space, so check both together.
- Reserve headroom: Keep at least 10 to 15 percent of the pool free for upgrade writes, package unpacking, and restore testing.
- Test one backup: Run one small VM backup to PBS after setting quota to prove the limit is high enough.
- Retention matters: Daily, weekly, and monthly PBS retention can quietly raise baseline usage over weeks.
Why PBS Backup Jobs Fill ZFS Pools During Upgrades
When a Proxmox VE 9.2 upgrade window overlaps scheduled PBS backup jobs, several writers hit the same ZFS pool at once. VM snapshot creation, backup data written to PBS, PBS garbage collection, and any scrub or sync job all touch pool space. The failure is rarely dramatic at first. A backup job may run longer, then fail with a quota or space error, and the upgrade plan loses a clean backup point.
If the PBS datastore lives on the same ZFS pool as VM disks, a runaway backup job can starve the pool. If PBS runs on a separate host but its datastore is still ZFS, the same problem can block PBS sync, prune, or restore operations while you are trying to upgrade Proxmox VE. A dataset quota gives PBS a bounded sandbox.
zpool list
This command shows pool capacity, free space, fragmentation, and health before you size quotas.
zfs list -t filesystem -o name,used,available,quota,reservation,refquota
This tells you which filesystems are consuming space and which already have limits. If the PBS datastore dataset has no quota, PBS can grow until the pool itself says no. That is acceptable on a dedicated PBS pool, but it is risky when the pool also hosts VM disks, container root filesystems, or the Proxmox VE root filesystem.
How to Check the PBS Datastore Dataset Before You Touch Quotas
Start on the Proxmox VE node, not the PBS server. The storage entry tells you which PBS datastore the backup jobs use.
pbs: pbs-1
datastore backup
username backup@pbs
fingerprint ...
Then move to the PBS host and list datastores.
proxmox-backup-manager datastore list
Finally, inspect the ZFS dataset mounted for that datastore.
zfs list -t filesystem -o name,used,available,quota,reservation,refquota
zfs get quota,refquota,reservation,used,available tank/pbs-data
df -h /tank/pbs-data
Look for three numbers: used, available, and quota. If quota is none, PBS can grow without a dataset-level ceiling. If available is low, do not add another backup job until you understand what is consuming the space. If used is close to quota, a backup job can fail before PBS prune has a chance to free old backups.
Where Do Quota, Refquota, and Reservation Belong?
ZFS has several space controls, and they are not interchangeable. For a PBS datastore dataset, quota is usually the right first tool because it caps the dataset and anything below it. PBS namespaces usually live as subdirectories under the datastore dataset, so a single quota can cover them all.
| ZFS setting | What it does | Good for | Risk |
|---|---|---|---|
| quota | Caps total space used by the dataset and descendants | PBS datastore with namespaces | Backup jobs fail when quota is reached |
| refquota | Caps the dataset itself, not the full child tree | Flat datasets with few children | Can miss space used by child datasets |
| reservation | Guarantees space from the pool | Critical workloads needing capacity | Does not stop growth or protect pool free space |
| none | No dataset cap | Dedicated PBS pool with monitoring | Full pool can affect unrelated datasets |
For most PBS setups, start with quota. Add reservation only if you need guaranteed space for the datastore itself. Do not set reservation so high that it reduces pool free space before the upgrade.
zfs set quota=none tank/pbs-data
Use none to remove a quota after testing, but only on a pool where PBS cannot harm other workloads.
How to Set a Safe ZFS Dataset Quota for PBS
Pick a quota from real usage, not from the pool's total size. A 1.2 TiB pool with 480 GiB free does not mean the PBS datastore can safely use 480 GiB during a Proxmox VE 9.2 upgrade. You need room for the backup job itself, snapshots, package unpacking if the pool hosts the root filesystem, and a restore test.
A practical starting formula is: current PBS datastore used, plus the largest expected incremental backup, plus one pre-upgrade snapshot, plus a 10 percent buffer. For a dataset using 380 GiB, with a 35 GiB incremental backup, a 20 GiB snapshot, and a 60 GiB buffer, a 500 GiB quota is a reasonable ceiling.
zfs set quota=500G tank/pbs-data
zfs set reservation=50G tank/pbs-data
The reservation line is optional. It helps when the PBS pool is shared and you want to protect a minimum amount of space for the datastore. It does not create a maximum, so it does not replace quota.
Check the result:
zfs get quota,reservation,used,available tank/pbs-data
Then run one test backup.
vzdump --storage pbs-1 --mode snapshot --compress zstd 101
After the job finishes, inspect the dataset again.
zfs list -o name,used,available,quota,reservation tank/pbs-data
The gotcha I have hit more than once is setting a quota that matches current usage too closely. The nightly backup started before PBS prune removed an old backup, and the job failed with a quota error even though the pool still had free space. The dataset was full, but the pool was not. That distinction matters.
The honest tradeoff is that a quota turns a pool-wide outage into a backup failure. That is usually better, but it means you must monitor quota usage and adjust retention before backups start failing. A quota is not a substitute for capacity planning; it is a circuit breaker.
What Should the Proxmox VE 9.2 Upgrade Checklist Include?
Use this checklist before the maintenance window, not during it.
- Confirm the pool is healthy before changing quotas or upgrading.
zpool status -x
If it reports errors, repair or replace disks first. A pool that is already degraded is a bad place to test a new quota. If you need a broader pool review, use the ZFS pool health check before Proxmox VE 9.2 upgrade as a separate pass.
- Identify the PBS datastore dataset and confirm its quota.
zfs get quota,reservation,used,available tank/pbs-data
- Take a pre-upgrade snapshot of the PBS datastore dataset.
zfs snapshot tank/[email protected]
- Check snapshot space before the upgrade.
zfs list -r -t snapshot tank/pbs-data -o name,used,refer,creation
- Run one small PBS backup test.
vzdump --storage pbs-1 --mode snapshot --compress zstd 101
- Confirm quota usage after the backup and before the upgrade.
zfs list -o name,used,available,quota,reservation tank/pbs-data
-
Pause or reschedule additional PBS sync jobs during the upgrade window. If your PBS instance also syncs to S3, review PBS S3 sync around ZFS scrub time windows so sync and scrub do not stack with the upgrade.
-
If you plan to roll back VMs after the upgrade, keep the rollback scope clear. A PBS datastore snapshot is not the same thing as a VM snapshot. For the VM-side drill, see Proxmox VE 9.2 snapshot rollback test before upgrade.
How Do Backup Jobs and Snapshots Compete for Space?
Timing matters more than raw capacity. A PBS backup job that finishes in 25 minutes when the pool is 70 percent full can stretch to 80 minutes when the pool is 91 percent full and a scrub is running. The longer the job runs, the more likely it overlaps with the next scheduled task.
On a 1.2 TiB pool, a 45 GiB incremental backup for a 250 GiB VM may be small on paper, but it becomes a problem if the PBS datastore dataset already sits at 480 GiB against a 500 GiB quota. The next weekly full backup, a failed restore extraction, or a pre-upgrade snapshot can push the dataset over the line.
zpool list -o name,size,alloc,free,cap,frag,health
Use this to spot pool fragmentation and free space before the upgrade window.
zfs list -r tank/pbs-data -o name,used,available,quota,reservation
Use this to watch the PBS dataset and any child datasets during the backup. A pre-upgrade snapshot may show little used space immediately, but it pins blocks that later backups and prune jobs would otherwise free.
Which PBS Retention and Sync Settings Change the Math?
Retention is the slow leak. A PBS datastore can look comfortable after a fresh prune, then creep upward as weekly and monthly backups accumulate. If the Proxmox VE 9.2 upgrade happens after a month of successful backups, the quota you tested at the start may no longer have enough headroom.
PBS sync jobs do not usually double local used space, but they can delay garbage collection and keep old backups pinned longer. If the sync target is also ZFS, the target pool needs its own quota or free-space policy. If you use S3 lifecycle rules to expire old backups, remember that local PBS retention still controls when backups are removed from the ZFS datastore. The PBS 4.2 S3 lifecycle rules for Proxmox Backup Server article covers the object storage side, but the local quota calculation stays on your ZFS pool.
A good habit is to review PBS retention and quota together once per quarter. Increase the quota only when you add more VMs or longer retention. Otherwise, tighten retention before you increase the quota.
Conclusion
The result of this checklist is a PBS datastore that stays inside a known ZFS boundary while Proxmox VE 9.2 upgrade tasks do their work. You avoid a full pool, keep backup jobs predictable, and make failures easier to explain because the limit is explicit. Your next step is to set one test quota on a non-production PBS datastore dataset, run a single backup, then apply the same sizing to production before the upgrade window.


