fix(storage): keep multipathd off Longhorn's iSCSI disks #292
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/multipath-blacklist-longhorn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.