iSCSI Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=4098
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 detailcat /etc/iscsi/iscsid.conf | grep -v '^#' | grep .— initiator settingstargetcli 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 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 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 |
| Acceptance | Healthy 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