iSCSI VLAN
Cheat sheet · https://pcornel.dk/topic.php?topic=4109
Answer
VLAN separation can reduce accidental traffic mixing and simplify path design, but it is not encryption and does not itself create redundancy. Multipath designs often use separate VLAN/subnet/failure domains per path to avoid common failures.
Remember
- iSCSI VLAN ≠ security boundary by itself.
- VLAN configured ≠ tagging proven end to end.
- Two VLANs ≠ two independent paths if they traverse the same physical failure domain.
- Dedicated VLAN ≠ no congestion automatically.
First checks
ip -d link show <nic>— VLAN interfacebridge vlan show / switch config— VLAN on portsip route get <portal>— path uses storage interface
Commands
ip link add link DEVICE name NAME type vlan id VLANIDip link set dev X mtu Niscsiadm -m ifaceping -M do
Verify in this order
storage NIC → iSCSI VLAN → target
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 VLAN 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 | Correct VLAN membership proves Layer-2 segmentation; it does not prove portal reachability, CHAP, LUN mapping, encryption or path redundancy. | Correlate host, network/fabric and target/array evidence for the same time window |
| Acceptance | Healthy evidence: intended initiator/target interfaces share only the correct VLAN/subnet path, tagging and routing match design, congestion is controlled and sessions remain stable. | 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=4109