Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Ashift

Direct answer

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.

When to use this

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

First 30 seconds

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.

Operational verification

vdev creation → ashift → I/O alignment

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

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.

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 Ashift 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.

1 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

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 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
  • 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.
Key checks
  • zdb -C <pool> | grep ashift — pool ashift
  • cat /sys/block/sdX/queue/physical_block_size — disk sector
  • zpool 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
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 → Ashift. 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
ashiftzfs ashiftzpool ashift
Embedded reference data

Quick lookup tables

ZFS → Ashift ZFS map

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

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 boundaryAn 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?