Pcornel
Storage · Storage Troubleshooting

iSCSI Connection Failure

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

Back to the Topic

Answer

iSCSI discovery and data access are layered: initiator identity → VLAN/IP/route/MTU → TCP portal → target discovery → authentication/login → session → LUN mapping → multipath/block device.

Remember

  • Ping success ≠ TCP 3260 reachable.
  • TCP portal reachable ≠ iSCSI login/session established.
  • Session established ≠ LUN mapped or multipath assembled.
  • CHAP authenticates peers; it ≠ payload encryption.

First checks

  • iscsiadm -m session -P 1 — sessions
  • journalctl -u iscsid --since -1h — errors
  • nc -vz <portal> 3260 — reachability

Commands

iscsiadm -m session -P 3
Inspect iSCSI session details. Focus fields: target IQN, portal, session state, connection state, negotiated parameters…
iscsiadm -m session -R
lsblk -o NAME,SIZE,WWN,TRAN
multipath -ll

Verify in this order

NIC → network → portal → login → session

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Storage Troubleshooting → iSCSI Connection Failure proof map

Troubleshooting boundaryWhat to verifyProof limit
Scope / identityExact workload, object/device identity, affected hosts and incident windowSymptom naming alone is not root-cause proof
Dependency pathHost initiator/IQN → VLAN/IP/route/MTU → TCP portal → target/IQN → CHAP/login → iSCSI session → LUN mapping → multipath/block device → backendHealthy adjacent layers do not prove end-to-end health
Failure boundaryA connection/login error proves failure at or before the iSCSI session boundary; it does not prove the target LUN or backend data is unhealthy.Correlate evidence for the same operation and timestamps
AcceptanceHealthy evidence shows stable TCP reachability, authenticated session, expected LUN mapping and successful I/O over the intended path set.Close only after the original workload/recovery test and regression check

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4395

Confirmation

Confirm action

Continue?