Storage · Storage Troubleshooting
iSCSI Connection Failure
Cheat sheet · https://pcornel.dk/topic.php?topic=4395
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— sessionsjournalctl -u iscsid --since -1h— errorsnc -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 -Rlsblk -o NAME,SIZE,WWN,TRANmultipath -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 boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Host initiator/IQN → VLAN/IP/route/MTU → TCP portal → target/IQN → CHAP/login → iSCSI session → LUN mapping → multipath/block device → backend | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A 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 |
| Acceptance | Healthy 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