Pcornel
Storage · Multipathing

Device Mapper Multipath

Cheat sheet · https://pcornel.dk/topic.php?topic=4113

Back to the Topic

Answer

Linux discovers individual SCSI path devices, multipath identifies them by persistent identifiers such as WWID, groups paths according to target characteristics and creates one device-mapper map. Path checkers, prioritizers, grouping rules and selectors then govern which path group receives I/O.

Remember

  • /dev/sdX path names ≠ persistent multipath identity.
  • find_multipaths behavior ≠ proof that every desired LUN is claimed.
  • Multipath map present ≠ every component path is usable.
  • Editing multipath.conf ≠ active map changed until configuration is reloaded/applied and verified.

First checks

  • multipath -ll — device-mapper maps
  • multipathd show config | head — effective config
  • cat /etc/multipath.conf — local overrides

Verify in this order

SCSI paths → multipathd → dm map

Where it usually breaks

First mismatch in initiator → link/fabric/network → session/login → target port → LUN/namespace presentation → multipath → block consumer; preserve identity/pre-state before mutation.

Multipathing → Device Mapper Multipath multipath map

Multipath boundaryWhat to verifyProof limit
Device identityPersistent LUN/WWID plus one logical multipath deviceMatching identity does not prove every path is healthy or independent
Path state / policyExpected paths, access state, selector/policy, transport errors and target-side presentationPath up does not prove low latency, independence or application continuity
Failure boundaryA healthy device-mapper map proves Linux has grouped known paths, but it does not prove the storage fabric, array controller ownership or upper filesystem is healthy.Correlate host, transport and target evidence for the same time window
AcceptanceHealthy evidence: one map has the expected WWID, all intended paths are grouped correctly, path priorities/access states match the target, and I/O continues through an approved single-path failure.Close only after original I/O and approved path-failure verification succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4113

Confirmation

Confirm action

Continue?