Pool space has run out: writes in VMs fail
When a pool runs out of space, writes fail for all virtual machines (VMs) of the pool at once. This condition does not resolve automatically: delete what you do not need or move the disks of some VMs to another pool. Keep pool usage below 80%: above that, ZFS writes more slowly, and close to 100% writes fail.
What you see
- The guest OSes of the pool VMs report disk write errors, and file systems switch to read-only mode.
- On the pool page, in the Properties section, Free is close to zero, and Used almost equals Capacity.
- The pool Health is Normal.
- Operations with the pool VMs may fail with the
No free disk spaceerror.
What to do
-
Check pool usage on the node. Run this on the current node of the pool over SSH:
zpool list <pool name>grep 'errno: 28' /var/log/messages | tail -2Normally,
CAPis below 80%.CAPat 95–100% and recent lines withCan't write, errno: 28mean that writes fail right now: notify vStack support at the same time as you take the next steps. -
Delete the snapshots you do not need for the VMs of the pool — Free space in the pool decreases.
-
Delete VMs that are definitely not needed — Delete a VM. Powered-off VMs (the Offline status in All Virtual Machines) occupy space with their disks, and suspended VMs also with a volume the size of their memory. Deletion is irreversible: the VM owner decides.
-
Move the disks of some VMs to a pool where usage stays well below 80% after the move. Pool usage is shown in the Pools table and on the pool page — View pool state and capacity. How to move the disks — Move VM disks to another pool. The move starts with a snapshot on the source pool: if writes already fail, first free up space with steps 2–3.
-
No free pools — contact vStack support to plan a storage expansion.
Check the result
- On the pool node,
CAPis well below 80%, and there are no new lines witherrno: 28. - Writes work in the guest OSes. Restore the file systems that switched to read-only mode with the guest OS tools.
What not to do
- Do not delete datasets, volumes and snapshots with ZFS commands on the node. A running VM may be behind a volume, deletion is irreversible, and VMs without data remain in the web interface.
If this did not help
Write down the pool name, the output of zpool list <pool name> and zfs list -o name,used,avail -d 1 <pool name>, and the time of the first and the last line with errno: 28. Collect the rest from the list in Collect data for support and contact vStack technical support.