LUN
Cheat sheet · https://pcornel.dk/topic.php?topic=4102
Answer
After login, the target exposes only logical units authorized for the initiator. The same LUN may be reachable through several target portals/sessions; the host must recognize a stable identifier and group those paths correctly.
Remember
- iSCSI session ≠ LUN access.
- LUN number ≠ globally unique device identity.
- Same-size LUN ≠ same device.
- Multiple sessions showing one LUN ≠ multiple independent data copies.
First checks
lsscsi -t | grep iscsi— iSCSI LUNsiscsiadm -m session -P 3 | grep -E 'Lun|Attached scsi disk'— LUN to device mappingGet-Disk | ? BusType -eq iSCSI— Windows
Commands
lsblkiscsiadm -m session -P 3iscsiadm -m session --rescan
Verify in this order
target LUN → session → SCSI disk → multipath
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.
iSCSI → LUN 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 host-visible iSCSI LUN proves target presentation across at least one session; it does not prove path redundancy, safe ownership or backend integrity. | Correlate host, network/fabric and target/array evidence for the same time window |
| Acceptance | Healthy evidence: target mapping and host persistent ID agree, capacity is expected, every designed session/path resolves to one multipath device and controlled I/O succeeds. | 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=4102