[Problem Information]
Table 1 Basic information about the problem
Information Name | Using the Change Initiator Command to Replace the WWN of the Old Initiator with the New Initiator WWN |
| Storage Type | Centralized storage |
| Product Version | OceanStro V3&V5 |
| Fault Category | Command execution exception. (Value range: installation/deployment, basic service, value-added feature, file system, performance, capacity expansion, upgrade/patch, inspection, protocol, alarm, host, hardware, and others) |
| Keyword | Old starter; WWN replacement; occasionally failure (Used for search identification. Use semicolons (;) to separate multiple keywords.) |
[Problem Description]
After the host HBA card is replaced online, the customer wants to run the change initiator initiator_type=FC wwn=xxx new_wwn=xxx command to replace the original initiator wwn with the new initiator wwn to retain the host mapping view. However, there is a possibility that the command fails to be executed for multiple times.
[Symptom Description]
There is a possibility that the change initiator command fails to be executed onsite. Some initiators are successfully replaced, while others fail to be replaced.
If the replacement succeeds, the following command output is displayed:

However, the initiator is successfully queried by running the show initiator command.

[Cause]
The process of replacing the initiator WWN using the change initiator initiator_type wwn=xxx new_wwn=xxx command is as follows:
1. Query the information about the original initiator.
2. Remove the original initiator from the host.
3. Create new initiator information. (If the initiator information is automatically generated after the initiator is connected to the storage device, skip this step.)
4. Add the new initiator to the host.
In the first step, all initiators are queried in polling mode. The query interface does not use pagination query. Therefore, a maximum of 32 initiators can be queried. When the number of initiators exceeds 32, the query fails and an error is reported during command execution.
[Location Method]
1. After the change initiator command is executed incorrectly, check whether the error message indicates that the original initiator information fails to be queried. If yes, go to step 2.
2. Run the show initiator command to check whether the number of initiators exceeds 32. If yes, check whether the problem is caused. Otherwise, this is not the problem.

[Workaround]
Use separately
remove host initiator initiator_type=FC wwn=xxx
add host initiator host_id=2 initiator_type=FC wwn=xxx
[Solution]
NA
[Post-Recovery Check]
The command is executed successfully.
[Applicability]
All OceanStor V3 and V5 series versions