Hello, all!
The change initiator command fails to replace the original initiator WWN with the new initiator WWN. Do you know how to solve the issue? Don't worry, the post will share you.
Symptoms
After the host HBA is replaced online, you need 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. Some initiators are successfully replaced, but some initiators fail to be replaced.The command output is as follows:
The following command output indicates that the original initiator fails to be obtained:
However, the initiator can be queried by running the show initiator command.

Cause
change initiator initiator_type wwn=xxx new_wwn=xxx command to replace initiator process:
1. Query information about the original initiator.
2. Remove the original initiator from the host.
3. Create an initiator. (If 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. A maximum of 32 initiators can be queried. If the number of initiators exceeds 32, the query fails and an error is reported during command execution.
Analysis
1. If an error occurs when the change initiator command is executed, check whether the error message is displayed indicating that the original initiator information fails to be queried.
If yes, go to step2. Run the show initiator command to check whether the number of initiators exceeds 32. If yes, the problem is caused by the problem. Otherwise, the problem is not caused by this problem.

Solution
Run the following commands:
1. Remove the original host initiator.
remove host initiator initiator_type=FC wwn=xxx
2. Add a host initiator.
add host initiator host_id=2 initiator_type=FC wwn=xxx
This is my solution, how about yours? Go ahead and share it with us!