Appendix C: Failure catalogue
The failure catalogue is sorted by what you see. Each entry starts with a symptom, names one to three commands to check, the cause and the way back. All twenty failure patterns were reproduced in the lab (LINSTOR 1.35.3, DRBD 9.3.4, Piraeus CSI v1.13.2, k0s v1.37.2); all outputs are real and at most abridged. Where a day already plays through the pattern as a full drill, the entry stays short and points there.
Two numbers tell you after every intervention whether everything is
fine again: FEHLER (“error”) in the measuring instrument
and lines in --faulty (Appendix A, Measuring). Both
0 means: done.
Overview
| You see | Entry | More in |
|---|---|---|
connection:Connecting to a peer |
C1 | Day 11, Day 20 |
disk:Outdated on a replica |
C2 | Day 11 |
disk:Inconsistent, SyncTarget |
C3 | Day 9, Day 10 |
suspended:quorum, writes hang |
C4 | Day 10, Day 11 |
StandAlone on one side only |
C5 | Day 9 |
StandAlone on both sides |
C6 | Day 11, Day 20 |
LINSTOR Unknown, DRBD
No such resource |
C7 | Day 9, Day 20 |
Satellite OFFLINE |
C8 | Day 9, Day 20 |
Long list in error-reports list |
C9 | Day 9 |
The storage pool 'null' … |
C10 | Day 4, Day 5 |
PVC Pending,
Not enough available nodes |
C11 | Day 12, Day 20 |
Pod Pending,
did not have enough free storage |
C12 | Day 8 |
No space left on device in the pod |
C13 | Day 12 |
Cannot grow the volume definition |
C14 | Day 12 |
PVC larger, df shows the old size |
C15 | Day 12, Day 20 |
PVC Pending without a pod |
C16 | Day 8 |
FailedAttachVolume … already used by pod(s) |
C17 | Day 8, Day 10 |
no topology key found for node |
C18 | Day 7, Day 20 |
linstor: Connection refused |
C19 | Day 6, Day 20 |
evict: no other node took over |
C20 | Day 6 |
Test setup
The DRBD failure patterns were created on a dedicated test resource
fk-drbd with two replicas on k0s-w1 and
k0s-w3, so demo stays untouched. A writer like
the one in Day 11 runs on k0s-w1. If you want to reproduce
them, create it like this (the first attempt without
--storage-pool is entry C10):
# on k0s-ctrl
mkdir -p ~/k0s-lab/anhang-c && cd ~/k0s-lab/anhang-c
linstor resource-definition create fk-drbd --resource-group rg-k8s
linstor volume-definition create fk-drbd 500M
linstor resource create k0s-w1 k0s-w3 fk-drbd --storage-pool pool_dataExpected (abridged):
INFO:
Tie breaker resource 'fk-drbd' created on k0s-w2
# on k0s-w1
sudo mkfs.ext4 -q /dev/drbd/by-res/fk-drbd/0
sudo mkdir -p /mnt/fk
sudo mount /dev/drbd/by-res/fk-drbd/0 /mnt/fk
sudo systemd-run --unit=fk-schreiber bash -c 'while true; do
date +%T >> /mnt/fk/log; sync /mnt/fk/log; sleep 1; done'
sudo drbdadm status fk-drbdExpected:
Running as unit: fk-schreiber.service; invocation ID: 73e6297dbd9e480ba79c8985abd96525
fk-drbd role:Primary
disk:UpToDate open:yes
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
k0s-w3 role:Secondary
peer-disk:UpToDate
The tiebreaker lands on k0s-w2 here, not on the witness
(Day 5, Drill 7).
The Kubernetes failure patterns run in the namespace
fehler. For C11 there is a StorageClass with three replicas
plus a PVC and a pod:
# on k0s-ctrl
kubectl create namespace fehler
cat > drei-kopien.yaml <<'EOF'
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata: {name: fk-drei}
provisioner: linstor.csi.linbit.com
volumeBindingMode: WaitForFirstConsumer
parameters:
linstor.csi.linbit.com/storagePool: pool_data
linstor.csi.linbit.com/placementCount: "3"
linstor.csi.linbit.com/replicasOnDifferent: Aux/zone
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata: {name: drei, namespace: fehler}
spec:
storageClassName: fk-drei
accessModes: [ReadWriteOnce]
resources: {requests: {storage: 100Mi}}
---
apiVersion: v1
kind: Pod
metadata: {name: drei, namespace: fehler}
spec:
containers:
- {name: shell, image: busybox:1.37, command: [sleep, infinity],
volumeMounts: [{name: daten, mountPath: /daten}]}
volumes:
- {name: daten, persistentVolumeClaim: {claimName: drei}}
EOF
kubectl apply -f drei-kopien.yamlThe StorageClass deliberately names no resourceGroup, so
the experiment does not touch rg-k8s. For C12,
tippfehler.yaml is the same file with StorageClass
fk-pool, PVC and pod pool,
placementCount: "2" and a typo in the pool:
parameters:
linstor.csi.linbit.com/storagePool: pool-data
linstor.csi.linbit.com/placementCount: "2"
linstor.csi.linbit.com/replicasOnDifferent: Aux/zoneThe “Cleanup” section at the end shows how everything disappears again.
DRBD states
C1: Peer stays Connecting
Symptom: The Primary no longer sees a replica; it
stays at Connecting.
# on k0s-w1
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Primary
disk:UpToDate open:yes
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
k0s-w3 connection:Connecting
Check: Which port belongs to the resource, and can you reach it? LINSTOR assigns one port per resource, the same on all nodes.
# on k0s-w1
sudo grep address /var/lib/linstor.d/fk-drbd.res
nc -zv -w 3 10.10.0.13 7004Expected:
host "k0s-w1" address ipv4 10.10.0.11:7004;
host "k0s-w2" address ipv4 10.10.0.12:7004;
host "k0s-w1" address ipv4 10.10.0.11:7004;
host "k0s-w3" address ipv4 10.10.0.13:7004;
nc: connect to 10.10.0.13 port 7004 (tcp) timed out: Operation now in progress
timed out means: packets are being dropped. Look for
rules on the other side:
# on k0s-w3
sudo iptables -S | grep 7004Expected:
-A INPUT -p tcp -m multiport --ports 7004 -j DROP
-A OUTPUT -p tcp -m multiport --ports 7004 -j DROP
Cause: A firewall rule (here a leftover from a test) drops the DRBD traffic of this resource.
Fix:
# on k0s-w3
sudo iptables -D INPUT -p tcp -m multiport --ports 7004 -j DROP
sudo iptables -D OUTPUT -p tcp -m multiport --ports 7004 -j DROP# on k0s-w1
nc -zv -w 3 10.10.0.13 7004
sudo drbdadm status fk-drbdExpected:
nc: connect to 10.10.0.13 port 7004 (tcp) failed: Connection refused
fk-drbd role:Primary
disk:UpToDate open:yes
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
k0s-w3 role:Secondary
peer-disk:UpToDate
Connection refused is a good sign here: the host
answers, and DRBD no longer listens because the connection is already
established.
More in: Day 11, Drill 4 (blocking ports in both directions); Day 20, Challenge.
C2: A replica is Outdated
Symptom: A replica reports
disk:Outdated; LINSTOR shows Outdated in the
State column.
# on k0s-w3
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Secondary
disk:Outdated open:no
k0s-w1 connection:Connecting
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
Check: What does the Primary know about this replica?
# on k0s-w1
sudo drbdsetup status --verbose --statistics fk-drbd | grep -E 'k0s-w3|out-of-sync'Expected:
received:0 sent:0 out-of-sync:0 pending:0 unacked:0
k0s-w3 node-id:1 connection:Connecting role:Unknown tls:no congested:no
received:0 sent:0 out-of-sync:307488 pending:0 unacked:0
The first line belongs to the tiebreaker. For k0s-w3,
the Primary keeps track of a good 300 MB that are missing there – that
is how much k0s-w1 wrote during the disconnect.
Cause: k0s-w3 cannot reach the Primary,
but it can reach the tiebreaker. Through it, it learns that writes
continue and marks its own replica as out of date. An
Outdated replica never becomes Primary. Here a rule blocked
only the path k0s-w1 ↔︎ k0s-w3
(-s 10.10.0.11 and -d 10.10.0.11, port
7004).
Fix: Repair the path to the Primary as in C1. DRBD catches up the missing blocks on its own (C3) and then reports:
# on k0s-w3
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Secondary
disk:UpToDate open:no
k0s-w1 role:Primary
peer-disk:UpToDate
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
More in: Day 11, Drills 2 and 3.
C3: A replica is Inconsistent, the resync is running
Symptom: Right after a return, a replica reports
Inconsistent.
# on k0s-ctrl
linstor --no-utf8 --no-color resource list -r fk-drbdExpected (abridged):
| ResourceName | Node | Layers | Usage | Conns | State | Vote |
| fk-drbd | k0s-w1 | DRBD,STORAGE | InUse | Ok | UpToDate | Yes |
| fk-drbd | k0s-w2 | DRBD,STORAGE | Unused | Ok | Diskless | Yes |
| fk-drbd | k0s-w3 | DRBD,STORAGE | Unused | Ok | Inconsistent | Yes |
Check: Is the resync running, and how far along is it?
# on k0s-w3
sudo drbdadm status fk-drbd
sudo drbdsetup status --verbose --statistics fk-drbd | grep -E 'k0s-w1|out-of-sync'Expected:
fk-drbd role:Secondary
disk:Inconsistent open:no
k0s-w1 role:Primary
replication:SyncTarget peer-disk:UpToDate done:9.46
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes resync-suspended:dependency
k0s-w1 node-id:0 connection:Connected role:Primary tls:no congested:no
received:197436 sent:0 out-of-sync:233068 pending:2048 unacked:0 dbdt1:92.77
received:0 sent:0 out-of-sync:0 pending:0 unacked:0
done: is the progress in percent,
out-of-sync the remainder in KiB, dbdt1 the
current resync rate. resync-suspended:dependency at the
tiebreaker is normal: it has no disk and waits until the replica is
finished.
Cause: Not an error, but the healing after C1 or C2: DRBD transfers only the blocks that changed during the disconnect.
Fix: Wait. How long it took is in the kernel log:
# on k0s-w3
sudo journalctl -k --since -1min | grep -E 'Began resync|Resync done' | cut -c1-88Expected (abridged):
Nov 24 17:39:10 k0s-w3 kernel: drbd fk-drbd/0 drbd1004 k0s-w1: Began resync as SyncTarg
Nov 24 17:39:15 k0s-w3 kernel: drbd fk-drbd/0 drbd1004 k0s-w1: Resync done (total 4 sec
420 MB in 4 seconds. If, on the other hand, done: stands
still for minutes although connection:Connected holds, the
resync is hanging. That happened once in the lab but could not be
reproduced on purpose – hence no recipe here. In that case, first save
drbdsetup status --verbose --statistics from both
sides.
More in: Day 9, Drill 2 (state table); Day 10, Drill 4.
C4: Primary with suspended:quorum – writes hang
Symptom: The application no longer writes, without an error message. Lines are missing in the writer’s log.
# on k0s-w1
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Primary suspended:quorum
disk:UpToDate quorum:no open:yes blocked:upper
k0s-w2 connection:Connecting
k0s-w3 connection:Connecting
Check: Since when has the quorum been missing, and what does the other side see?
# on k0s-w1
sudo journalctl -k --since -1min | grep -E 'susp-io|quorum\(' | cut -c1-88Expected:
Nov 24 17:39:37 k0s-w1 kernel: drbd fk-drbd: susp-io( no -> quorum )
Nov 24 17:39:37 k0s-w1 kernel: drbd fk-drbd/0 drbd1004: quorum( yes -> no )
# on k0s-w3
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Secondary
disk:UpToDate open:no
k0s-w1 connection:Connecting
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
Cause: The Primary sees only itself, one of three
votes. on-no-quorum suspend-io halts all writes instead of
risking stale data. k0s-w3 would have the majority together
with the tiebreaker, but does not use the volume. Here all packets on
port 7004 were blocked on k0s-w1.
Fix: Repair the Primary’s network. If it comes back before the other side has taken over, it simply keeps writing:
# on k0s-w1
sudo iptables -D INPUT -p tcp -m multiport --ports 7004 -j DROP
sudo iptables -D OUTPUT -p tcp -m multiport --ports 7004 -j DROP
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Primary
disk:UpToDate open:yes
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
k0s-w3 role:Secondary
peer-disk:UpToDate
The gap in the writer’s log (awk one-liner from Day 11,
Drill 2) showed Lücke 17:39:29 -> 17:40:16: exactly the
duration of the block, no data loss. If the other side has taken over in
the meantime, DRBD demotes the old Primary
(force-io-failures:yes); then stop the application there
and unmount (Day 11, Drill 5).
Tip: A cut-off Secondary also shows
suspended:quorumandblocked:upper. It is only critical on the Primary – that is where an application hangs.
More in: Day 11, Drills 4 and 5; Day 10, Drill 5 (whole node gone).
C5: StandAlone on one side
Symptom: One node no longer even tries; the Primary
waits with Connecting.
# on k0s-w3
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Secondary suspended:quorum
disk:Outdated quorum:no open:no blocked:upper
k0s-w1 connection:StandAlone
k0s-w2 connection:StandAlone
Without connections, k0s-w3 has no quorum and marks
itself Outdated – harmless on a Secondary.
Check: Is it a split brain (C6) or a manual action? A split brain would show up in the kernel log; here the dry run shows that only the connections are missing:
# on k0s-w3
sudo drbdadm -d adjust fk-drbdExpected:
drbdsetup connect fk-drbd 0
drbdsetup connect fk-drbd 2
Cause: Someone ran
drbdadm disconnect fk-drbd on k0s-w3, for
example during maintenance, and forgot the connect. LINSTOR
shows StandAlone(k0s-w2,k0s-w1) but does not repair it on
its own.
Fix:
# on k0s-w3
sudo drbdadm adjust fk-drbd
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Secondary
disk:UpToDate open:no
k0s-w1 role:Primary
peer-disk:UpToDate
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
More in: Day 9, Drill 6 (DRBD without LINSTOR).
C6: StandAlone on both sides – split brain
Symptom: Two replicas with UpToDate,
both StandAlone. Reproduced as in Day 20, Round 5: resource
fk-sb (200M) on k0s-w1 and
k0s-w3, quorum off, both sides disconnected, on each one a
line seite <host> appended to
/mnt/sb/datei.
# on k0s-ctrl
linstor --no-utf8 --no-color resource list -r fk-sbExpected (abridged):
| ResourceName | Node | Layers | Usage | Conns | State | Vote |
| fk-sb | k0s-w1 | DRBD,STORAGE | Unused | StandAlone(k0s-w3) | UpToDate | Yes |
| fk-sb | k0s-w3 | DRBD,STORAGE | Unused | StandAlone(k0s-w1) | UpToDate | Yes |
Check:
# on k0s-w1
sudo journalctl -k --since -1min | grep 'Split-Brain detected' | cut -c1-88Expected:
Nov 24 17:45:56 k0s-w1 kernel: drbd fk-sb/0 drbd1005 k0s-w3: Split-Brain detected but u
Then look on both sides, read-only (mount -o ro, Day 11,
Drill 7). In the lab: k0s-w1: seite k0s-w1,
k0s-w3: seite k0s-w3.
Cause: Without quorum, both sides were written to separately. DRBD cannot decide which changes count.
Fix: Pick the winner (here k0s-w1),
discard on the loser:
Warning:
--discard-my-datairrevocably discards all changes this node made since the disconnect. It belongs on the loser – read the host name in the prompt.
# on k0s-w3
sudo drbdadm disconnect fk-sb
sudo drbdadm secondary fk-sb
sudo drbdadm connect --discard-my-data fk-sb# on k0s-w1
sudo drbdadm connect fk-sb# on k0s-w3
sudo drbdadm status fk-sbExpected:
fk-sb role:Secondary
disk:UpToDate open:no
k0s-w1 role:Secondary
peer-disk:UpToDate
Afterwards, the file on k0s-w3 contains
basis and seite k0s-w1.
More in: Day 11, Drills 6 and 7; Day 20, Round 5.
LINSTOR: nodes, satellites, reports
C7: LINSTOR reports Unknown, DRBD does not know the resource
Symptom:
# on k0s-ctrl
linstor --no-utf8 --no-color resource list -r fk-drbdExpected (abridged):
| ResourceName | Node | Layers | Usage | Conns | State | Vote |
| fk-drbd | k0s-w1 | DRBD,STORAGE | InUse | Connecting(k0s-w3) | UpToDate | Yes |
| fk-drbd | k0s-w2 | DRBD,STORAGE | Unused | Connecting(k0s-w3) | Diskless | Yes |
| fk-drbd | k0s-w3 | DRBD,STORAGE | | | Unknown | Yes |
Check: What does DRBD say on the node with
Unknown?
# on k0s-w3
sudo drbdadm status fk-drbdExpected:
fk-drbd: No such resource
Command 'drbdsetup status fk-drbd' terminated with exit code 10
Cause: The resource was taken down on
k0s-w3 with drbdadm down. The disk is still
there, only the kernel no longer knows the resource. LINSTOR waits for
the next change and does not repair it on its own.
Fix:
# on k0s-w3
sudo drbdadm adjust fk-drbd
sudo drbdadm status fk-drbdExpected:
fk-drbd role:Secondary
disk:UpToDate open:no
k0s-w1 role:Primary
peer-disk:UpToDate
k0s-w2 role:Secondary
peer-disk:Diskless peer-client:yes
More in: Day 9, Drill 6; Day 20, Round 2.
C8: Satellite OFFLINE
Symptom:
# on k0s-ctrl
linstor --no-utf8 --no-color node listExpected (abridged):
| Node | Platform | NodeType | Addresses | State |
| k0s-ctrl | LINUX | SATELLITE | 172.16.0.176:3366 (PLAIN) | Online |
| k0s-w1 | LINUX | SATELLITE | 10.10.0.11:3366 (PLAIN) | Online |
| k0s-w2 | LINUX | SATELLITE | 10.10.0.12:3366 (PLAIN) | Online |
| k0s-w3 | | SATELLITE | 10.10.0.13:3366 (PLAIN) | OFFLINE |
The resources there show Unknown; DRBD keeps replicating
(Day 9, Challenge).
Check: Is the service running? If so: does the
controller reach port 3366? The second command runs on the node with the
controller (Day 10, Drill 1), here k0s-w2.
# on k0s-w3
systemctl is-active linstor-satelliteExpected (case A, service stopped):
inactive
# on k0s-w2
nc -zv -w 3 10.10.0.13 3366
nc -zv -w 3 10.10.0.11 3366Expected (case B, service active, port
blocked):
nc: connect to 10.10.0.13 port 3366 (tcp) timed out: Operation now in progress
Connection to 10.10.0.11 3366 port [tcp/*] succeeded!
In case B, the controller writes
Establishing connection to node 'k0s-w3' to the
linstor-controller journal every ten seconds.
Cause: Case A: satellite stopped or crashed. Case B:
firewall on the satellite port 3366 (here --dport 3366 in
INPUT and --sport 3366 in OUTPUT
on k0s-w3). In both cases LINSTOR cannot create anything on
the node – PVCs that need a replica there stay Pending (Day
20, Round 1).
Fix: Case A:
sudo systemctl start linstor-satellite on
k0s-w3. Case B: remove the two rules with
iptables -D. Then:
# on k0s-ctrl
linstor --no-utf8 --no-color node list | grep k0s-w3Expected:
| k0s-w3 | LINUX | SATELLITE | 10.10.0.13:3366 (PLAIN) | Online |
In the lab this took 33 seconds in case A (Java start) and 4 seconds in case B.
More in: Day 9, Challenge; Day 20, Round 1.
C9: Many error reports
Symptom: The list of error reports keeps growing, often several per second.
# on k0s-ctrl
linstor --no-utf8 --no-color error-reports list --since 1h | cut -c1-88Expected (abridged):
| Id | Datetime | Node | Exception
|=======================================================================================
| 6B00234F-00000-000000 | 2026-11-24 17:35:14 | C|k0s-w2 | LinStorException: Dependency
| 6B05CE4B-00000-000000 | 2026-11-24 18:00:52 | C|k0s-w2 | ApiRcException: Cannot grow t
| 6B05CE4B-00000-000001 | 2026-11-24 18:00:52 | C|k0s-w2 | ApiRcException: Cannot grow t
...
| 6B05CE4B-00000-000008 | 2026-11-24 18:01:10 | C|k0s-w2 | ApiRcException: Cannot grow t
Check: Who triggered the report, and what was the message?
# on k0s-ctrl
linstor error-reports show 6B05CE4B-00000-000000 \
| grep -E '^Peer|^Error message' -A1 | head -5 | cut -c1-88Expected:
Peer: RestClient(10.10.0.13; 'linstor-csi/v1.13.2')
Cluster-ID: b58367c4-99dd-452b-a049-511887adeb5e
--
Error message: Cannot grow the volume definition by 2097152KiB, as
Node: k0s-w1, StorPool: pool_nvme
Cause: Not an error of its own: every rejected
request creates a report. C| means controller,
S| satellite. The CSI driver retries a failed expansion
(C14), so nine reports arrive within 20 seconds. The cause is in the
message, not in the quantity.
Fix: First fix the cause (here C14), then delete the reports you have understood:
# on k0s-ctrl
linstor error-reports delete --since 1hExpected:
SUCCESS:
Deleted 10 error-report(s)
--since, --to, --nodes and
--exception narrow down what gets deleted. Older reports
you have not understood yet stay where they are.
More in: Day 9, Drill 7.
Placement and capacity
C10: The storage pool ‘null’
Symptom: Creating a resource by hand on two nodes fails, although the resource group knows a pool.
# on k0s-ctrl
linstor resource create k0s-w1 k0s-w3 fk-drbdExpected (abridged):
ERROR:
Description:
The storage pool 'null' for resource 'fk-drbd' for volume number '0' is not ...
Cause:
Dependency not found
Details:
The resource which should be deployed had at least one volume definition ...
...
Show reports:
linstor error-reports show 6B00234F-00000-000000
The details name where LINSTOR looked for the pool: in the properties of the resource, volume definition, resource definition and node, and finally in the controller’s default.
Check: Does the pool exist on the nodes?
# on k0s-ctrl
linstor --no-utf8 --no-color storage-pool list -s pool_data | cut -c1-59Expected (abridged):
| StoragePool | Node | Driver | PoolName | FreeCapacity |
| pool_data | k0s-w1 | LVM | data | 24.79 GiB |
| pool_data | k0s-w2 | LVM | data | 17.79 GiB |
| pool_data | k0s-w3 | LVM | data | 22.79 GiB |
Cause: The pool is there; LINSTOR just does not pick
it. With node names instead of --auto-place, the
StoragePool(s) selection of the resource group does not
apply; the search order above finds no pool.
Fix: Specify the pool – or use
--auto-place 2, then the group applies.
# on k0s-ctrl
linstor resource create k0s-w1 k0s-w3 fk-drbd --storage-pool pool_dataExpected (abridged):
INFO:
Tie breaker resource 'fk-drbd' created on k0s-w2
...
New resource 'fk-drbd' on node 'k0s-w1' registered.
Created by hand, the writecache is missing as well: you only get the
group’s layer stack with -l drbd,writecache,storage.
More in: Day 4, Drill 6; Day 5, Drill 7.
C11: PVC Pending – Not enough available nodes
Symptom: A PVC from a new StorageClass
fk-drei (three replicas) stays Pending.
# on k0s-ctrl
kubectl -n fehler get events \
--field-selector involvedObject.name=drei,reason=ProvisioningFailed \
-o jsonpath='{.items[-1:].message}'Expected (abridged):
rpc error: code = Internal desc = CreateVolume failed for pvc-3e8dc583-...: rpc error:
...
* has a deployed storage pool named [pool_data]
* the storage pools have to have at least '102400' free space
...
Replica count: 3
...
Replicas on nodes with different property:
Aux/zone
The first line continues with
failed to enough replicas on requisite nodes and
Not enough available nodes.
Check: The message lists all criteria, but not the
one that failed. Count the replicas (Replica count: 3)
against the zones:
# on k0s-ctrl
kubectl get nodes -L topology.kubernetes.io/zoneExpected:
NAME STATUS ROLES AGE VERSION ZONE
k0s-w1 Ready <none> 4d17h v1.37.2+k0s a
k0s-w2 Ready <none> 4d17h v1.37.2+k0s b
k0s-w3 Ready <none> 4d17h v1.37.2+k0s a
Cause: Three replicas on nodes with different zones
– there are only two zones. The same picture appears when a zone has no
space left (Day 12, Drill 6) or its only satellite is
OFFLINE (C8).
Fix: The parameters of a StorageClass are immutable.
Delete the StorageClass and create it again with
placementCount: "2"; the waiting PVC is created on the next
attempt.
# on k0s-ctrl
sed -i 's/placementCount: "3"/placementCount: "2"/' drei-kopien.yaml
kubectl delete sc fk-drei
kubectl apply -f drei-kopien.yaml
kubectl -n fehler wait --for=condition=Ready pod/drei --timeout=120sExpected (abridged):
storageclass.storage.k8s.io "fk-drei" deleted
storageclass.storage.k8s.io/fk-drei created
...
pod/drei condition met
More in: Day 12, Drill 6; Day 20, Round 1.
C12: Pod Pending – did not have enough free storage
Symptom: The pod stays Pending, the PVC
waits for it. There is plenty of space.
# on k0s-ctrl
kubectl -n fehler describe pod pool | grep FailedScheduling | tail -1 | cut -c1-88Expected:
Warning FailedScheduling 32s (x2 over 32s) default-scheduler 0/3 nodes are availab
The message continues with
3 node(s) did not have enough free storage.
Check: The scheduler reads the capacity the CSI driver reports per StorageClass:
# on k0s-ctrl
kubectl get csistoragecapacities -A -o custom-columns=\
SC:.storageClassName,CAP:.capacity,NODE:.nodeTopology.matchLabels | sort
kubectl get sc fk-pool \
-o jsonpath='{.parameters.linstor\.csi\.linbit\.com/storagePool}{"\n"}'Expected (abridged):
SC CAP NODE
...
fk-pool 0 map[linbit.com/hostname:k0s-w1]
fk-pool 0 map[linbit.com/hostname:k0s-w2]
fk-pool 0 map[linbit.com/hostname:k0s-w3]
linstor-replicated 65928Mi map[linbit.com/hostname:k0s-w1]
...
pool-data
Cause: A typo in the StorageClass:
pool-data instead of pool_data. For a pool
that does not exist, the driver reports capacity 0, and the
scheduler finds no node. The error message never mentions the pool.
Fix: Create the StorageClass again with the correct pool (as in C11):
# on k0s-ctrl
sed -i 's/pool-data/pool_data/' tippfehler.yaml
kubectl delete sc fk-pool
kubectl apply -f tippfehler.yaml
kubectl -n fehler wait --for=condition=Ready pod/pool --timeout=180sExpected (abridged):
storageclass.storage.k8s.io "fk-pool" deleted
storageclass.storage.k8s.io/fk-pool created
...
pod/pool condition met
More in: Day 8, Drill 2 (the right StorageClass).
C13: No space left on device
Symptom: The application can no longer write.
Reproduced with fueller.yaml as in Day 12, Drill 1 (PVC
klein, 1Gi, from linstor-replicated), here in
the namespace fehler; the pod ran on k0s-w2
and was filled up with dd:
# on k0s-ctrl
kubectl -n fehler exec fueller -- sh -c 'echo test > /daten/neu'Expected:
sh: write error: No space left on device
command terminated with exit code 1
Check: Is the file system full or is the storage broken?
# on k0s-ctrl
kubectl -n fehler exec fueller -- df -h /daten
K=$(kubectl -n fehler get pvc klein -o jsonpath='{.spec.volumeName}')
ssh k0s-w2 "sudo drbdadm status $K | head -2"Expected:
Filesystem Size Used Available Use% Mounted on
/dev/drbd1008 977.1M 961.1M 0 100% /daten
pvc-991d6951-bf1e-4d65-a11e-eff4c223fee6 role:Primary
disk:UpToDate open:yes
Cause: The file system is full, DRBD underneath is healthy. Not a storage error.
Fix: Clean up data or expand the PVC – and watch out for C14 and C15 while doing so.
More in: Day 12, Drill 2.
C14: Expansion fails – Cannot grow the volume definition
Symptom: After kubectl patch to 3Gi,
the PVC stays at 1Gi.
# on k0s-ctrl
kubectl -n fehler get events \
--field-selector involvedObject.name=klein,reason=VolumeResizeFailed \
-o jsonpath='{.items[-1:].message}' | fold -w 80Expected (abridged):
...
expand volume failed for pvc-991d6951-bf1e-4d65-a11e-eff4c223fee6: Message: 'Can
not grow the volume definition by 2097152KiB, as the following storage pool do n
ot have enough free space:
Node: k0s-w1, StorPool: pool_nvme
Node: k0s-w2, StorPool: pool_nvme'; ...
Check:
# on k0s-ctrl
linstor --no-utf8 --no-color storage-pool list -s pool_nvme | cut -c1-59Expected (abridged):
| StoragePool | Node | Driver | PoolName | FreeCapacity |
| pool_nvme | k0s-w1 | LVM | cache | 1.69 GiB |
| pool_nvme | k0s-w2 | LVM | cache | 1.33 GiB |
| pool_nvme | k0s-w3 | LVM | cache | 1.63 GiB |
Cause: LINSTOR checks the full increase (2 GiB) against every pool of the volume, including the cache pool, although the writecache would only need 5 % of it.
Fix: Expand by less than the cache pool has free. Since Kubernetes 1.34 you may take back the failed request as long as the value stays above the old size:
# on k0s-ctrl
kubectl -n fehler patch pvc klein \
-p '{"spec":{"resources":{"requests":{"storage":"2Gi"}}}}'After a good minute the PVC reports 2Gi – and you end up
in C15.
More in: Day 12, Drill 3.
C15: PVC larger, df shows the old size
Symptom: Kubernetes reports success, the file system does not.
# on k0s-ctrl
kubectl -n fehler get events --field-selector involvedObject.name=klein \
--sort-by=.lastTimestamp -o custom-columns=GRUND:.reason | tail -3
kubectl -n fehler exec fueller -- df -h /datenExpected:
Resizing
FileSystemResizeRequired
FileSystemResizeSuccessful
Filesystem Size Used Available Use% Mounted on
/dev/drbd1008 977.1M 961.1M 0 100% /daten
Check: Read the device stack from bottom to top, on the node with the pod:
# on k0s-ctrl
ssh k0s-w2 "sudo lvs --noheadings -o lv_name,lv_size data cache | grep ${K:0:12}"
ssh k0s-w2 "sudo dmsetup table | grep ${K:0:12}" | cut -c1-88
ssh k0s-w2 'sudo blockdev --getsize64 /dev/drbd1008'Expected:
pvc-991d6951-bf1e-4d65-a11e-eff4c223fee6.cache_00000 104.00m
pvc-991d6951-bf1e-4d65-a11e-eff4c223fee6_00000 2.00g
linstor_writecache_pvc-991d6951-bf1e-4d65-a11e-eff4c223fee6_00000: 0 2105344 writecache
1077665792
Cause: The LVs have grown, the writecache device has not (2,105,344 sectors = 1 GiB). DRBD and ext4 on top therefore stay small. No error report, no event.
Fix: On every node with a data replica (here
k0s-w2 and k0s-w1), load the writecache table
with the new length, then expand DRBD and ext4 on the Primary. The full
commands with awk and the check are in Day 12, Drill 5. In
the lab:
0 2105344 writecache s 252:15 252:16 4096 0
0 4202496 writecache s 252:15 252:16 4096 0
That is dmsetup table before and
/tmp/neu.table after on k0s-w2 (on
k0s-w1 the device numbers are 252:6 252:7).
After suspend/reload/resume on
both nodes plus drbdadm resize and resize2fs
on k0s-w2:
# on k0s-ctrl
kubectl -n fehler exec fueller -- df -h /datenExpected:
Filesystem Size Used Available Use% Mounted on
/dev/drbd1008 1.9G 961.1M 921.6M 51% /daten
More in: Day 12, Drills 4 and 5; Day 20, Round 6.
Kubernetes and CSI
C16: PVC Pending without a pod
Symptom: A freshly created PVC allein
(100Mi from linstor-replicated, no pod yet) stays
Pending; there is no volume in LINSTOR.
# on k0s-ctrl
kubectl -n fehler get events --field-selector involvedObject.name=allein \
-o custom-columns=GRUND:.reason,MELDUNG:.messageExpected:
GRUND MELDUNG
WaitForFirstConsumer waiting for first consumer to be created before binding
Check:
# on k0s-ctrl
kubectl get sc linstor-replicated -o jsonpath='{.volumeBindingMode}{"\n"}'Expected:
WaitForFirstConsumer
Cause: Not an error. With
WaitForFirstConsumer, the driver only creates the volume
once a pod uses the PVC and has a node. That way a replica lands where
the pod runs.
Fix: Start a pod that uses the PVC. If the PVC then
still stays Pending, continue with C11, C12 or C18.
More in: Day 8, Briefing and Drill 2.
C17: FailedAttachVolume – already used by pod(s)
Symptom: A second pod zweiter with the
PVC drei from C11 (ReadWriteOnce) and a
nodeSelector for k0s-w3 hangs in
ContainerCreating. drei runs on
k0s-w2.
# on k0s-ctrl
kubectl -n fehler get events --field-selector involvedObject.name=zweiter \
-o custom-columns=GRUND:.reason,MELDUNG:.message | cut -c1-88Expected:
GRUND MELDUNG
Scheduled Successfully assigned fehler/zweiter to k0s-w3
FailedAttachVolume Waiting for detach for volume "pvc-3e8dc583-0cfa-446d-88ba-555ebee5
The message ends with
Volume is already used by pod(s) drei.
Check: Where is the volume attached?
# on k0s-ctrl
kubectl get volumeattachments -o custom-columns=\
PV:.spec.source.persistentVolumeName,NODE:.spec.nodeName,ATTACHED:.status.attachedExpected (abridged):
PV NODE ATTACHED
pvc-3e8dc583-0cfa-446d-88ba-555ebee52ab8 k0s-w2 true
Cause: ReadWriteOnce allows the volume
on one node only, DRBD allows only one Primary. Typical culprits are a
debug pod, a job using a database’s PVC, or a Deployment with
RollingUpdate whose new pod starts on a different node.
Fix: Delete the surplus pod; for Deployments with an
RWO volume, set strategy: Recreate. After a node failure,
the taint from Day 10 is the way to go, not deleting the
VolumeAttachment.
# on k0s-ctrl
kubectl -n fehler delete pod zweiterExpected:
pod "zweiter" deleted from fehler namespace
More in: Day 8, Drill 6; Day 10, Drills 2 and 6.
C18: no topology key found for node
Symptom: A pod allein-w3 with a
nodeSelector for k0s-w3 uses the PVC
allein from C16. Pod and PVC stay Pending.
# on k0s-ctrl
kubectl -n fehler get events --field-selector involvedObject.name=allein \
-o custom-columns=GRUND:.reason,MELDUNG:.message | tail -2 | cut -c1-88Expected:
Provisioning External provisioner is provisioning volume for claim "fehler/a
ProvisioningFailed error generating accessibility requirements: no topology key fo
The last message ends with found for node k0s-w3.
Check:
# on k0s-ctrl
C='NODE:.metadata.name,DRIVERS:.spec.drivers[*].name'
kubectl get csinodes -o "custom-columns=$C"
linstor --no-utf8 --no-color node list-properties k0s-w3 | cut -c1-70Expected:
NODE DRIVERS
k0s-w1 linstor.csi.linbit.com
k0s-w2 linstor.csi.linbit.com
k0s-w3 <none>
+---------------------------+
| Key | Value |
|===========================|
| Aux/zone | a |
| CurStltConnName | default |
| NodeUname | k0s-w3 |
+---------------------------+
The pod linstor-csi-node-… on k0s-w3 is
always only seconds old.
Cause: No CSI driver is registered on
k0s-w3, so Kubernetes knows no topology there. Here
Aux/topology/linbit.com/hostname is missing on the LINSTOR
node, and the operator deletes the driver pod again and again. A
forgotten out-of-service taint leaves the same picture (Day 20, Round
4). Pods with volumes already running on the node are not affected.
Fix:
# on k0s-ctrl
linstor node set-property k0s-w3 Aux/topology/linbit.com/hostname k0s-w3
kubectl -n fehler wait --for=condition=Ready pod/allein-w3 --timeout=240s
kubectl -n fehler get pvc allein | cut -c1-70Expected (abridged):
pod/allein-w3 condition met
NAME STATUS VOLUME CAPACITY
allein Bound pvc-18e9a15b-1f1a-403d-94e3-b9a732b4c207 100Mi
In the lab the driver was registered after 4 seconds and the pod was
Ready after just under 80 seconds – the provisioner waits
longer after each failure.
More in: Day 7, Drill 5; Day 20, Rounds 3 and 4.
Controller HA
C19: linstor – Connection refused
Symptom: Every linstor command fails,
the applications keep running.
# on k0s-ctrl
linstor node list 2>&1 | tail -1
kubectl -n demo logs deploy/pg-client --tail=1Expected:
Error: Unable to connect to linstor://172.16.0.72: [Errno 111] Connection refused
17:49:37 ok
The client tries all addresses from controllers= in
/etc/linstor/linstor-client.conf and reports the last
attempt.
Check:
# on k0s-ctrl
for h in k0s-w1 k0s-w2 k0s-w3; do echo "$h: $(ssh $h systemctl is-active \
drbd-reactor linstor-controller | xargs) $(ssh $h sudo drbdadm status linstor_db \
| head -1)"; doneExpected:
k0s-w1: inactive inactive linstor_db role:Secondary
k0s-w2: inactive inactive linstor_db role:Secondary
k0s-w3: inactive inactive linstor_db role:Secondary
Cause: drbd-reactor is not running on any candidate,
so nobody promotes linstor_db and starts the controller.
Stopping drbd-reactor on the active node shuts down the whole chain
there as well (Day 6).
Fix: Start drbd-reactor. Whoever starts first takes over – this is also how you decide where the controller lands:
# on k0s-ctrl
ssh k0s-w2 'sudo systemctl start drbd-reactor'
date +%T; until linstor node list >/dev/null 2>&1; do sleep 1; done; date +%T
for h in k0s-w1 k0s-w3; do ssh $h 'sudo systemctl start drbd-reactor'; doneExpected:
17:49:58
17:50:17
19 seconds until the API is back. Afterwards,
drbd-reactorctl status linstor_db shows
currently active on node 'k0s-w2' or
on this node on all three candidates.
More in: Day 6, Drill 5; Day 20, Round 7.
C20: evict – no other node took over
Symptom: Before maintenance, the controller is supposed to move away, but it comes back.
# on k0s-w2
sudo drbd-reactorctl evict linstor_dbExpected:
/etc/drbd-reactor.d/linstor_db.toml:
Evicting linstor_db
Created symlink /run/systemd/system/drbd-services@linstor_db.target → /dev/null.
20..19..18..17..16..15..14..13..12..11..10..9..8..7..6..5..4..3..2..1..0
Unfortunately no other node took over, resource in unknown state
Re-enabling linstor_db
Removed /run/systemd/system/drbd-services@linstor_db.target.
The command ran for 45 seconds. Afterwards the controller starts
again on k0s-w2.
Check: Are the other candidates allowed to start the chain at all?
# on k0s-ctrl
for h in k0s-w1 k0s-w2 k0s-w3; do
echo "$h: $(ssh $h systemctl is-enabled drbd-services@linstor_db.target)"; doneExpected:
k0s-w1: masked-runtime
k0s-w2: static
k0s-w3: masked-runtime
Cause: On k0s-w1 and
k0s-w3 the chain is masked until the next reboot
(systemctl mask --runtime), for example as a leftover from
an attempt to pin the controller to one node. evict only
briefly masks its own node; if nobody else is allowed to take over,
drbd-reactor brings the chain back.
Fix:
# on k0s-w1
sudo systemctl unmask --runtime drbd-services@linstor_db.targetRepeat this on k0s-w3. Then evict
works:
# on k0s-w2
sudo drbd-reactorctl evict linstor_dbExpected:
/etc/drbd-reactor.d/linstor_db.toml:
Evicting linstor_db
Created symlink /run/systemd/system/drbd-services@linstor_db.target → /dev/null.
20..19..
Node 'k0s-w3' took over
Re-enabling linstor_db
Removed /run/systemd/system/drbd-services@linstor_db.target.
More in: Day 6, Drill 6.
Cleanup
# on k0s-ctrl
kubectl delete namespace fehler
kubectl delete sc fk-drei fk-pool# on k0s-w1
sudo systemctl stop fk-schreiber
sudo umount /mnt/fk# on k0s-ctrl
linstor resource-definition delete fk-sb
linstor resource-definition delete fk-drbd
linstor --no-utf8 --no-color resource list --faulty | grep -c '| k0s'
kubectl -n demo logs deploy/pg-client --since=10m | grep -c FEHLERExpected (the last two lines):
0
0
If the controller ends up somewhere other than before, that is not an error – there is no “home node” (Day 6, Drill 7).