Use it when configuring, checking or troubleshooting Zvol in ZFS.
Zvol
A zvol is a ZFS dataset of type volume that presents a block device instead of a mounted ZFS filesystem. It has properties such as volsize and volblocksize, and its upper consumer may add another partition, filesystem, database or virtual-disk layer. ZFS snapshots/checksums protect the zvol blocks, not the semantic consistency of the filesystem or application inside them.
1. A zvol is a block device from a pool (VMs, iSCSI).
2. volblocksize fixed at creation (default 16K).
3. Sparse (-s) avoids refreservation — risk of pool full.
4. Snapshots of zvols need free space.
5. Discard from guests reclaims space.
block I/O → zvol → pool
Context & applicabilityCommon mistakes · platform/version boundaries
A present writable zvol shows ZFS can expose and service the tested block device, but it does not show the upper filesystem/application is consistent or correctly resized.
Suspicious evidence: upper-layer size differs from volsize, sparse allocation is mistaken for guaranteed capacity, snapshot retention consumes unexpected space, or zvol health is used as application-integrity evidence.
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
VM/database/filesystem → zvol block device → ZFS volume mapping → zpool → vdev → leaf device → completion/checksum
Healthy evidence: the intended zvol has expected size/properties, pool capacity and vdev health are sound, and representative consumer I/O completes without unexplained checksum or latency symptoms.
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.
- Zvol ≠ filesystem.
- volsize ≠ used guest/application data.
- Zvol snapshot ≠ application-consistent backup by default.
- volblocksize choice ≠ workload block size at every upper/lower layer.
zfs list -t volume -o name,volsize,used,refreservation— zvolsls -l /dev/zvol/<pool>/— device nodeszfs get volblocksize <zvol>— block size
ReferenceImportant terms & boundaries2 sections · depth on demand
Topology
A present writable zvol shows ZFS can expose and service the tested block device, but it does not show the upper filesystem/application is consistent or correctly resized.
Operational checks for Zvol — Topology and ownership boundary: Anchor stable filesystem/volume/LUN/share/device identities across host, path/fabric, controller/pool and media so retries or multipath do not hide the failed leg. and state what the evidence does not show.
In depth
A zvol is a block device backed by the pool (/dev/zvol/tank/vm-100-disk-0), used for VM disks, iSCSI LUNs and swap. Its volblocksize is fixed at creation (default 16K in current OpenZFS) and should match the guest's typical I/O size.
zfs create -V 100G -o volblocksize=16k tank/vm-100-disk-0
zfs create -s -V 1T tank/thin-lun # sparse (thin) zvol
zfs get volsize,volblocksize,refreservation,used tank/vm-100-disk-0
Non-sparse zvols set a refreservation equal to their size, so snapshots of a full zvol can need as much free space again. On RAIDZ, small volblocksize wastes space to padding — mirrors are usually a better fit for zvol-heavy pools.
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 → Zvol. 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 → Zvol ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → Zvol.
| 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 present writable zvol proves ZFS can expose and service the tested block device; it does not prove the upper filesystem/application is consistent or correctly resized. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: the intended zvol has expected size/properties, pool capacity and vdev health are sound, and representative consumer I/O completes without unexplained checksum or latency symptoms. | Close only after original workload plus checksum/read-back/recovery verification succeeds |