Failover
Cheat sheet · https://pcornel.dk/topic.php?topic=4117
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 pathsjournalctl -u multipathd --since -1h— failover eventsgrep -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 boundary | What to verify | Proof limit |
|---|---|---|
| Device identity | Persistent LUN/WWID plus one logical multipath device | Matching identity does not prove every path is healthy or independent |
| Path state / policy | Expected paths, access state, selector/policy, transport errors and target-side presentation | Path up does not prove low latency, independence or application continuity |
| Failure boundary | Multipath 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 |
| Acceptance | Healthy 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