Skip to content

Proxmox storage management

Storage & Backups > Storage is the storage management page for the Proxmox VE datacenter storage configuration of a connection (one node, or a whole cluster). It edits the same storage list you see under Datacenter > Storage in Proxmox. To see a single node’s storages and their usage, use the Storage tab on the node page instead.

Pick the connection in the selector at the top. The table lists its storages with Storage (the ID), Type, Content, Nodes, Enabled and Target (the directory path, or server and export or share), read live from Proxmox. Use the search box to filter it.

  1. Click Add storage.
  2. Enter a Storage ID (lowercase letters, digits, ., _ and -) and pick the Type:
    • DIR: pick a Mounted file system (for example /mnt/hdd2 (1.8 TB, ext4)): file systems mounted on a node that are not a storage yet (never /, /boot, /var, /usr, /etc, /tmp or the root volume group). The path is filled in and the storage is restricted to that node. Pick Other path to type a Directory path (absolute, for example /srv/storage): it must not be / or below /etc, /proc, /sys, /dev, /run or /boot, must not be a storage path already, and must exist on every node it is for (checked by the node agent). Nothing is formatted.
    • LVM-thin on a disk / ZFS on a disk: see Storage from an unused disk.
    • NFS: the NFS server and Export (for example /exports/data).
    • SMB / CIFS: the SMB server, Share, Username and optional Password.
  3. Tick at least one of the Content types: images, iso, vztmpl, backup, snippets, rootdir.
  4. Optionally Restrict to nodes (comma-separated node names, for example node1,node2) and set Enabled.
  5. Click Add storage.

Below the storage list, a Disks card per node lists every physical disk, not only the ones a storage uses. The node page’s Storage tab shows the same card for that node. Each row has the device (/dev/sdb and its /dev/disk/by-id name), model and serial, size, type (HDD, SSD, NVMe), the SMART status (and the wearout of SSDs) and the Usage:

UsageMeaning
System disk (BIOS boot, /, swap, PVE root VG pve)The node runs from it.
Used by storage local-lvm (LVM-thin)A Proxmox storage uses it (LVM volume group, ZFS pool or directory).
Has a file system (ext4) mounted at /mnt/usb1tbA mounted file system that is not a storage yet.
Part of LVM volume group data / Part of ZFS pool tank (not a storage)A member of a volume group or pool no storage uses.
Passed through to guest 101 / Passed through to a guestA guest uses the disk, its controller (hostpci) or its USB device (usb), or the controller is in a GPU/PCI pool.
Has partitions / Has a partition table (dos)Something is on the disk.
UnusedNo partitions, no file system, RAID, LVM or ZFS signature, not mounted, not a member, not passed through (disk, controller or USB device).

The facts are read in the background with the host facts (every 15 minutes, or Rescan host facts on the node page): Proxmox’s disk list with SMART plus, from each node’s own agent, the mounts and the disk signatures (lsblk, findmnt, pvs, wipefs without erasing). The pages only show what was read last (“As of …”).

LVM-thin on a disk and ZFS on a disk turn one unused disk into a new storage: an LVM thin pool, or a ZFS pool with a single disk (raidlevel single, Proxmox’s default ashift). The storage ID is also the name of the new volume group or pool; the storage holds disk images and containers and is added for that node only.

  1. Click Add storage, enter the Storage ID and pick LVM-thin on a disk or ZFS on a disk.
  2. Pick the Disk. Each disk shows Unused, Erase and use or In use (with the reason; these cannot be picked).
  3. For an unused disk, type the device name (for example sdb) under Type the device name to confirm. For an Erase and use disk, the panel reads the disk on the node and lists This will be destroyed (partitions with file system, label and size, mount points, LVM volume groups, ZFS pools, signatures). Type the device name, a colon and the last 4 characters of the serial number (for example sdb:B4BT).
  4. Click Add storage and pass the security check if the panel asks for one (authenticator code, emailed code or password).

