Skip to content

LINSTOR: PVC Pending with Not enough available nodes

Storagetested on LINSTOR 1.34.2, linstor-csi v1.12.0

If a pool is too full, the PVC stays Pending – nothing is half-created. The event message starts with Not enough available nodes and lists all criteria, but not which one failed.

Symptom

kubectl -n kapazitaet get pvc zu-gross | cut -c1-60
kubectl -n kapazitaet get events \
  --field-selector involvedObject.name=zu-gross,reason=ProvisioningFailed \
  -o jsonpath='{.items[-1:].message}' | sed -n '2,5p;/Replica count/p;/different/,+1p'
NAME       STATUS    VOLUME   CAPACITY   ACCESS MODES   STOR
zu-gross   Pending                                      lins
 * has a deployed storage pool named [pool_data]
 * the storage pools have to have at least '20971520' free space
 * the current access context has enough privileges to use the node and the storage pool
 * the node is online
   Replica count: 2
   Replicas on nodes with different property:
      Aux/zone

Diagnosis

How much space is free – per pool and per node?

linstor --no-utf8 --no-color storage-pool list -s pool_data pool_nvme | cut -c1-59
| StoragePool | Node   | Driver | PoolName | FreeCapacity |
| pool_data   | k0s-w1 | LVM    | data     |    24.79 GiB |
| pool_data   | k0s-w2 | LVM    | data     |    16.78 GiB |
| pool_data   | k0s-w3 | LVM    | data     |    21.79 GiB |
| pool_nvme   | k0s-w1 | LVM    | cache    |     1.74 GiB |
| pool_nvme   | k0s-w2 | LVM    | cache    |     1.34 GiB |
| pool_nvme   | k0s-w3 | LVM    | cache    |     1.59 GiB |

Causes

Aux/zoneOne zone doesn't have enough space

Because of replicasOnDifferent Aux/zone, the PVC needs a node with enough space in every zone. In the course k0s-w2 is the only node in zone b and has the least free space. The cross-check without a zone rule works – both replicas land in zone a.

linstor resource-definition create tag12-probe
linstor volume-definition create tag12-probe 20G
linstor --no-utf8 --no-color resource create tag12-probe --auto-place 2 \
  --storage-pool pool_data | grep 'Used nodes'
    Used nodes (storage pool name): 'k0s-w1 (pool_data)', 'k0s-w3 (pool_data)'

Cache poolThe cache pool needs space too

With a writecache, the cache pool also needs its 5 %. With little space left, placement therefore fails sooner than the sum of free gigabytes suggests.

DelayFreed space shows up late

Used and freed space reaches the controller with a delay. In the lab a second attempt after half a minute worked, especially right after a delete.

Fix

Pick a size that fits on one node in every zone, or free up space in the tight zone. Delete the probe from the cross-check again.
linstor resource-definition delete tag12-probe | tail -1
▶
Break it yourself and find it – free
k0s and LINSTOR hands-on, day 12: a full file system, growing a volume with the writecache trap and a full pool with a zone rule.
Go to day 12 →

FAQ

Is anything half-created with Not enough available nodes?

No. The PVC stays Pending, nothing is half-created.

Related error patterns

More