Table of Contents

Proxmox - Disks - Add Storage Drives - ZFS Pools

It is recommended by Proxmox to use ZFS Pools for Storing your VMs.

ZFS gives you more performance and Redundancy.


List Drives

ls /dev/disk/by-id

Create a pool

zpool create -f -m <mount> <pool> <type> <ids>

returns:

NOTE: where:

  • create: subcommand to create the pool.
  • -f: Force creating the pool to bypass the “EFI label error”.
  • -m: The mount point of the pool. If this is not specified, then the pool will be mounted to root as /pool.
  • pool: This is the name of the pool.
  • type: mirror, raidz, raidz2, raidz3. If omitted, the default type is a stripe or raid 0.
  • ids: The names of the drives/partitions to include in the pool obtained from ls /dev/disk/by-id.

Example:

zpool create -f -m /mnt/zstorage  zstorage raidz2 <ids>

Check the pool

zpool list
zpool list -v
zpool iostat
zpool iostat -v

Check Proxmox Storage Manager to Know it exists

pvesm zfsscan

Configure the ZFS Pool

zfs create zstorage/iso
zsf create zstorage/share
zsf create zstorage/vmstorage
zsf create zstorage/cnstorage

Set quota

zfs set quota=1000G zstorage/iso

Check

zfs list
zpool status
zpool iostat -v

Navigate to Datacenter → Storage → Add → Directory → zstorage/iso.

IMPORTANT: Make sure only ISO image and Container template are selected.

Navigate to Directory → Add → ZFS → Id: vmstorage → ZFS Pool: /zstorage/vmstorage.