Use it when configuring, checking or troubleshooting Ashift in ZFS.
Ashift
Ashift represents the logical alignment ZFS uses for writes to a vdev based on an assumed physical sector size. A too-small ashift on media with larger physical sectors can cause read-modify-write amplification. Because ashift is effectively immutable for an existing top-level vdev, wrong selection is a design issue that usually requires replacing/recreating storage rather than a simple property edit.
1. ashift = sector size exponent (12 = 4K, 13 = 8K).
2. Set at vdev creation — cannot change.
3. Too small on 4K disks = poor performance.
4. Use 12 for most disks/SSDs.
5. Check before adding vdevs.
vdev creation → ashift → I/O alignment
Context & applicabilityCommon mistakes · platform/version boundaries
An ashift value shows ZFS vdev alignment policy, but it does not show the drive reports its real physical geometry or that workload writes align end to end.
Suspicious evidence: 512-byte logical reporting is trusted despite 4K physical media, ashift is confused with recordsize, or an existing wrong ashift is treated as safely mutable in place.
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
application block → ZFS record/zvol block → vdev sector alignment 2^ashift → device physical sector/flash page behavior → completion
Healthy evidence: ashift is compatible with real media geometry, small-write behavior is within baseline, and no avoidable alignment penalty is observed under representative workload.
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.
- Ashift ≠ recordsize.
- Ashift ≠ filesystem block size.
- Reported logical sector size ≠ guaranteed physical sector size.
- Ashift on one top-level vdev ≠ necessarily identical ashift on every vdev in a heterogeneous pool.
zdb -C <pool> | grep ashift— pool ashiftcat /sys/block/sdX/queue/physical_block_size— disk sectorzpool create -o ashift=12 ...— set at creation
ReferenceImportant terms & boundaries2 sections · depth on demand
Topology
An ashift value shows ZFS vdev alignment policy, but it does not show the drive reports its real physical geometry or that workload writes align end to end.
Ashift owns ZFS vdev minimum I/O alignment. Physical Media owns device sector/flash behavior; Recordsize and Zvol own upper block sizing.
and state what the evidence does not show.
In depth
ashift is log₂ of the sector size ZFS uses on a vdev: 9 = 512 B, 12 = 4 KiB, 13 = 8 KiB. It is fixed per vdev at creation and cannot be changed.
Too small an ashift on 4K-sector disks forces read-modify-write inside the drive and badly hurts write performance; too large wastes a little space on small blocks. Many disks report 512-byte logical sectors even when physical sectors are 4K, so set it explicitly:
zpool create -o ashift=12 tank mirror ...
zdb -C tank | grep ashift
lsblk -o NAME,PHY-SEC,LOG-SEC
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 → Ashift. 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 → Ashift ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → Ashift.
| 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 | An ashift value proves ZFS vdev alignment policy; it does not prove the drive reports its real physical geometry or that workload writes align end to end. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: ashift is compatible with real media geometry, small-write behavior is within baseline, and no avoidable alignment penalty is observed under representative workload. | Close only after original workload plus checksum/read-back/recovery verification succeeds |