Skip to content

Lesson 2 of 9 · 24m

Installation and Disk Layout Decisions

How to choose ext4, ZFS, RAID, and disk sizing during installation — and why host disks are infrastructure, not leftover capacity.

Most Proxmox pain is purchased during installation. The installer asks a few innocent questions, you accept defaults, and six months later you discover that a single consumer SSD owns the host OS, every VM disk, and your confidence. Disk layout is a capacity, performance, and recovery decision.

ZFS is usually the right host default

For a homelab or small business node, ZFS on the root pool is compelling: checksumming, snapshots, compression, replication-friendly design, and native integration for VM disks. A mirrored pair of real disks beats one large disk almost every time.

During install, typical choices look like:

Filesystem: zfs (RAID1)
Disks: /dev/sda /dev/sdb
ashift: 12
compress: lz4
hdsize: remaining disk space

ashift=12 means 4 KiB sectors. Modern SSDs and most spinning disks want that. A wrong ashift on pool creation is permanent; replacing disks does not rewrite the fundamental topology.

Know what the installer created

zpool status -v rpool
zfs list -o name,used,avail,compressratio,mountpoint
arc_summary | head -40

rpool contains the host and often the default local-zfs storage. Do not confuse the physical pool with Proxmox storage definitions in /etc/pve/storage.cfg; Proxmox storage is an abstraction layered over ZFS, directories, NFS, Ceph, iSCSI, and others.

Host RAM and ARC are not free memory

ZFS ARC uses RAM as read cache. On a virtualization host, that memory competes with guests. In small systems it is often sensible to cap it, but only after measuring workload behavior.

# /etc/modprobe.d/zfs.conf — example cap, not a universal value
options zfs zfs_arc_max=4294967296

After changing it, update initramfs and reboot deliberately:

update-initramfs -u

Separate roles before you need them

A practical small-node layout is mirrored SSDs for the OS and VM system disks, plus separate larger disks or a NAS/Ceph tier for bulk data. Do not turn the boot mirror into the only place for every ISO, backup, container image, and test VM.

Field notes

  • ZFS mirrors are not backups. They protect against device failure, not deletion, corruption at the application layer, fire, or ransomware.
  • Consumer SSDs without power-loss protection can be fast in benchmarks and dangerous in write-heavy database workloads.
  • A ZFS pool that crosses 80-90% full loses write performance and becomes operationally awkward. Plan headroom.
  • zfs destroy does not care that a dataset name resembles something important. Use snapshots and confirm full dataset paths.
  • For business systems, bootable recovery matters more than benchmark elegance: keep a tested install ISO and configuration backup.

Was this lesson helpful?

Sign in to rate