Pcornel
Storage · iSCSI

iSCSI VLAN

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

Back to the Topic

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 interface
  • bridge vlan show / switch config — VLAN on ports
  • ip route get <portal> — path uses storage interface

Commands

ip link add link DEVICE name NAME type vlan id VLANID
ip link set dev X mtu N
iscsiadm -m iface
ping -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 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 boundaryCorrect 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?