Data ONTAP automatically sets the WWPNs on your target adapters during initialization. However, there are some circumstances in which you might need to change the WWPN assignments on your target adapters.
Considerations
There are two scenarios that might require you to change the WWPN assignments:
- Head swap: after performing a head swap, you might not be able to place the target adapters in their original slots, resulting in different WWPN assignments. In this situation it is important to change the WWPN assignments because many of the hosts will bind to these WWPNs. In addition, the fabric may be zoned by WWPN.
- Fabric re-organization: you might want to re-organize the fabric connections without having to physically move the target adapters or modify your cabling.
Steps
-
Take the adapter offline by entering the following command: fcp config adapter down
Example
fcp config 4a down
-
Display the existing WWPNs by entering the following command: fcp portname show [-v]
If you do not use the -v option, all currently used WWPNs and their associated adapters are displayed. If you use the -v option, all other valid WWPNs that are not being used are also shown.
-
Set the new WWPN for a single adapter or swap WWPNs between two adapters. If you are swapping between two adapters, make sure you take both adapters offline first.
| Use this command . . . |
To do this . . . |
|
fcp portname set adapter wwpn
|
Set the new WWPN on a single adapter. |
|
fcp portname swap adapter1 adapter2
|
Swap WWPNs between two adapters. |
Example
fcp portname set 4a 10:00:00:00:c9:30:80:2
Example
fcp portname swap 3a 4a
-
Bring the adapter back online by entering the following command: fcp config adapter up
Example
fcp config 4a up