Pcornel
Storage · iSCSI

iSCSI Troubleshooting

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

Back to the Topic

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 state
  • journalctl -u iscsid --since -1h — login/timeout errors
  • dmesg | 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…
ping
ping -M do -s 8972
iscsiadm -m discovery -t st -p <portal>
iscsiadm -m node -l
multipath -ll
esxcli storage nmp device list
journalctl -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 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 boundaryThe 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?