Fibre Channel port masking
With Fibre Channel port masking, you control the use of Fibre Channel ports. You can control whether the ports are used to communicate to other nodes within the same local system, and if they are used to communicate to nodes in partnered systems. Fibre Channel port masking does not affect host or storage traffic. It gets applied only to node-to-node communications within a system and replication between systems.
Usefulness of Fibre Channel port masking
What is Fibre Channel port masking
Port numbers refer to the Fibre Channel I/O port IDs that are shown by the lsportfc command.
A port mask is a string of zeros and ones. The last digit in the string represents port one. The
previous digits represent ports two, three, and so on. If the digit for a port is 1
, the port
is enabled and the system attempts to send and receive traffic on that port. If it is 0
, the
system does not send or receive traffic on the port. If there are not sufficient digits in the
string to specifically set a port number, the port is disabled for traffic.
For example, if the local port mask is set to 00001100
on a node with eight Fibre Channel
ports, ports 3 and 4 are able to connect with other nodes in the system. The other Fibre Channel
ports are not able to be used for node-to-node communication.
The port masks are set by using the chsystem CLI command.
Port masking example
The following table shows recommended port masking for systems with 4, 8, and 12 Fibre Channel ports. The number of 0s and 1s in the port mask examples match the number of ports.
Card / Port | 4 ports | 8 ports | 12 ports |
---|---|---|---|
Card 1 Port 1 | Host/Storage/Inter-node | Host/Storage | Host/Storage |
Card 1 Port 2 | Host/Storage/Inter-node | Host/Storage | Host/Storage |
Card 1 Port 3 | Host/Storage/Replication* | Inter-node | Inter-node |
Card 1 Port 4 | Host/Storage/Replication* | Inter-node | Inter-node |
Card 2 Port 1 | Host/Storage | Host/Storage | |
Card 2 Port 2 | Host/Storage | Host/Storage | |
Card 2 Port 3 | Host/Storage/Replication* | Host/Storage/Replication* | |
Card 2 Port 4 | Host/Storage/Replication* | Host/Storage/Replication* | |
Card 3 Port 1 | Host/Storage | ||
Card 3 Port 2 | Host/Storage | ||
Card 3 Port 3 | Host/Storage | ||
Card 3 Port 4 | Host/Storage | ||
localfcportmask | 0011 | 00001100 | 000000001100 |
partnerfcportmask | 1100 | 11000000 | 000011000000 |
* Use for host/storage when no replication is in place. |