ZooKeeper Is Unavailable Because of Non-synchronized Time Between Active and Standby Master Nodes
Symptom
The ZooKeeper service of the MRS cluster cannot be started, and an alarm is generated indicating that the ZooKeeper service is unavailable.
Cause Analysis
Log in to the active and standby master nodes as user root and run the ntpq -p command. The command output shows that the time on the two nodes is not synchronized.
Procedure
- Log in to the active OMS node as user root and run the ifconfig command to query the floating IP address of the current node.
In the following command output, for example, the floating IP address is 192.168.0.3.
- Log in to the master node where the NTP time is abnormal and run the following command to stop the NTP service:
service ntpd stop
- Run the following command to manually synchronize the time between the active and standby master nodes:
/usr/sbin/ntpdate Floating IP address obtained in 1
- Run the following command to start NTP:
service ntpd start
- Run the ntpstat command to check the time synchronization result.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot