TECHNOLOGY

ZFS refreservation does not reserve snapshot headroom

In this article
THE QUICK TAKE

Budget snapshot creation separately from the dataset's own reference reservation, using referenced bytes and actual pool headroom.

Reserved capacity can coexist with a snapshot failure

A dataset has a reference reservation and ample room for its own expected writes. A checkpoint snapshot still fails for lack of space. The reservation’s domain and the snapshot admission rule must be inspected before treating this as a contradiction.

The OpenZFS property reference states that refreservation guarantees space to the dataset excluding descendants. When set, snapshot creation requires enough free pool space outside the reservation to accommodate the dataset’s current referenced bytes. Reserved write capacity and snapshot headroom are different budgets.

Name the property actually configured

Distinguish refreservation from reservation and refquota. Similar names do not define the same accounting boundary. The reference reservation is accounted in the parent’s used space and contributes to parent quota and reservation calculations.

Capture effective values and their source throughout the relevant dataset hierarchy. A child that appears to have room can still interact with ancestor accounting. Do not infer its complete capacity contract from one locally displayed property or a pool-wide free-space percentage.

Use referenced bytes for the admission question

Record the dataset’s referenced amount and the free space outside its reservation at the intended snapshot point. The documented snapshot rule uses that relationship, not simply the apparent size of files or the bytes written since the previous checkpoint.

Keep measurement times aligned. Concurrent growth and other snapshots can change headroom between inspection and creation. A capacity precheck is an observation at a boundary, not a reservation of every resource needed by a later uncoordinated operation.

Distinguish immediate cost and future retention

The snapshot manual defines a point-in-time image and atomic recursive creation. That consistency property does not remove the separate capacity requirements. Nor does an initially cheap snapshot promise cheap retention after the live dataset diverges.

Model the write churn and retained recovery points explicitly. Shared blocks, snapshots and the live dataset affect accounting in different ways. Avoid adding logical file sizes as if every retained point were a fully independent physical copy, while also avoiding an assumption that snapshots remain free indefinitely.

Acceptance for a snapshot budget

Use an isolated representative dataset to validate the intended reservation and snapshot policy. Preserve the effective properties, referenced size, pool headroom and creation result. Include the required recursive scope if the application spans descendants rather than testing only the parent.

Snapshot consistency explains the application-level boundary. Storage placement explains why nominal capacity must be translated into usable workload headroom.

Preserve the guarantee’s actual scope

Do not remove a reservation solely to make snapshot creation succeed without reviewing the write guarantee it protected. The accepted plan must state which space is guaranteed to the live dataset and which headroom supports snapshots and later divergence. These are related capacity commitments, but one is not evidence that the other has already been funded.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles