Each vfc-client adapter has a pair of unique WWPNs. The primary WWPN
is used initially in all cases. The secondary WWPN is used only when
the client LPAR is moved to another physical server using PowerVM Live
Partition Mobility.
Note: When run for the first time, lsnportlogin shows all ports logged out, whether true or not.
Note: Now all ports show 1 (logged in), but not all are in use. Please note that for each vfc-client adapter both WWPNs are logged in.
Note: Now ports in use show 1 (logged in) and others show 0 (not logged in).
Please note that the WWPNs of a vfc-client device can be displayed from the HMC:
so WWPNs can be determined without forcing vfc-client devices to log in to the SAN.
Section 2.4 Virtual Fibre Channel and N_Port ID virtualization in the PowerVM Migration from Physical to Virtual Storage Redbook says that a vfc-client device can be forced to log in to the SAN fabric using SMS mode. However, the method described in the Redbook only works if at least one LUN has been masked so that it can be seen by the vfc-client device, which might be difficult to accomplish without first getting the vfc-client device to log in to the SAN.
A vfc-client device can be forced to log in to the SAN by booting the client LPAR to an Open Firmware (0 >) prompt, running the ioinfo utility, and selecting the FCINFO option, as described on the How to Capture SAN Boot Debug for Virtual I/O Server and AIX on P6 Systems Technote and here:
SSH to an HMC which is managing the LPAR. Use the vtmenu command on the HMC to open a virtual terminal session on the LPAR's system console. On the HMC GUI, select the server on which the LPAR resides, then select the LPAR, and shut the LPAR down if it is running. Then, use Operations -> Activate -> Profile -> Advanced ... to open the Activate Logical Partition - Advanced window. In the window, select Boot mode: Open Firmware OK Prompt. Or start the LPAR using the HMC command line, specifying '-b of' on the chsysstate command.
In the LPAR's system console window, you will see the LPAR start up and present the open firmware prompt ("0 >"). Respond to prompts as shown in blue below:
Please note that the technique above will cause only one vfc-client device at a time to log in to the SAN using the first WWPN for each device. And please note the text in red which suggests that the IBM Support Center can't provide much help with Open Firmware.
When the vfc-client device is logged in to the SAN, on the VIO Server one should see:
If the SAN is configured so that the vfc-client device can "see" a LUN, then ioinfo will display:
rather than:
The 4 in the example above is the number of the LUN which can be accessed via the vfc-client device.
Once vFC adapters are defined as described in the Technote, if the open firmware ioinfo subcommand fails with a message like that in red below:
then the following approach to troubleshooting is appropriate:
HMC V7R7.3 and above
HMC V7R7.3 with MH01263 or higher (and VIOS 2.2.0.11-FP24-SP01 or higher) provides the chnportlogin and lsnportlogin commands.Note: When run for the first time, lsnportlogin shows all ports logged out, whether true or not.
Note: Now all ports show 1 (logged in), but not all are in use. Please note that for each vfc-client adapter both WWPNs are logged in.
Note: Now ports in use show 1 (logged in) and others show 0 (not logged in).
Below HMC V7R7.3
At software levels below HMC V7.7.3.0 with MH01263 and/or VIOS 2.2.0.11-FP24-SP01, it is still possible to force a virtual Fibre device to login to the SAN, but only the primary WWPN will log in. If a vfc-client device is defined for an LPAR which is already running an operating system, then if/when the operating system opens the vfc-client device, the device will log in to the SAN. But in some cases it is desirable to force a vfc-client device to log in to the SAN before an operating system is installed.Please note that the WWPNs of a vfc-client device can be displayed from the HMC:
so WWPNs can be determined without forcing vfc-client devices to log in to the SAN.
Section 2.4 Virtual Fibre Channel and N_Port ID virtualization in the PowerVM Migration from Physical to Virtual Storage Redbook says that a vfc-client device can be forced to log in to the SAN fabric using SMS mode. However, the method described in the Redbook only works if at least one LUN has been masked so that it can be seen by the vfc-client device, which might be difficult to accomplish without first getting the vfc-client device to log in to the SAN.
A vfc-client device can be forced to log in to the SAN by booting the client LPAR to an Open Firmware (0 >) prompt, running the ioinfo utility, and selecting the FCINFO option, as described on the How to Capture SAN Boot Debug for Virtual I/O Server and AIX on P6 Systems Technote and here:
SSH to an HMC which is managing the LPAR. Use the vtmenu command on the HMC to open a virtual terminal session on the LPAR's system console. On the HMC GUI, select the server on which the LPAR resides, then select the LPAR, and shut the LPAR down if it is running. Then, use Operations -> Activate -> Profile -> Advanced ... to open the Activate Logical Partition - Advanced window. In the window, select Boot mode: Open Firmware OK Prompt. Or start the LPAR using the HMC command line, specifying '-b of' on the chsysstate command.
In the LPAR's system console window, you will see the LPAR start up and present the open firmware prompt ("0 >"). Respond to prompts as shown in blue below:
Please note that the technique above will cause only one vfc-client device at a time to log in to the SAN using the first WWPN for each device. And please note the text in red which suggests that the IBM Support Center can't provide much help with Open Firmware.
When the vfc-client device is logged in to the SAN, on the VIO Server one should see:
If the SAN is configured so that the vfc-client device can "see" a LUN, then ioinfo will display:
rather than:
The 4 in the example above is the number of the LUN which can be accessed via the vfc-client device.
Troubleshooting
For advice, please see the PowerVM NPIV / IBM Switch Configuration: Troubleshooting Technote.Once vFC adapters are defined as described in the Technote, if the open firmware ioinfo subcommand fails with a message like that in red below:
then the following approach to troubleshooting is appropriate:
-
If the VIO client LPAR name is mob77 (for example), determine the vfchost adapter(s) used by the LPAR by issuing the following VIOS padmin command:
-
Then, determine the physical Fibre Channel adapter to which each vfchost adapter is mapped by issuing the following VIOS padmin command:
-
Then, confirm that the physical Fibre Channel adapter port(s) are
ready to support NPIV by issuing the following VIOS padmin command:
-
If the fabric attribute of a relevant physical Fibre Channel adapter port is 1, then the adapter is ready to support NPIV.
One potential reason why the open firmware ioinfo subcommand might fail even though the adapter is ready to support NPIV is that two or more vfc-client devices are using the same slot on a VIO server. In the example below, the vfc-client devices at locations U8233.E8B.0623B7P-V7-C21-T1 and U8233.E8B.0623B7P-V7-C23-T1 are using the same slot number (34) on vio1: -
If the fabric attribute of a relevant physical Fibre Channel adapter port is 0, then the adapter is not ready to support NPIV.
One potential reason why the adapter might not be ready to support NPIV is that the fscsi child of the adapter port is not attached in switch mode:
If the fscsi child of the adapter port is not attached in switch mode, please note that since user_settable = False for that attribute, the attach attribute must have been changed by the Fibre Channel device driver as a result of changes external to the Power Systems server and can not be corrected using a chdev command. Rather, the external cause must be discovered and remedied. Once that is done, the setting of the attach attribute must be corrected using the following VIOS padmin command:
-
If the fabric attribute of a relevant physical Fibre Channel adapter port is 1, then the adapter is ready to support NPIV.
No comments:
Post a Comment