ZFS volblocksize
ZFS volblocksize is the logical data-block size used by a ZFS volume, or zvol.
Set it when creating the volume: after the volume has been written, the property cannot be changed. The OpenZFS 2.3 manual specifies a 16 KiB default and power-of-two values from 512 bytes through 128 KiB. The shortened name is volblock. [1]
Larger blocks can improve compression and reduce metadata overhead, while small random guest writes can increase read-modify-write work. Smaller blocks can trade that work for more metadata and poorer RAIDZ space efficiency. Guest alignment and the actual workload matter. [2]
A zvol is a block volume, whereas recordsize applies to files in a filesystem dataset. Neither property changes the physical sector size of an underlying drive. [1] [3]
Relations
- related
- ZFS, ZFS recordsize, Block device, RAIDZ
Citations
- OpenZFS 2.3: zfsprops(7), recordsize and volblocksize
- OpenZFS Workload Tuning: dataset records, zvol blocks and compression
- OpenZFS 2.3: zpoolprops(7), ashift and allocation accounting
Sources & caveats
- Default and range are scoped to the cited OpenZFS 2.3 manual, not all ZFS releases.
- The workload guide describes tradeoffs, not a measured speedup. No zvol was created or resized.