Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

ZFS Automation

Direct answer

ZFS automation creates pools and datasets with zpool and zfs, sets properties like compression and quotas, schedules snapshots and scrubs and replicates with zfs send/receive or syncoid.

When to use this

Use this when automating ZFS pools, datasets, properties, snapshots and replication.

First 30 seconds

1. ZFS automation: datasets, properties, snapshots, replication (sanoid/syncoid).

2. Check pool capacity.

3. Set properties consistently.

4. Verify.

5. Avoid destructive operations without confirmation.

Operational verification

desired dataset → zfs module → properties

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
OpenZFS automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenZFS automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when automating ZFS pools, datasets, properties, snapshots and replication.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Setting dedup=on without RAM sizing.
  • Properties that differ between primary and replica.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • zpool and zfs commands manage pools and datasets.
  • Set properties like compression and quotas.
  • Schedule snapshots and replication.
Key checks
  • ansible <h> -m community.general.zfs -a 'name=<pool>/<ds> state=present extra_zfs_properties={compression: lz4}' --check — dataset
  • zfs list -o name,used,avail,compression — verify
  • Pool capacity check (<80 %) — safety
ReferenceWhy it matters1 section · depth on demand

What it is

ZFS automation creates datasets with properties and schedules snapshots and replication.

ReferenceHow it works1 section · depth on demand

In depth

ZFS automation manages pools, datasets, snapshots and replication with scripts or configuration management. ZFS commands are scriptable and largely idempotent-friendly, which makes them well suited to automation.

zfs create -o compression=lz4 -o quota=500G tank/backups/netconfig
zfs snapshot tank/backups/netconfig@$(date +%Y%m%d-%H%M)
zfs list -t snapshot -o name,used -s creation tank/backups/netconfig | tail -5
zfs send -i @prev tank/data@now | ssh backup01 zfs receive -F pool/data
zpool status -x            # "all pools are healthy" or details

Tools such as sanoid/syncoid automate snapshot schedules and retention plus replication. Monitor zpool status, scrub results and capacity — performance drops sharply above roughly 80% pool usage.

ReferenceImportant terms & boundaries2 sections · depth on demand

Example

zfs create -o compression=lz4 -o recordsize=128K tank/app
zfs list -o name,used,avail,compressratio
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docOpenZFS automation current

Authoritative/upstream documentation reviewed for bounded claims in Storage Automation > ZFS Automation. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://openzfs.github.io/openzfs-docs/ · confidence 94%
Confirmation

Confirm action

Continue?