Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

LUN Mapping

Direct 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.

When to use this

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.

First 30 seconds

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.

Operational verification

LUN → mapping to host/host group → host sees LUN

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
SAN and storage networking
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSAN and storage networking
Scope / prerequisiteUse it when the storage question has been narrowed to SAN → LUN Mapping. Preserve stable endpoint/LUN identity, separat…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • LUN mapping ≠ zoning.
  • Mapped ≠ discovered if the transport path is down.
  • Unmapped ≠ securely erased.
  • Changing host-visible LUN number ≠ changing underlying logical-unit identity.
Key checks
  • array CLI: show host mappings — LUN masking
  • lsscsi — LUNs visible
  • rescan-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

RuleWhy
Same LUN number for a shared LUN on every cluster nodeSome clustered file systems and hypervisors expect it
Map shared LUNs only to the hosts of that clusterA non-cluster host may format or "repair" the LUN
Never map one non-cluster LUN to two hostsTwo file-system mounts corrupt the data
Keep LUN 0 in mindSome hosts expect LUN 0 to exist on every target
Document LUN ID, size, WWN and ownerMakes 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSAN and storage networking current

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%
Terminology layer

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.

Aliases that resolve here
lun mappinglun maskingstorage mapping
Embedded reference data

Quick lookup tables

SAN → LUN Mapping SAN/iSCSI map

Fast identity, path, presentation and proof boundaries for SAN → LUN Mapping.

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
Confirmation

Confirm action

Continue?