Ist ein Pool zu voll, bleibt das PVC Pending – nichts wird halb angelegt. Die Meldung im Event beginnt mit Not enough available nodes und zählt alle Kriterien auf, aber nicht, welches gescheitert ist.
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
Diagnose
Wie viel Platz ist frei – pro Pool und pro 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 |
Ursachen
Aux/zoneIn einer Zone reicht der Platz nicht
Wegen replicasOnDifferent Aux/zone braucht das PVC in jeder Zone einen Node mit genug Platz. Im Kurs ist k0s-w2 der einzige Node in Zone b und hat am wenigsten frei. Die Gegenprobe ohne Zonenregel klappt – beide Kopien landen 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-PoolAuch der Cache-Pool braucht Platz
Mit Writecache braucht auch der Cache-Pool seine 5 %. Bei knappem Platz scheitert die Platzierung deshalb früher, als die Summe der freien Gigabytes vermuten lässt.
VerzögerungFrei gewordener Platz kommt spät an
Belegter und frei gewordener Platz kommt mit Verzögerung beim Controller an. Im Labor klappte ein zweiter Versuch nach einer halben Minute, besonders direkt nach einem Löschen.
Lösung
linstor resource-definition delete tag12-probe | tail -1
k0s und LINSTOR zum Anfassen, Tag 12: volles Dateisystem, Vergrößern mit Writecache-Falle und ein voller Pool mit Zonenregel.
Zu Tag 12 →
Häufige Fragen
Wird bei Not enough available nodes etwas halb angelegt?
Nein. Das PVC bleibt Pending, nichts wird halb angelegt.