Use it when configuring, checking or troubleshooting ZIL in ZFS.
ZIL
Every writable ZFS pool has an intent-log mechanism. Synchronous operations that require stable storage are logged so they can be replayed after a crash if the normal transaction group had not yet committed them. The ZIL is not the normal destination for all writes, and in steady state it is not a general-purpose write-back cache.
1. ZIL logs synchronous writes for crash safety.
2. Lives in the pool unless a SLOG exists.
3. Only sync writes (NFS, databases, VMs with sync) use it.
4. sync=disabled is unsafe for important data.
5. Async writes go via transaction groups.
sync write → ZIL → ack → later TXG commit
Context & applicabilityCommon mistakes · platform/version boundaries
A completed synchronous write with correct ZIL semantics shows ZFS acknowledged the requested durability boundary, but it does not show asynchronous writes were logged or the application transaction is logically valid.
Suspicious evidence: all writes are assumed to flow through the ZIL, sync semantics are disabled for speed without risk acceptance, or a SLOG is added to an asynchronous workload expecting benefit.
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
synchronous application write → ZFS intent transaction → ZIL stable record → acknowledgement → later TXG commit → log record no longer needed; crash → replay
Healthy evidence: sync-heavy workload latency is explainable by stable log/pool behavior, crash recovery replays as expected, and no log-path errors are observed.
Step 2 Branching troubleshooting Narrow the fault
Concrete boundaries: application/dataset/zvol → ARC/ZIL/transaction group → pool/vdev mapping → physical device → checksum/read-back → application.
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.
- ZIL exists even without a separate SLOG.
- ZIL ≠ write cache for asynchronous writes.
- ZIL ≠ filesystem journal in the generic sense of logging every normal write.
- Successful synchronous acknowledgement ≠ application-level transaction correctness beyond the durability contract requested.
zpool iostat -v <pool> 1— log activityzfs get sync <ds>— sync policycat /proc/spl/kstat/zfs/zil— ZIL stats
ReferenceWhy it matters1 section · depth on demand
How it works in operation
ZFS maps dataset/zvol I/O through ARC/ZIL and metaslabs to vdev topology and physical devices, with checksums validating blocks on read.
ReferenceImportant terms & boundaries3 sections · depth on demand
Topology
A completed synchronous write with correct ZIL semantics shows ZFS acknowledged the requested durability boundary, but it does not show asynchronous writes were logged or the application transaction is logically valid.
ZIL owns ZFS synchronous intent logging. SLOG owns placement of intent-log records on a separate log vdev; applications own when they request synchronous durability.
Platform, version and operating-envelope scope
Concrete boundaries: application/dataset/zvol → ARC/ZIL/transaction group → pool/vdev mapping → physical device → checksum/read-back → application.
In depth
The ZIL (ZFS Intent Log) records synchronous writes so ZFS can acknowledge them before the next transaction group is written to the pool. It is only read after a crash. By default the ZIL lives on the pool disks; a separate log device (SLOG) on fast, power-loss-protected SSD speeds up sync-heavy workloads such as NFS, databases and VM storage.
| Setting | Effect |
|---|---|
sync=standard | Honour application sync requests (default) |
sync=always | Treat every write as sync |
sync=disabled | Ignore sync — fast but can lose recent writes on power loss |
logbias=throughput | Write sync data directly to pool for large writes |
zpool add tank log mirror nvme-A nvme-B
zfs get sync,logbias tank/vmstore
zpool iostat -v tank 5
A SLOG does not help asynchronous writes, and it must have power-loss protection — a consumer SSD without it can lose acknowledged data.
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 ZFS → ZIL. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/ · 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
ZFS → ZIL ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → ZIL.
| ZFS boundary | What to verify | Proof limit |
|---|---|---|
| Identity / topology | Pool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective properties | Object presence alone does not prove integrity, performance or recovery |
| Capacity / protection | Pool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver state | Free space or ONLINE state at one layer does not prove end-to-end health |
| Failure boundary | A completed synchronous write with correct ZIL semantics proves ZFS acknowledged the requested durability boundary; it does not prove asynchronous writes were logged or the application transaction is logically valid. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: sync-heavy workload latency is explainable by stable log/pool behavior, crash recovery replays as expected, and no log-path errors are observed. | Close only after original workload plus checksum/read-back/recovery verification succeeds |