Pcornel
Storage · iSCSI

Session

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

Back to the Topic

Answer

RFC 7143 defines the session as the grouping of TCP connections linking an initiator and target. Session identity and negotiated parameters persist across its connections, while MPIO may use multiple sessions/paths depending on host implementation and design.

Remember

  • TCP connection ≠ iSCSI session.
  • Session established ≠ LUN mapped.
  • Session up ≠ no packet loss/retransmission.
  • Multiple sessions ≠ correct multipath grouping automatically.

First checks

  • iscsiadm -m session -P 1 — state LOGGED_IN
  • iscsiadm -m node -T <iqn> -p <ip> --login — login
  • iscsiadm -m node -T <iqn> -o update -n node.startup -v automatic — persist

Verify in this order

login → session → connections → LUNs

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 → Session 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 boundaryAn established session proves protocol communication for that initiator-target pair; it does not prove all desired paths, LUN mappings or application I/O health.Correlate host, network/fabric and target/array evidence for the same time window
AcceptanceHealthy evidence: expected sessions remain stable, connections use intended source/portal paths, no unexplained reconnects occur and mapped LUN 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=4105

Confirmation

Confirm action

Continue?