Skip to content

Lesson 5 of 9 · 27m

Storage Backends: Local, Shared, and Distributed

What directory, ZFS, LVM-thin, NFS, iSCSI, and Ceph actually mean operationally — including thin provisioning, latency, and recovery behavior.

Storage is where virtualization marketing goes to meet physics. Proxmox can attach to many backends, but each has different semantics for snapshots, migration, thin provisioning, failure, and repair. Choose for recovery behavior first and convenience second.

The abstraction layer

cat /etc/pve/storage.cfg
pvesm status
pvesm list local-zfs

A Proxmox storage definition declares content types — disk images, container volumes, ISO files, snippets, backups — and maps them to a backend. A VM disk is therefore not just a file; it is a volume in a particular storage implementation.

dir: local
    path /var/lib/vz
    content iso,vztmpl,backup
zfspool: local-zfs
    pool rpool/data
    content images,rootdir
    sparse 1

Local backends

A directory backend stores disk files such as qcow2 or raw on a mounted filesystem. It is simple and inspectable. ZFS creates zvols or datasets, gives checksums and snapshots, and integrates tightly with replication. LVM-thin is efficient but less forgiving when overfilled.

The distinction matters during repair. A qcow2 file can often be copied or inspected with qemu-img. A zvol is managed through ZFS. A logical volume needs LVM tooling. Do not treat all disks as interchangeable files because the UI presents them uniformly.

NFS and iSCSI are shared access, not shared magic

NFS is easy to attach and useful for ISOs, backups, and sometimes disk images on a trustworthy filer. iSCSI presents block devices and usually needs a filesystem or LVM layer before Proxmox can use it. Both depend on network latency and availability. A storage network outage can look like mass guest failure while compute remains perfectly healthy.

For NFS, mount options and server behavior matter more than the checkbox in the UI. Test failover and know whether the filer itself is a single point of failure.

Ceph is a commitment

Ceph gives distributed, replicated or erasure-coded storage across nodes. It can remove the single-filer problem and support flexible migration. It also introduces monitor placement, OSD failure behavior, CRUSH topology, recovery traffic, memory use, and upgrade discipline.

ceph -s
ceph osd tree
ceph df
rbd ls vmdata

Do not adopt three-node Ceph because a video said it was easy. Use it when you can operate it, or use simpler replicated backups and accept less glamorous migration semantics.

Thin provisioning and discard

Thin provisioning saves allocation but creates overcommit risk. sparse on ZFS and thin LVM can both fill unexpectedly. Inside guests, discard support and filesystem trim help release blocks, but they also add wear and workload-dependent behavior. Monitor real allocation, not just logical guest size.

Field notes

  • Fill a thin pool completely once in a lab and observe the consequences before trusting it in production.
  • Storage latency, not average throughput, determines whether databases feel healthy. Learn iostat -x 1 and zpool iostat -v 1.
  • One storage backend can be excellent for disks and terrible for backups. Do not force one system to serve every role.
  • Shared storage is not required for live migration if replicated local disks are designed correctly.
  • Document which datastore owns each critical guest; during a failure, guessing consumes the time you needed for recovery.

Was this lesson helpful?

Sign in to rate