Method used to switch the owning controller of a LUN

You can switch the owning controller of a LUN as follows:
The following method is used in the storage system when dual controllers run properly and a board is inserted and removed online without service interruption.
1. Check the owing controller of the LUN and perform switchover (controller B is used as an example).
For subtending boards, perform operations on relevant LUNs on them.
Log in to the primary controller.
Check the primary and secondary controllers in CLI mode by logging in to the CLI mode and running the showmaster command.
Query the owing controller that backs up the LUN by logging in to the CLI mode and entering showlun.
Switch the LUN by switching LUN1 (LUN-ID 1) from controller B to controller A and entering OceanStor: admin> chglun -i 1 -c a in CLI mode.

Command format: chglun -i LUN-ID -c controller-ID
2. Switch the LUN back to the original owing controller.
Note:
After the board is inserted, switch the owing controller of the LUN to the original one.

Scroll to top