Pcornel
Storage · iSCSI

Discovery

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

Back to the Topic

Answer

Discovery can be statically configured or use mechanisms such as SendTargets depending on implementation. Discovery returns target/portal information, but actual login, authentication and LUN mapping occur afterward.

Remember

  • Discovery success ≠ login success.
  • Discovered target ≠ authorized LUN access.
  • Stale discovery cache ≠ current target state.
  • Discovering more portals ≠ MPIO configured.

First checks

  • iscsiadm -m discovery -t sendtargets -p <ip> — SendTargets discovery
  • iscsiadm -m discoverydb — stored discovery records
  • Get-IscsiTargetPortal — Windows portals

Verify in this order

discovery portal → target list → node records

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 → Discovery 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 boundaryDiscovery proves target metadata was returned through a discovery path; it does not prove operational sessions or storage access.Correlate host, network/fabric and target/array evidence for the same time window
AcceptanceHealthy evidence: discovery returns only expected target names/portals and current records match the intended network design.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=4104

Confirmation

Confirm action

Continue?