VorticPanel

Administration

Storage

Each node has one or more storage pools where server disks live. The agent finds volumes that could hold disks; you register them on the node’s Storage tab with Add storage. To use a new, blank drive, see Adding a new drive.

When a node first connects, the panel registers one pool for it automatically, from the volumes of at least 20 GB the agent found: an LVM thin pool if there is one, otherwise a ZFS pool, otherwise a folder of qcow2 files (the biggest of its kind). It starts as the default pool, with overcommit 1. A thin pool that holds the node’s own system (its /, other mounted filesystems or swap) is never picked on its own: staff get a notification, and can add it from Add storage. Add any other volumes yourself.

Kinds

Kind Disk for each server Notes
LVM thin pool A thin volume, /dev/<vg>/<id> Recommended. Fast snapshots, thin provisioning.
LVM volume group A thick volume, /dev/<vg>/<id> Overcommit is always 1. A snapshot takes as much free space in the volume group as the disk, and counts toward the pool’s room like a disk: one that would take the pool past its group’s disk limit is refused. A backup’s temporary snapshot takes as much as the disk when there’s room, otherwise most of what’s free, at least a tenth of the disk; a backup whose snapshot fills up while it’s read fails.
ZFS dataset A sparse zvol, /dev/zvol/<dataset>/<id> Snapshots visible with snapdev=visible
Directory (qcow2 files) <dir>/<id>.qcow2 /var/lib/libvirt/images by default, or any folder you add, such as one on a second drive

Snapshots count toward a pool’s room on every kind of storage, at the size the node reports: a folder’s are copies of the disk’s data, and thin and ZFS ones come to hold what the server rewrites after them. A snapshot that would take the pool past its group’s disk limit is refused, and none is taken on a degraded pool. A package or hardware change that’s still running counts at the size it’s going to.

Backups, restores and Save image make temporary copies of a disk on the node (on folder storage, next to the disk and in the agent’s own folder). Like downloads, a copy doesn’t start when it would leave its disk with less than a tenth of its size free (at least 5 GB), and stops if the disk gets that full while it runs. A copy that stops part-way is removed.

A new plain LVM volume is zeroed before a server gets it, and so is the space a grow adds: it’s zeroed first, then the disk grows onto it, so a running server never has space that isn’t zeroed. On a thin pool made with zeroing off (-Zn), the agent turns it on (lvchange --zero y) before it makes or grows a disk there; if it can’t, the disk isn’t made and the job says why.

Adding a new drive

A new drive is set up on the node, then added on the node’s Storage tab with Add storage. Pick one of the three ways below and run its commands on the node as root (over SSH). The simplest is a folder, as on other panels: format the drive if it’s blank, mount it on a folder through /etc/fstab, and enter that folder in the panel.

Formatting (mkfs, pvcreate, zpool create) erases the drive you name. Make sure it’s the empty one.

1. Find the drive

lsblk -o NAME,SIZE,TYPE,ROTA,MOUNTPOINT,MODEL

The new drive is the one of the right size with no partitions under it and nothing in MOUNTPOINT, such as sdb or nvme1n1. Its device is /dev/ and that name: /dev/sdb, /dev/nvme1n1. ROTA is 1 for a spinning hard drive (pick the HDD tier for it) and 0 for SSD or NVMe. The examples below use /dev/sdb; use your drive’s name instead.

2. Set it up

A folder of qcow2 files (simplest)

Each server’s disk is a file in a folder. The folder can be anywhere you like, such as /vms, /home/vms or /storage; the steps use /vms.

  1. If the drive is blank, give it a filesystem, labeled vms (skip this if it’s already formatted):

    mkfs.ext4 -L vms /dev/sdb
  2. Make the folder:

    mkdir -p /vms
  3. Add the drive to /etc/fstab so it’s mounted there at every boot (nofail lets the node start even if the drive is missing):

    echo 'LABEL=vms /vms ext4 defaults,nofail 0 2' >> /etc/fstab
  4. Mount it, and check the folder shows the drive’s size:

    mount -a && df -h /vms
  5. In the panel: the node’s Storage tab → Add storage → A folder for qcow2 files, enter /vms, give it a name and tier, and click Add storage.

A folder on the system drive works too: make it and add it, with no formatting or fstab.

If the drive ever failed to mount, /vms would be an empty folder on the system drive, and new disks would go there. To have the panel stop and show the pool as Degraded instead, make a folder inside the drive once it’s mounted (mkdir /vms/images) and add that.

