LUN Mapping
Cheat sheet · https://pcornel.dk/topic.php?topic=4070
Answer
Arrays associate logical units with initiator identities or host groups. This is distinct from fabric zoning: zoning limits communication possibilities, while mapping/masking determines whether the target exposes the logical unit to that initiator.
Remember
- LUN mapping ≠ zoning.
- Mapped ≠ discovered if the transport path is down.
- Unmapped ≠ securely erased.
- Changing host-visible LUN number ≠ changing underlying logical-unit identity.
First checks
array CLI: show host mappings— LUN maskinglsscsi— LUNs visiblerescan-scsi-bus.sh -r— remove stale LUNs
Commands
lsblk -o +WWNiscsiadm -m session -R
Verify in this order
LUN → mapping to host/host group → host sees LUN
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.
SAN → LUN Mapping SAN/iSCSI map
| SAN/iSCSI boundary | What to verify | Proof limit |
|---|---|---|
| Identity / presentation | Initiator + target identity, portal/fabric path, LUN stable ID and mapping | Discovery or login alone does not prove correct storage ownership |
| Path / transport | Link/VLAN/IP/TCP or fabric state, path independence, session/path errors and multipath grouping | One reachable path does not prove resilience or backend health |
| Failure boundary | A correct mapping proves array-side presentation policy; it does not prove transport connectivity, host multipath or safe upper-layer ownership. | Correlate host, network/fabric and target/array evidence for the same time window |
| Acceptance | Healthy evidence: only intended initiators/host groups receive the intended logical units and host discovery matches mapping after a controlled rescan. | Close only after the original block workload and upper-layer consistency check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4070