Session
Cheat sheet · https://pcornel.dk/topic.php?topic=4105
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_INiscsiadm -m node -T <iqn> -p <ip> --login— loginiscsiadm -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 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 | An 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 |
| Acceptance | Healthy 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