Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Zvol

Direct answer

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.

When to use this

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

First 30 seconds

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.

Operational verification

block I/O → zvol → pool

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

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.

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 Zvol 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

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 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
  • Zvol ≠ filesystem.
  • volsize ≠ used guest/application data.
  • Zvol snapshot ≠ application-consistent backup by default.
  • volblocksize choice ≠ workload block size at every upper/lower layer.
Key checks
  • zfs list -t volume -o name,volsize,used,refreservation — zvols
  • ls -l /dev/zvol/<pool>/ — device nodes
  • zfs 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.

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 → Zvol. 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
zvolzfs volumezfs block device
Embedded reference data

Quick lookup tables

ZFS → Zvol ZFS map

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

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

Confirm action

Continue?