Use it when configuring, checking or troubleshooting ZFS in Filesystems.
ZFS · Filesystems
ZFS datasets and zvols allocate from a storage pool built from vdevs. End-to-end checksums verify data on read, and redundancy can repair bad copies when a valid replica exists. Pool/vdev health constrains filesystem availability.
1. ZFS combines volume manager and filesystem: checksums, COW, snapshots, send/receive.
2. Keep pools under 80 % full.
3. Set properties per dataset.
4. Scrub regularly.
5. ARC uses RAM.
dataset → pool → vdevs → disks
Context & applicabilityCommon mistakes · platform/version boundaries
An ONLINE pool and mounted dataset show current topology/access state; they do not show all blocks have been scrubbed, backup exists or every workload write is application-consistent.
Suspicious evidence: checksum errors rise, degraded vdevs exist, pool capacity is critically high, snapshot space hides allocation pressure, or ONLINE is treated as evidence of backup/integrity.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
path/dataset → ZFS object/metadata → checksum/COW allocation → pool → vdev → device → verified read
Healthy evidence: pool/vdev topology is healthy, dataset mounts as intended, checksum/device error counters are understood, capacity is available and recent scrub/read verification shows no unexplained faults.
Step 2 Native branching decision path Narrow the fault
Observation → implication → next check: if the pool is not imported, verify device visibility and pool labels. If imported but DEGRADED/FAULTED, identify the exact vdev and error class before replacement. If pool health is clean but the dataset is unavailable, inspect key loading, mountpoint and dataset properties. If storage state is healthy, repeat the original read/write and verify the application-visible path.
Path: Storage → Filesystems → ZFS. Local intent: ZFS combines a copy-on-write filesystem with pooled storage, checksums, snapshots and integrated redundancy through vdevs.
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.
- ZFS dataset ≠ zvol.
- Checksum detection ≠ repair without redundancy.
- Snapshot ≠ backup.
- Pool ONLINE ≠ every block recently scrubbed.
zfs list— datasetszpool status -x— pool healthzfs get compression,recordsize,atime <dataset>— properties
ReferenceHow it works1 section · depth on demand
How it works
ZFS state is owned by the pool/vdev topology plus datasets layered above it. A pool can be ONLINE while a dataset is unavailable because of mount/key/property state, and a degraded vdev can remain readable while redundancy is reduced. Track pool GUID, vdev identity, error counters, scrub/resilver state and dataset mount/encryption state as separate facts.
Path: Storage → Filesystems → ZFS. Local intent: ZFS combines a copy-on-write filesystem with pooled storage, checksums, snapshots and integrated redundancy through vdevs.
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and consistency
An ONLINE pool and mounted dataset show current topology/access state; they do not show all blocks have been scrubbed, backup exists or every workload write is application-consistent.
In depth
ZFS is a combined volume manager and filesystem that checksums every block, uses copy-on-write so on-disk data is always consistent, and offers snapshots, clones, compression and send/receive replication built in. Disks are organised into vdevs (mirror, RAIDZ1/2/3), vdevs form a pool, and datasets and zvols are carved from the pool.
| Feature | Benefit |
|---|---|
| End-to-end checksums | Detects silent corruption; self-heals from redundancy |
| Copy-on-write | No fsck needed; cheap snapshots |
| Compression (lz4/zstd) | Saves space, often improves speed |
| send/receive | Efficient incremental replication |
| ARC/L2ARC/SLOG | Caching and sync write acceleration |
A pool's redundancy is per vdev — losing any whole vdev loses the pool — so choose vdev layout carefully. Run regular scrubs to find and repair latent errors.
zpool create tank mirror /dev/disk/by-id/ata-A /dev/disk/by-id/ata-B
zfs create -o compression=lz4 tank/data
zpool status
zpool scrub tank
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystems → ZFS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Filesystems → ZFS filesystem map
Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → ZFS.
| Filesystem boundary | What to verify | Proof limit |
|---|---|---|
| Identity / attachment | Filesystem type, source/backing object, mount/attachment target and effective options | Presence or mount state alone does not prove consistency or lower-layer health |
| Capacity / metadata | Data space, metadata/inodes, quotas/reservations and filesystem state | Free bytes at one layer do not prove allocation can succeed end to end |
| Failure boundary | An ONLINE pool and mounted dataset prove current topology/access state; they do not prove all blocks have been scrubbed, backup exists or every workload write is application-consistent. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: pool/vdev topology is healthy, dataset mounts as intended, checksum/device error counters are understood, capacity is available and recent scrub/read verification shows no unexplained faults. | Close only after the original path/workload and read-back check succeeds |