Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

ZIL

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting ZIL in ZFS.

First 30 seconds

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.

Operational verification

sync write → ZIL → ack → later TXG commit

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
ZFS storage
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.

PlatformZFS storage
Scope / prerequisiteUse it when configuring, checking or troubleshooting ZIL in ZFS.
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.

2 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 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 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
  • 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.
Key checks
  • zpool iostat -v <pool> 1 — log activity
  • zfs get sync <ds> — sync policy
  • cat /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.

SettingEffect
sync=standardHonour application sync requests (default)
sync=alwaysTreat every write as sync
sync=disabledIgnore sync — fast but can lose recent writes on power loss
logbias=throughputWrite 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 docZFS storage current

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%
Terminology layer

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.

Aliases that resolve here
zilzfs intent logintent log
Embedded reference data

Quick lookup tables

ZFS → ZIL ZFS map

Fast topology, capacity, integrity and proof boundaries for ZFS → ZIL.

ZFS boundaryWhat to verifyProof limit
Identity / topologyPool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective propertiesObject presence alone does not prove integrity, performance or recovery
Capacity / protectionPool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver stateFree space or ONLINE state at one layer does not prove end-to-end health
Failure boundaryA 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?