ALUA
Cheat sheet · https://pcornel.dk/topic.php?topic=4118
Answer
An ALUA-capable target reports path-access state per target port group. The multipath framework uses that information—often through a prioritizer or DSM—to prefer optimized paths while retaining other valid paths for failover. Access state is a target property, not merely a host guess based on latency.
Remember
- ALUA active/nonoptimized ≠ failed.
- Optimized path ≠ only valid path.
- ALUA support ≠ host is interpreting states correctly.
- Controller ownership/state ≠ path-selection policy itself.
First checks
sg_rtpg --decode /dev/sdX— ALUA target port groupsmultipath -ll | grep prio— ALUA prioritiesesxcli storage nmp device list | grep -i alua— ESXi
Verify in this order
array reports AO/ANO → host prioritises AO
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 → ALUA 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 | ALUA reports asymmetric access relationships and states; it does not itself provide physical redundancy, choose every host policy, or prove application continuity. | Correlate host, transport and target evidence for the same time window |
| Acceptance | Healthy evidence: host and array agree on target port group states, optimized paths are preferred as designed, nonoptimized paths remain available where expected, and transitions do not duplicate or lose the LUN. | 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=4118