Enabling NPIV on an existing system
Enabling N_Port ID Virtualization (NPIV) on an existing system requires that you complete several preparatory steps before you enable NPIV.
Note: When a storage system is configured as backend
storage for the system and has NPIV enabled, verify that both the backend storage system and the system are running versions that support NPIV.
Prerequisites
If you are changing the NPIV for an
I/O group in an existing system, complete the following prerequisite steps:
- Review your SAN fabric layout and zoning rules because NPIV has stricter requirements. Ensure that equivalent ports are on the same fabric and in the same zone. For more information, see the topic about zoning details.
- For more information, see the topic about zoning details.
- Ensure that Fibre Channel switches permit each physically connected system port the ability to create two additional NPIV ports.
Using the management GUI
After you have completed these prerequisite steps, you can
enable port virtualization on an existing system by completing these steps:
- In the management GUI, select .
- Verify that the value for the NPIV is set to Enabled. For new systems, the default status for NPIV is set to enabled. However, if you are adding a node to an existing system, verify this setting. If it is set to either Transitional or Disabled, it must be changed to Enabled.
- If NPIV is disabled, complete these steps to change it to transitional:
- Right-click the I/O group and select Change NPIV Settings.
- On the Change NPIV Settings page, select Transitional for the new state. Users cannot go directly from disabled to enabled state. The system must be in a transitional state where the I/O group contains both physical and virtual Fibre Channel ports. Click Continue.
- Verify that the new Transitional state is displayed on the I/O Groups page.
- Reconfigure all hosts to use the newly created virtual fibre channel ports. For more information, see Reconfigure hosts to use the virtual WWPNs.
- Ensure that the hosts are using the NPIV ports for host I/O. To verify that you are logged in to
these hosts with these NPIV ports, view the
- View each host using the View connectivity for filters.
- Validate that none of the Fibre Channel logins from the host are connected to physical WWPNs.
- Complete these steps to change the state to Enabled:
- Right-click the I/O group and select Change NPIV Settings.
- On the Change NPIV Settings page, select Enabled for the new state. Click Continue.
- Wait approximately 2 minutes before you verify that the new Enabled state is displayed on the I/O Groups page.
Using the command-line interface
For new systems, the default status for NPIV is set to enabled.
However, if you are adding a node to an existing system, you should verify this setting. To
verify the NPIV settings on an existing system in the command-line interface, complete the following
steps:
- Enter the following command to verify the NPIV setting on the system:
The fctargetportmode parameter indicates NPIV setting for the I/O group.lsiogrp -gui - If the fctargetportmode parameter is enabled for all IO groups with one more more nodes, the system is configured for NPIV, and no additional changes are required.
- If the fctargetportmode parameter is disabled for any
IO groups, you must change the fctargetportmode parameter to
transitional for those IO groups first. The system cannot go directly from
disabled to enabled state. To enable transitional mode, enter the following
command:
where io_group_id_or_name is the ID or name of the I/O group.chiogrp -fctargetportmode transitional io_group_id_or_name - Reconfigure all hosts to use the newly created virtual fibre channel ports. For more information, see Reconfigure hosts to use the virtual WWPNs.
- Ensure that the hosts are using the NPIV ports for host I/O. To verify that all hosts are using
the virtual ports, enter the following command for each host:
where host_id_or_name is the ID or name of the host. Ensure that none of the Fibre Channel logins listed in the lsfabric output are connected to physical WWPNs.lsfabric -host host_id_or_name - To change the NPIV setting to enabled, enter the following
command:
chiogrp -fctargetportmode enabled - Wait approximately 2 minutes before you enter the following command to verify that NPIV is
enabled:
Verify that the fctargetportmode parameter is enabled.lsiogrp -gui
Reconfigure hosts to use the virtual WWPNs
Note: If you are reconfiguring any IBM i systems, follow the alternative
procedures documented here: https://www.ibm.com/support/pages/node/7159521
Once the system is configured to use transitional mode, there
will be multiple WWPNs on each fibre channel port. During this section, the term "physical port"
will be used to reference the WWPN that was active when the system had
fctargetportmode disabled. The term "virtual port" will be used to refer to the
extra WWPNs that were enabled when changing fctargetportmode to transitional
mode - Look up the WWPNs of the newly configured virtual ports, and how they map to the old physical
ports.
- In the CLI, use the following command to view all the WWPNs configured on the
system:
If the virtualized field in the output is yes, the port is a virtual port.lstargetportfc -filtervalue protocol=scsi - In the management GUI:
- Select .
- Right click on the column headers of the table, and ensure that the Protocol Type is checked
- Open the sections to display the list of WWPNs.
- If the Virtualized field in the output is Yes, the port is a virtual port. Only use the ports that have Protocol Type of SCSI
- In the CLI, use the following command to view all the WWPNs configured on the
system:
- For each host that is zoned to the physical ports, make the following change
- Using multipathing commands, check the number of paths per volume before the change is started.
- Make zoning changes on all fabrics so that the host can log in to both the physical ports and virtual ports at the same time
- Use operating system commands to discover the new paths to the volumes
- Using multipathing commands, validate that the number of paths per volume (for the affected
volumes) has doubled and that all paths are online. Note: If the zoning changes were made on one fabric at a time, the number of extra paths is dependent on the zoning configuration change that was made.
- Make zoning changes to remove the connectivity between the host and the physical ports.
- Perform the operating system and multipathing steps used above to clean up the paths that were removed in the previous step.