vdev
A vdev, short for virtual device, is the fundamental building block of a ZFS storage pool (zpool). In ZFS, a vdev is an abstraction that groups one or more physical storage devices (disks or partitions) and presents them to the pool as a single device for I/O operations. A pool is composed of one or more vdevs, and data and metadata are striped across the vdevs in the pool to provide capacity and performance.
Vdev configurations define redundancy and risk tolerance. Common types include:
- Single-disk vdev: no redundancy; data is stored on one device.
- Mirror vdev: two or more disks hold copies of each data block, providing fault tolerance.
- RAID-Z vdevs: RAID-Z1, RAID-Z2, or RAID-Z3 configurations with distributed parity, allowing one, two, or three disk
The overall resilience of a zpool depends on its vdevs. If a vdev fails beyond its redundancy,
Vdevs are defined at pool creation and typically can be expanded by adding new vdevs to the
In practice, vdev design strongly influences performance and fault tolerance, and it is a central consideration