A disk that is not empty can be erased when everything on it is old: partitions, file systems, RAID, LVM or ZFS signatures, an inactive volume group that is not a Proxmox storage, an old ZFS label of a pool that is not imported, or a mount that is not a storage path. It is never offered when:

  • it is the system disk or holds the root volume group, or backs a Proxmox storage;
  • device mapper uses it (active LVM volumes, LUKS, multipath, md RAID);
  • a ZFS pool on it is imported (“export it by hand first”);
  • a guest uses it: the disk or a partition by any /dev path, a folder or file on one of its mounts (including virtiofs directory mappings and file disks), its controller (hostpci) or USB device (usb), or the controller sits in a GPU/PCI pool;
  • a mount on it has open files, SMART failed, or anything could not be checked (storage configuration, LVM, ZFS).

The node agent then checks everything again itself and works step by step, stopping at the first step that fails: unmount (never a lazy unmount), comment out the /etc/fstab lines whose device (resolved by UUID, LABEL, PARTUUID or path) is this disk or one of its partitions, plus bind and loop lines that use a path on its mounts or mount into them (backup /etc/fstab.nexovirt-<date>, the new file is checked with findmnt --verify; an fstab line that cannot be resolved to exactly one device stops the erase before anything happens), clear old ZFS labels, wipe every partition and the disk (wipefs -a, sgdisk --zap-all when installed), and read the disk again: it must be empty before Proxmox creates the storage. A volume group that also spans other disks is named in the destroyed list. The erase is recorded in the audit log as storage.disk_erase with the list of what was destroyed. It is not possible through the REST API.

The creation runs on Proxmox (disks/lvmthin or disks/zfs) and the panel waits until the task ends. The new storage appears in the list at once; the disk list follows with the next background read. It is recorded in the audit log as storage.create_from_disk (node, device, type and storage ID).

Edit changes only the content types, the node restriction and whether the storage is enabled. The ID, type and connection details can’t be changed; remove and re-add the storage instead.

Remove asks you to type the storage ID to confirm.

The content types decide what Proxmox may store on a storage:

Content typeHolds
imagesQEMU virtual machine disks.
rootdirLXC container root and mount point volumes.
isoISO images for installing an operating system by hand.
vztmplLXC container templates.
backupvzdump backup files.
snippetsCloud-init snippets, such as the guest-agent snippet NexoVirt adds to new VMs.

A storage that should host new guests needs images for VMs and rootdir for containers.

Shop products and disk add-ons can ask for a disk type (NVMe, SSD or HDD). Proxmox does not know what hardware is behind a storage, so you mark it: on the node page, the Storage tab has a Disk type column with Not set, NVMe, SSD and HDD. The choice is saved at once (“Disk type saved.”) and is per node: a shared storage is marked on each node separately.

  • Only storages that hold guest disks (content images or rootdir) get the select. Backup, ISO and template storages show a -.
  • A storage without a disk type is never used for a disk that asks for one. Disks without a type (Any storage) can use every storage, marked or not.
  • Setting a disk type needs permission to manage hosts and is recorded in the audit log (storage.class).
  • The REST API reads the type as class on GET /api/v1/hosts/{id}/storages and sets it with PUT (or POST) /api/v1/hosts/{id}/storages/class (node, storage, class: nvme, ssd, hdd, or null to clear).

Where disk types are used: product disks and the Extra disk (NVMe, SSD, HDD) add-on.

During onboarding the node agent creates its own nexovirt-images directory storage at /var/lib/nexovirt/images on each node. It holds the cached cloud images that new VMs are imported from. It appears in this list like any other storage; leave it in place, or QEMU guest creation on that node stops working until the agent is set up again.

The page is admin-only; adding, editing and removing storages require permission to change settings; a storage from a disk also needs a recent security check (step-up). Every change is recorded in the audit log (storage.create, storage.create_from_disk, storage.update, storage.delete).

NexoVirt is developed and designed by Nucez Software, your partner for custom software and web design.