Each server’s disk is a thin volume: faster than files, with quick snapshots.

  1. Make the drive a volume group called vg_data with a thin pool thin0 in it, leaving 10% free for snapshots and metadata:

    wipefs -a /dev/sdb && pvcreate /dev/sdb && vgcreate vg_data /dev/sdb && lvcreate -l 90%FREE --thinpool thin0 vg_data
  2. In the panel: Add storage, then pick vg_data/thin0 (LVM thin pool) from the list.

If pvcreate isn’t found, install LVM first with apt install -y lvm2 (Debian, Ubuntu) or dnf install -y lvm2 (Rocky, Alma). A node’s first drive can be set up the same way when it’s installed, with the install command’s --storage-disk option.

A ZFS pool

For ZFS’s checksums, compression and mirrors.

  1. Install ZFS (Ubuntu):

    apt install -y zfsutils-linux
  2. Make a pool called tank on the drive:

    zpool create -o ashift=12 tank /dev/sdb

    With two drives, mirror them so either can fail: zpool create -o ashift=12 tank mirror /dev/sdb /dev/sdc.

  3. In the panel: Add storage, then pick tank (ZFS dataset) from the list.

More than one drive

  • Several drives as one pool: with LVM, put them all in the volume group: pvcreate /dev/sdb /dev/sdc && vgcreate vg_data /dev/sdb /dev/sdc, then the lvcreate line above. This adds their space together but doesn’t protect against a drive failing; for that, use a ZFS mirror, or a RAID made with mdadm before LVM.
  • Separate pools: set up each drive on its own (with different names, such as /vms2 or vg_data2) and add each one. Give each the right tier; packages ask for one or more tiers, and new servers’ disks only go to pools of a tier the package allows.

If it isn’t listed

Add storage needs the node online. It asks the node again each time it opens, and shows each volume’s size and the space still free in it. A volume group with a thin pool in it is offered as the thin pool only, and a thin pool in a volume group that’s already storage isn’t offered. A volume group or thin pool that holds the node’s own system (its /, other mounted filesystems or swap) is marked: servers’ disks would only go in its free space, but a separate drive is better. If the volume group or ZFS pool you made doesn’t show, check it on the node with vgs, lvs or zpool list. A folder doesn’t need to be listed: type its path, and the panel checks on the node that it exists and measures it. /, /home, /opt, /srv, /tmp, /var and /var/lib can’t be storage themselves (a folder inside them can). Nothing inside the system’s own folders (such as /etc, /usr, /boot, /run or /root), Docker’s or libvirt’s own folders (/var/lib/libvirt/images apart) or the panel’s can be storage, nor a hidden folder. A link is judged by the folder it leads to.

Pool settings

Setting Notes
Name Lowercase letters, numbers, dashes and underscores, up to 32 characters
Tier NVMe, SSD or HDD. The agent detects it; ZFS and directories report SSD, so check it. Can’t change while disks are on the pool.
Reserved GB kept free, up to half the capacity. The panel suggests about 2.5%.
Overcommit A multiplier of the size (less Reserved), from 1 to 4 in steps of 0.1: 1 gives out only the real space, 1.5 half as much again (a 1 TB pool takes 1.5 TB of disks). Thin disks only take up what servers have written: an overcommitted pool runs out of space only if servers fill their disks. The panel suggests 1.2 for LVM thin and 1.5 for ZFS and directories. Always 1 for an LVM volume group.
Default for new disks The first pool becomes the default
Take new disks now When off, the pool is disabled and takes no new disks

A pool shows as Degraded on the Storage tab when it’s 95% full, or when the node hasn’t found it for over 6 minutes (its volume group, ZFS pool or folder is gone, as after the node’s OS was reinstalled), with the reason beside it. A degraded pool takes no new disks. Staff who can see nodes get a notification (and email, if they’ve turned it on) when a pool goes degraded, and the audit log records it. A pool that keeps going in and out of degraded notifies at most once every 6 hours.

How a disk finds a pool

Packages allow one or more tiers. Placement only uses nodes with an enabled pool of an allowed tier, not degraded, with room under the group’s disk limit; among those, the group’s placement rule picks the node, whatever the tier. The disk goes to the node’s default pool when it’s enabled, of an allowed tier and still under the disk limit with the new disk; otherwise to the eligible pool with the most free space. A server records the tier of the pool it lands on, and a package that allows several is shown as the fastest of them (diskType; the full set is diskTypes).

Servers that already exist aren’t held to their tier. A move, emptying a node or an import uses storage of another tier when there’s no room on their own, and a disk can be moved to a pool of any tier on its node. The server’s disk type then becomes the tier it’s on.

Every word has to appear. ↑ ↓ to move, Enter to open.