Pcornel
Storage · SAN

LUN Mapping

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

Back to the Topic

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 masking
  • lsscsi — LUNs visible
  • rescan-scsi-bus.sh -r — remove stale LUNs

Commands

lsblk -o +WWN
iscsiadm -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 boundaryWhat to verifyProof limit
Identity / presentationInitiator + target identity, portal/fabric path, LUN stable ID and mappingDiscovery or login alone does not prove correct storage ownership
Path / transportLink/VLAN/IP/TCP or fabric state, path independence, session/path errors and multipath groupingOne reachable path does not prove resilience or backend health
Failure boundaryA 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?