Manually Performing Active/Standby Switchover
You can manually switch the standby server to the active server and the original active server to the new standby server, implementing system reliability test or system maintenance.
Prerequisites
- The heartbeat connection between the active and standby servers is normal.
- The data replication between the active and standby servers is normal.
- The data synchronization between the active and standby servers has been completed.
Procedure
- An active/standby switchover takes about 10 minutes. During this period, eSight is unavailable.
- After the services are configured, wait for two minutes until the data synchronization between the active and standby servers is complete. Otherwise, the data on the active and standby servers may be inconsistent.
- Log in to the active eSight server as the ossuser user. For the preset password, see the eSight User List released with the version (Support: https://support.huawei.com/carrier/docview!docview?nid=DOC1100890341; Support-E: https://support.huawei.com/enterprise/en/doc/EDOC1100227876).
- Run the following commands to manually perform active/standby switchover:
cd /opt/ommha/ha/bin
./switchover.sh
- If the following information is displayed, the active/standby switchover is successful:
Congratulations, exec successfully.
- Query the two-node cluster status to check whether an active/standby switchover has been performed.
- Log in to the server as the ossuser user.
- Run the following command to go to the target directory:
cd /opt/ommha/ha/bin
- Run the following command to check the two-node cluster status:
./status.sh