Use it when the storage question has been narrowed to SAN → LUN Mapping. Preserve stable endpoint/LUN identity, separate connectivity from login/presentation, and prove each path plus the upper consumer before making disruptive SAN or iSCSI changes.
LUN Mapping
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.
1. LUN mapping/masking decides which hosts see which LUNs.
2. Map to host groups for clusters.
3. Same LUN ID on all cluster hosts.
4. Unmapped LUNs on hosts leave stale devices — clean up.
5. Audit mappings regularly.
LUN → mapping to host/host group → host sees LUN
Context & applicabilityCommon mistakes · platform/version boundaries
A correct mapping shows array-side presentation policy, but it does not show transport connectivity, host multipath or safe upper-layer ownership.
Suspicious evidence: broad wildcard access, stale initiator membership, wrong LUN presented, mapping drift or host sees unexpected devices.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
logical unit → array mapping/masking policy → initiator/host group → target port → SAN connectivity → host discovery
Healthy evidence: only intended initiators/host groups receive the intended logical units and host discovery matches mapping after a controlled rescan.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- LUN mapping ≠ zoning.
- Mapped ≠ discovered if the transport path is down.
- Unmapped ≠ securely erased.
- Changing host-visible LUN number ≠ changing underlying logical-unit identity.
array CLI: show host mappings— LUN maskinglsscsi— LUNs visiblerescan-scsi-bus.sh -r— remove stale LUNs
ReferenceImportant terms & boundaries3 sections · depth on demand
Identity and presentation
A correct mapping shows array-side presentation policy, but it does not show transport connectivity, host multipath or safe upper-layer ownership.
In depth
LUN mapping decides which initiator sees which LUN, with which number
On a block storage target, a LUN only becomes visible to a host once it is mapped to that host's initiator. The LUN number the host sees is also part of the mapping.
Mapping on a Linux LIO target with targetcli
targetcli(8) describes the building blocks. Backstores are the local storage exported (block for a block device, fileio for a file). An iSCSI target gets a default portal group, tpg1. LUNs attach backstores to the target. ACLs create entries per initiator IQN, each with its own mapped LUNs: the LUN number that initiator sees.
# targetcli
/> backstores/block create name=vmstore01 dev=/dev/vg_san/vmstore01
/> iscsi/ create iqn.2026-11.com.example:san01
/> iscsi/iqn.2026-11.com.example:san01/tpg1/luns create /backstores/block/vmstore01
/> iscsi/iqn.2026-11.com.example:san01/tpg1/acls create iqn.2004-10.com.ubuntu:01:host01
/> iscsi/iqn.2026-11.com.example:san01/tpg1/acls/iqn.2004-10.com.ubuntu:01:host01 ls
o- iqn.2004-10.com.ubuntu:01:host01 .......................... [Mapped LUNs: 1]
o- mapped_lun0 ........................ [lun0 block/vmstore01 (rw)]
/> saveconfig
The manual notes that saveconfig writes /etc/rtslib-fb-target/saveconfig.json, and that a service such as target.service must be enabled to restore it at boot.
Mapping rules that avoid incidents
| Rule | Why |
|---|---|
| Same LUN number for a shared LUN on every cluster node | Some clustered file systems and hypervisors expect it |
| Map shared LUNs only to the hosts of that cluster | A non-cluster host may format or "repair" the LUN |
| Never map one non-cluster LUN to two hosts | Two file-system mounts corrupt the data |
| Keep LUN 0 in mind | Some hosts expect LUN 0 to exist on every target |
| Document LUN ID, size, WWN and owner | Makes the host-side view (lsblk -o +WWN) traceable |
After changing a mapping, rescan on the host (iscsiadm -m session -R, or a SCSI host rescan) and confirm the WWN, not just the size.
Documented example, not captured output.
Quick reference
LUN mapping (masking) decides which hosts see which LUNs and with which LUN ID. Zoning lets a host reach the array port; masking lets it see a specific volume.
Keep LUN IDs consistent across all hosts in a cluster — ESXi and Windows clusters expect the same LUN to have the same ID on every node. LUN 0 is often reserved for boot or array management on some platforms.
# Host side after mapping
rescan-scsi-bus.sh -a; lsscsi; multipath -ll
esxcli storage core adapter rescan --all
Update-HostStorageCache; Get-Disk
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in SAN → LUN Mapping. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.snia.org/education/storage_networking_primer · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
SAN → LUN Mapping SAN/iSCSI map
Fast identity, path, presentation and proof boundaries for SAN → LUN Mapping.
| 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 |