Pcornel
Storage · Multipathing

Failover

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

Back to the Topic

Answer

A path checker or transport error marks a path unusable, the multipath layer stops selecting it, queued or retried I/O moves to another eligible path, and the upper device remains stable. Recovery time depends on detection, timeout, retry, target ownership/access state and application tolerance.

Remember

  • Path failover ≠ HA failover of a VM, node or application.
  • Path marked failed ≠ backend LUN failed.
  • I/O eventually recovers ≠ application did not time out.
  • Failover success ≠ restored redundancy until the failed path returns or is replaced.

First checks

  • multipathd show paths — failed paths
  • journalctl -u multipathd --since -1h — failover events
  • grep -E 'no_path_retry|fast_io_fail|dev_loss' /etc/multipath.conf — timeouts

Verify in this order

path fails → detected → I/O to remaining paths

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 → Failover 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 boundaryMultipath failover protects against a path-level fault only when another valid path survives; it cannot survive a common fabric, target, LUN or backend failure.Correlate host, transport and target evidence for the same time window
AcceptanceHealthy evidence: one path is deliberately removed or fails, the logical device identity remains stable, I/O continues/retries within accepted limits, and remaining paths show correct access states.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=4117

Confirmation

Confirm action

Continue?