Use it when configuring, checking or troubleshooting SLOG in ZFS.
SLOG
A SLOG does not create the ZIL; it relocates intent-log records from the main pool to a separate log vdev. Its main value is low-latency stable acknowledgement for sync-heavy workloads. It should be selected for latency and trustworthy power-loss persistence, and may be mirrored where the risk model requires it. Asynchronous writes do not gain from SLOG because they do not use the ZIL durability path in the same way.
1. SLOG = dedicated fast device for the ZIL.
2. Use low-latency SSD with power-loss protection.
3. Mirror it.
4. Small size needed (seconds of writes).
5. Helps only sync-heavy workloads.
sync write → SLOG → ack
Context & applicabilityCommon mistakes · platform/version boundaries
A low-latency SLOG acknowledgement shows the log device accepted the synchronous intent under the tested durability contract; it does not make asynchronous writes faster or show application consistency.
Suspicious evidence: consumer SSD without trustworthy persistence is used for durability, workload is mostly asynchronous, log errors accumulate, or SLOG is described as a normal write cache.
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
sync application write → ZIL record → SLOG log vdev stable write → acknowledgement → later main-pool TXG commit → recovery replay if required
Healthy evidence: workload issues synchronous writes, log vdev is stable and power-loss-safe, sync latency improves, and crash/recovery tests preserve the expected committed state.
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.
- SLOG ≠ write cache.
- SLOG ≠ L2ARC/cache vdev.
- No synchronous workload ≈ little or no SLOG benefit.
- Fast benchmark latency ≠ power-loss-safe persistence.
zpool status— logs vdevzpool add <pool> log mirror nvme0n1 nvme1n1— add mirrored SLOGzpool iostat -v 1— SLOG usage
ReferenceImportant terms & boundaries2 sections · depth on demand
Topology
A low-latency SLOG acknowledgement shows the log device accepted the synchronous intent under the tested durability contract; it does not make asynchronous writes faster or show application consistency.
In depth
The ZIL (ZFS Intent Log) records synchronous writes so they can be acknowledged before the transaction group commits (every ~5 s). By default it lives on the pool disks; a SLOG is a separate, fast log device for it.
A SLOG only helps synchronous writes: NFS with sync, databases, iSCSI/zvols with sync=always, VMs on NFS datastores. Asynchronous writes never touch it. A suitable SLOG has power-loss protection and low write latency; size needs are small — about 5–10 seconds of maximum write throughput (e.g. 10 GbE ≈ 1.25 GB/s × 10 s ≈ 12.5 GB).
zpool add tank log mirror nvme-A nvme-B
zpool iostat -v tank 1 # watch the logs section under sync load
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 → SLOG. 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 → SLOG ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → SLOG.
| 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 low-latency SLOG acknowledgement proves the log device accepted the synchronous intent under the tested durability contract; it does not make asynchronous writes faster or prove application consistency. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: workload issues synchronous writes, log vdev is stable and power-loss-safe, sync latency improves, and crash/recovery tests preserve the expected committed state. | Close only after original workload plus checksum/read-back/recovery verification succeeds |