UnieAI Studio

Storage and disks

On a machine's Storage page, read how full each disk is, move default storage off the system disk, prepare a blank disk as LVM storage, and adjust the capacity share and alert thresholds.

Application and vCluster data all ends up on a disk, so work out where this machine's space is and whether default storage writes to the system disk or a data disk before deciding how much to give a vCluster. Everything happens on the machine's Storage tab; scanning only reads, and anything that touches a disk asks you to confirm first.

Before you start

What you needHow to check
A machine that is already connectedIn Compute provider → Hosts its status is Ready to split, and opening it shows a Storage tab
LVM local storage driver ticked while connectingThe Storage page offers Prepare as LVM storage; without that button, re-run installation and tick it
At least one data diskThe Disks table lists a disk besides the system disk (mounted at /data, for example)
A sense of how much space to leave for vClustersvCluster data lands in the directory or LVM storage you point it at, and filling it affects the whole machine

Step 1: Open the Storage page and scan once

  1. At the bottom left, switch to Compute provider, open Hosts, and select the machine you want.
  2. Choose the Storage tab at the top; the page title is Storage.
  3. The first visit scans on its own; for the latest numbers, select Re-scan.
  4. Read the Disks table: device, model (only the last four characters of the serial), size, mount points, status, and the usage of each filesystem.

Status has only three values: In use (the system disk, mounted, has partitions, has a filesystem or partition table, or is already an LVM physical volume — the reason is listed beside it), Blank, can be prepared, and Not applicable.

Check it worked: the scan time is just now, every disk has a status, and each usage bar shows a used percentage.

Step 2: Move default storage off the system disk

local-path is Kubernetes' default storage, and its data starts on the system disk at /opt/local-path-provisioner. Filling the system disk drags down the whole machine, every vCluster included.

  1. If Default storage (local-path) is on the system disk appears above Disks, select Store in … on that warning; the button text already carries the directory the platform suggests, for example Store in /data/unieai-local-path.
  2. The directory has to be under a data disk's mount point — the mount point itself is not accepted.
  3. When it looks right, select Change directory.

This only changes the local-path configuration; nothing is moved, deleted or formatted. Existing volumes stay where they are and only new ones use the new directory. If that disk has other uses, confirm the remaining space is enough first.

Check it worked: the warning becomes "local-path stores data in directory; assignable capacity number, assigned number". Assignable capacity is that disk's total size times the local-path assignable share.

Step 3: Prepare a blank disk as LVM storage

A disk marked Blank, can be prepared can become LVM storage, which can then be given to vClusters — each with a hard limit — and lets applications be snapshotted together with their data.

  1. On that disk's row, select Prepare as LVM storage.
  2. Fill in Storage name (letters, digits and hyphens only; it becomes a volume group named unieai-…) and choose Volume filesystem (ext4 or XFS).
  3. Type the last four characters of the serial shown; for a disk without a serial, type the device name instead.
  4. Select Erase and prepare.

This erases the entire disk, so only a completely blank disk offers the action: anything with a partition, filesystem, mount, swap or sign of LVM is out. Right before running, the platform checks the disk once more on the machine and stops without writing if a single item does not match.

Check it worked: the disk is no longer blank, and Registered storage has gained an LVM entry. If the message says the storage driver has not seen it yet, wait a moment and select Register storage to add it.

Step 4: Set the capacity share and alert thresholds

  1. On the Storage page, select Storage settings.

  2. Fill in only the fields you want to override; an empty field keeps the platform default:

    FieldPlatform defaultWhat it governs
    local-path assignable share80%How much local-path capacity vClusters can be given
    Snapshot reserve20%Space held back for application snapshots
    Disk usage warning / critical85% / 95%Filesystem usage alerts
    Thin pool warning / critical80% / 90%Alerts for the LVM thin-provisioned pool
  3. Select Save.

Check it worked: the page says the storage settings were updated, and the fields you changed are marked Overridden here. Lowering a share afterwards gets refused once the new assignable capacity would fall below what the vClusters currently hold.

Common snags

ScreenUsual causeWhat to do
A disk stays In useIt is the system disk, mounted, has partitions, has a filesystem or partition table, or is already an LVM physical volumeThe platform does not touch a disk with data on it; if you are sure you do not want it, deal with it on the machine yourself and select Re-scan
The reason reads blankness could not be verifiedThe disk signature cannot be read, usually for lack of permissionConfirm the SSH user has sudo, then Re-scan
A disk shows Not applicableSmaller than 20 GiB, or not a physical disk at allUse a real disk; virtual devices cannot be prepared
Prepare as LVM storage is missingLVM local storage driver was not ticked while connectingRe-run installation with it ticked, then come back
The prepare dialog refuses to submit, or says the serial does not matchThe last four characters of the serial (or the device name) were typed wrongCopy them again from the serial shown at the top of the dialog
Preparation fails, saying the disk state has changedThe check before writing found a partition, filesystem or mountNothing was written; select Re-scan to see the current state
Changing the directory says the mount point itself cannot be usedThe value is a mount point such as /dataUse a subdirectory under it instead, for example /data/unieai-local-path
An application snapshot is refusedThe volume uses local-path or NFSOnly LVM storage snapshots data with the application; move it to LVM storage and try again

Next steps