iSCSI Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=4110
Answer
iSCSI troubleshooting checks each step in order: network reachability to the portal, discovery, login and authentication, LUN visibility and multipath. Note the initiator IQN, target IQN and LUN IDs before deleting sessions or changing mappings.
Remember
- Ping success ≠ iSCSI success.
- TCP 3260 success ≠ login success.
- Session established ≠ LUN mapped.
- LUN visible ≠ MPIO/upper filesystem healthy.
First checks
iscsiadm -m session -P 3— session statejournalctl -u iscsid --since -1h— login/timeout errorsdmesg | grep -i -e iscsi -e 'connection.*error'— kernel errors
Commands
iscsiadm -m session -P 3- Inspect iSCSI session details. Focus fields: target IQN, portal, session state, connection state, negotiated parameters…
pingping -M do -s 8972iscsiadm -m discovery -t st -p <portal>iscsiadm -m node -lmultipath -llesxcli storage nmp device listjournalctl -u iscsid
Verify in this order
discovery → login → session → LUN → 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 → iSCSI Troubleshooting 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 | The first failed iSCSI boundary narrows ownership; a successful lower-layer check does not prove the next protocol, mapping, multipath or application layer. | Correlate host, network/fabric and target/array evidence for the same time window |
| Acceptance | Healthy evidence: identities, portals, TCP path, login/authentication, sessions, LUN mappings and MPIO agree across host and target views and the original workload succeeds without new 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=4110