Use this when zoning or masking needs exact port identifiers.
WWPN
A WWPN (World Wide Port Name) uniquely identifies one Fibre Channel port. It is the value used in zoning and LUN masking, so record it for every HBA and storage port.
1. WWPN identifies one FC port.
2. Used in zoning and LUN masking.
3. Replacing an HBA changes WWPNs — update zones/masking.
4. NPIV creates virtual WWPNs.
5. Keep inventory current.
port → WWPN → zones/masks
Context & applicabilityCommon mistakes · platform/version boundaries
- Using the WWNN in zones or host groups instead of the WWPN.
- Typos when entering WWPNs manually — use device aliases.
- Replacing an HBA and forgetting to update zones and array host mappings.
- NPIV virtual WWPNs not zoned for every host the VM can run on.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A WWPN is unique per port.
- Zoning and LUN masking use it.
- Record it when replacing HBAs.
cat /sys/class/fc_host/host*/port_name— host WWPNsshow flogi database— logged in WWPNsshow device-alias database— aliases
ReferenceHow it works1 section · depth on demand
Using WWPNs
Zone and mask by WWPN: the switch zones use them to decide which ports see each other, and the array maps LUNs to host WWPNs (initiator groups). When an HBA is replaced, its WWPNs change — update zoning and host groups, or use virtual WWPNs (Cisco UCS, Synergy profiles) that stay with the server profile.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
The WWPN is the address a Fibre Channel port uses for zoning and LUN masking
Each FC port has a World Wide Port Name (WWPN), a 64-bit identifier written as 16 hex digits. The node (adapter or array) has a World Wide Node Name (WWNN). Switches zone by WWPN, and arrays mask LUNs to WWPNs.
Reading them on Linux
The kernel FC transport documentation describes FC hosts under /sys/class/fc_host/ and remote ports under /sys/class/fc_remote_ports/, with attributes including node_name, port_name, port_id and port_state.
$ cat /sys/class/fc_host/host*/port_name
0x2100000e1e123456
0x2100000e1e123457
$ cat /sys/class/fc_host/host*/node_name
$ for r in /sys/class/fc_remote_ports/rport-*; do echo "$(cat $r/port_name) $(cat $r/port_state)"; done
0x500a098188a1b2c3 Online
On other platforms
| Platform | Command |
|---|---|
| Windows | Get-InitiatorPort | ft NodeAddress,PortAddress,ConnectionType |
| VMware ESXi | esxcli storage san fc list |
| Cisco MDS | show flogi database, show fcns database |
| Brocade | switchshow, nsshow |
Format and use
| Item | Example |
|---|---|
| Linux sysfs | 0x2100000e1e123456 |
| Zoning (colon form) | 21:00:00:0e:1e:12:34:56 |
| Zoning practice | Single-initiator zones: one host WWPN with the target WWPNs |
| Aliases | Name WWPNs on the switch (host01_hba0) to avoid typing errors |
Pitfalls
- Replacing an HBA changes its WWPN. Zoning and array host groups must be updated, or the host loses its LUNs.
- Virtual WWPNs (NPIV) on hypervisors are separate from the physical port's WWPN.
- Copying WWPNs by hand is a common source of zoning errors. Read them from the switch name server and compare.
Illustrative example (not a system capture).
Worked example
The WWPN (port name) is unique per physical or virtual port and is what zoning, LUN masking and host groups reference. A typical dual-fabric host has two WWPNs: one zoned in fabric A, one in fabric B.
Worked example: host esx01 has WWPNs 21:00:00:24:ff:4c:7a:10 (fabric A) and 21:00:00:24:ff:4c:7a:11 (fabric B). The array has controller ports CT0.FC0/CT1.FC0 in fabric A and CT0.FC1/CT1.FC1 in fabric B. Result: two single-initiator zones, one per fabric, each containing one host WWPN and the two array ports in that fabric — four paths in total.
Device aliases (Cisco MDS)
device-alias database
device-alias name ESX01-HBA0 pwwn 20:00:00:25:b5:aa:00:01
device-alias name ARRAY-CTRL-A0 pwwn 50:06:01:60:3e:a0:12:34
device-alias commit
show device-alias database
Documented example, not captured output. Aliases make zones readable and survive HBA moves between ports.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Fibre Channel → WWPN. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.snia.org/education/what-is-fibre-channel · confidence 94%