What problem does storage virtualization solve?
Physical drives are rigid. Each has a fixed size, sits in a specific slot and fails on its own schedule. Applications want something else: a volume that can grow, survives a drive failure, can be copied instantly and can move between machines. A virtualization layer maps logical blocks to physical ones and keeps that map up to date, so it can spread data over several drives, mirror it, resize volumes and take snapshots without the application noticing. Storage Hypervisor describes the full software platforms built on this idea.
Which forms does it take?
| Form | What consumers see | Examples |
|---|---|---|
| Block | A raw disk device to format | LVM volumes, ZFS zvols, iSCSI targets, Ceph RBD |
| File | A shared directory tree | NFS and SMB exports, CephFS, GlusterFS |
| Object | Buckets of objects over HTTP | Self-hosted S3-compatible stores such as MinIO or Garage, Ceph RGW |
Databases and VM disks usually prefer block storage, shared documents prefer file storage, and backups and media libraries increasingly use object storage.
Where can the virtualization layer live?
- Host based: software on the server itself, such as LVM, mdadm or ZFS. Cheapest and most flexible; what you use on a dedicated machine.
- Array based: a storage controller inside a disk array virtualizes its own drives and exports LUNs.
- Network based: an appliance or software cluster in the storage network pools many arrays and servers.
On our machines, drives are delivered as separate devices with no RAID set up, so host-based virtualization is the natural fit, and it means every layer is under your control.
How do Linux layers stack?
A common, well-understood stack on a two-drive machine is mdadm for the mirror, LVM for flexible volumes, and a file system on top:
lsblk -e7 -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS mdadm --create /dev/md/data --level=1 --raid-devices=2 /dev/nvme0n1p4 /dev/nvme1n1p4 pvcreate /dev/md/data vgcreate vg_data /dev/md/data lvcreate -L 300G -n lv_pg vg_data lvcreate --type thin-pool -l 80%FREE -n pool_vm vg_data lvcreate -V 200G --thin -n vm_ci vg_data/pool_vm mkfs.ext4 -L pgdata /dev/vg_data/lv_pg mdadm --detail --scan >> /etc/mdadm/mdadm.conf && update-initramfs -u
Partition numbers depend on how the image was installed; check lsblk first and use free partitions or a fully unused drive. The thin pool lets you hand out more virtual space than you physically have, which is efficient but needs monitoring with lvs -o +data_percent. ZFS combines all three layers in one tool, as shown on Storage Hypervisor; Two-drive mirror (RAID 1) compares the approaches.
Which features come from the virtual layer?
- Online resizing: grow a volume and its file system while mounted, for example
lvextend -r -L +50G vg_data/lv_pg. - Snapshots: freeze a point in time for consistent backups.
- Redundancy: mirrors or parity across drives, rebuilt automatically after a replacement.
- Migration: move data between physical drives with
pvmovewhile the volume stays in use. - Tiering and caching: put a fast NVMe cache in front of larger, slower storage with lvmcache or a ZFS special device.
Can storage be virtualized across several machines?
Yes, with network file systems, block replication or distributed storage. Because our machines have no private network between them, cross-machine storage traffic travels over the internet and should be encrypted: NFS over a WireGuard tunnel, DRBD replication over a tunnel, or asynchronous snapshot replication with ZFS or restic. Asynchronous methods tolerate the latency between cities well; synchronous block replication works best between machines in the same city.
How do I serve a volume to another machine?
For file access, an NFS export over a WireGuard tunnel is the simplest route: export a directory to the peer's tunnel address only, for example /srv/share 10.60.0.12(rw,sync,no_subtree_check) in /etc/exports, and run exportfs -ra. For block access, an iSCSI target built with targetcli presents an LVM volume as a disk to another host. Either way, keep the service bound to the tunnel interface and closed on the public address, since neither protocol was designed to face the open internet.
What risks should I keep in mind?
- More layers mean more places for misconfiguration; document the stack on each machine.
- A mirror protects against one drive failing, not against deletion, corruption or ransomware. Keep backups on another machine.
- Thin provisioning can run out suddenly when many volumes grow at once.
- Check drive health with
smartctl -a /dev/nvme0and array status withcat /proc/mdstatregularly, and open a ticket if a drive reports errors.
Which machines suit storage virtualization?
Machines with several large NVMe drives give the virtual layer the most to work with. The D20 with 4x 4 TB NVMe supports parity layouts, the D21 offers 6x 15.36 TB NVMe + 1x 1 TB NVMe (boot), and the two-drive S12 (2x 4 TB NVMe) is an affordable mirrored platform. Storage servers goes further.
Machines With Room for Pools and Volumes
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S3 | Intel Xeon E-2356G | 6 / 12 | 64 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $80.38 | $80.38 (1 month) |
| S12 | Intel Core i9-14900K | 24 / 32 | 192 GB DDR5 | 2x 4 TB NVMe | 2x 10 Gbps | $202.82 | $202.82 (1 month) |
| D20 | 2x Intel Xeon Gold 6336Y | 48 / 96 | 256 GB DDR4 | 4x 4 TB NVMe | 2x 25 Gbps | $990.36 | $990.36 (1 month) |
| D21 | 2x Intel Xeon Gold 6430 | 64 / 128 | 256 GB DDR5 | 6x 15.36 TB NVMe + 1x 1 TB NVMe (boot) | 2x 25 Gbps | $1,152.97 | $1,152.97 (1 month) |
Keep Reading
Storage Hypervisor
Software that pools physical drives and serves them as managed virtual storage, the features it adds, and how to build one on bare metal.
OpenTwo-drive mirror (RAID 1)
How RAID 1 keeps a full copy of your data on two drives, which machines have two drives and how to check it with mdadm.
OpenStorage servers
From 8 TB mirrors to a six-drive NVMe array of more than 90 TB raw, with ZFS or mdadm laid out by you.
OpenSSD (solid state drive)
What an SSD is, SATA versus NVMe, how flash wears and how to check drive health on a server with smartctl and nvme-cli.
OpenFAQ
Quick Answers
A layer that hides physical drives behind logical pools and volumes, adding resizing, redundancy, snapshots and migration.
Block storage appears as a raw disk, file storage as a shared directory tree, and object storage as buckets accessed over HTTP.
No. Drives arrive as separate devices. You build mirrors or pools yourself with mdadm, LVM or ZFS.
Yes. lvextend with the -r flag grows the volume and its file system online for ext4 and XFS.
No. It survives a drive failure but not deletion or corruption. Keep backups on another machine as well.