Pcornel
Storage · iSCSI

LUN

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

Back to the Topic

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 LUNs
  • iscsiadm -m session -P 3 | grep -E 'Lun|Attached scsi disk' — LUN to device mapping
  • Get-Disk | ? BusType -eq iSCSI — Windows

Commands

lsblk
iscsiadm -m session -P 3
iscsiadm -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 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 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?