fix(storage): keep multipathd off Longhorn's iSCSI disks #292

Merged
ivuorinen merged 1 commit from fix/multipath-blacklist-longhorn into main 2026-11-18 18:59:43 +00:00
Owner

Ubuntu server runs multipathd on every node, and every Longhorn iSCSI
disk reports the same WWID (360000000000000000e00000000010001). With
find_multipaths on, two Longhorn disks attaching at once look like two
paths to one LUN: multipathd records the WWID in /etc/multipath/wwids
and from then on wraps every Longhorn disk that attaches to that node
in a dm map. The volume never mounts: fsck reports the device "is in
use" and mount reports "already mounted or mount point busy".

t2 recorded the WWID on 2026-11-08 at 00:00:05, when backup-daily runs.
The weekly ACME CronJob attached acme-state there three hours later and
retried the mount 7483 times over ten days. concurrencyPolicy: Forbid
held back every later run, while the wildcard certificate came due for
renewal on 2026-11-19 and expires on 2026-12-19. Volumes already
mounted on t2 kept working, so only the hung Job alerted.

06-prepare-storage-nodes.sh now writes the blacklist from Longhorn's
knowledge base, devnode "^sd[a-z0-9]+", as a drop-in at
/etc/multipath/conf.d/longhorn.conf, leaving the stock
/etc/multipath.conf as the image ships it, and reloads multipathd when
it runs. The rule also covers t3's two local SATA disks, neither of
which is multipathed.

Applied to all four nodes by running the script. multipath -t shows
the rule on each, and no node has a multipath map left: the reload
alone removed t2's, and the stuck mount succeeded on kubelet's next
retry. The ACME Job then completed and its alerts resolved.

Ubuntu server runs multipathd on every node, and every Longhorn iSCSI disk reports the same WWID (360000000000000000e00000000010001). With find_multipaths on, two Longhorn disks attaching at once look like two paths to one LUN: multipathd records the WWID in /etc/multipath/wwids and from then on wraps every Longhorn disk that attaches to that node in a dm map. The volume never mounts: fsck reports the device "is in use" and mount reports "already mounted or mount point busy". t2 recorded the WWID on 2026-11-08 at 00:00:05, when backup-daily runs. The weekly ACME CronJob attached acme-state there three hours later and retried the mount 7483 times over ten days. concurrencyPolicy: Forbid held back every later run, while the wildcard certificate came due for renewal on 2026-11-19 and expires on 2026-12-19. Volumes already mounted on t2 kept working, so only the hung Job alerted. 06-prepare-storage-nodes.sh now writes the blacklist from Longhorn's knowledge base, devnode "^sd[a-z0-9]+", as a drop-in at /etc/multipath/conf.d/longhorn.conf, leaving the stock /etc/multipath.conf as the image ships it, and reloads multipathd when it runs. The rule also covers t3's two local SATA disks, neither of which is multipathed. Applied to all four nodes by running the script. multipath -t shows the rule on each, and no node has a multipath map left: the reload alone removed t2's, and the stuck mount succeeded on kubelet's next retry. The ACME Job then completed and its alerts resolved.
fix(storage): keep multipathd off Longhorn's iSCSI disks
All checks were successful
validate / render (pull_request) Successful in 1m32s
validate / hooks (pull_request) Successful in 2m43s
f73749ac75
Ubuntu server runs multipathd on every node, and every Longhorn iSCSI
disk reports the same WWID (360000000000000000e00000000010001). With
find_multipaths on, two Longhorn disks attaching at once look like two
paths to one LUN: multipathd records the WWID in /etc/multipath/wwids
and from then on wraps every Longhorn disk that attaches to that node
in a dm map. The volume never mounts: fsck reports the device "is in
use" and mount reports "already mounted or mount point busy".

t2 recorded the WWID on 2026-11-08 at 00:00:05, when backup-daily runs.
The weekly ACME CronJob attached acme-state there three hours later and
retried the mount 7483 times over ten days. concurrencyPolicy: Forbid
held back every later run, while the wildcard certificate came due for
renewal on 2026-11-19 and expires on 2026-12-19. Volumes already
mounted on t2 kept working, so only the hung Job alerted.

06-prepare-storage-nodes.sh now writes the blacklist from Longhorn's
knowledge base, devnode "^sd[a-z0-9]+", as a drop-in at
/etc/multipath/conf.d/longhorn.conf, leaving the stock
/etc/multipath.conf as the image ships it, and reloads multipathd when
it runs. The rule also covers t3's two local SATA disks, neither of
which is multipathed.

Applied to all four nodes by running the script. multipath -t shows
the rule on each, and no node has a multipath map left: the reload
alone removed t2's, and the stuck mount succeeded on kubelet's next
retry. The ACME Job then completed and its alerts resolved.
ivuorinen deleted branch fix/multipath-blacklist-longhorn 2026-11-18 18:59:43 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ivuorinen/turingpi-cluster!292
No description provided.