Pcornel
Storage · iSCSI

iSCSI Fundamentals

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

Back to the Topic

Answer

An iSCSI initiator and target identify themselves with persistent iSCSI names such as IQNs. A target exposes one or more network portals. Login negotiates parameters and authentication, after which one or more TCP connections can belong to an initiator-target session carrying SCSI commands and data.

Remember

  • Portal ≠ target: one target can be reachable through multiple portals.
  • Connection ≠ session: a session may comprise one or more TCP connections.
  • Session established ≠ LUN mapped.
  • iSCSI reliability relies on TCP but storage performance/availability still depends on the full Ethernet/IP path.

First checks

  • iscsiadm -m session -P 3 — full session detail
  • cat /etc/iscsi/iscsid.conf | grep -v '^#' | grep . — initiator settings
  • targetcli ls — LIO target (server side)

Verify in this order

discovery → login → session → 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.

iSCSI → iSCSI Fundamentals 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 successful login establishes protocol relationship between initiator and target; it does not guarantee authorization to every LUN, MPIO configuration or upper filesystem health.Correlate host, network/fabric and target/array evidence for the same time window
AcceptanceHealthy evidence: identities and portals match design, login negotiation succeeds, sessions remain stable, intended LUNs appear consistently and representative I/O has no unexplained SCSI/network errors.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=4098

Confirmation

Confirm action

Continue?