Target
Cheat sheet · https://pcornel.dk/topic.php?topic=4068
Answer
The target presents protocol-specific target identities/ports and ties those endpoints to LUN mappings. A storage array can have many target ports for redundancy and performance, but all paths to one LUN must refer to the same underlying logical unit.
Remember
- Target ≠ LUN.
- Target port reachable ≠ host authorized to a LUN.
- More target ports ≠ more redundancy unless they are placed across independent failure domains.
- Target login ≠ backend media healthy.
First checks
iscsiadm -m discovery -t st -p <ip>— iSCSI targetscat /sys/class/fc_remote_ports/rport-*/port_name— FC target WWPNstargetcli ls— Linux LIO target config
Verify in this order
target port → LUNs → initiators
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.
SAN → Target 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 | A reachable target proves endpoint connectivity; it does not prove correct LUN mapping, backend health or upper-layer consistency. | Correlate host, network/fabric and target/array evidence for the same time window |
| Acceptance | Healthy evidence: expected target ports are reachable through intended paths, return consistent logical-unit identity and show no unexplained transport/controller 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=4068