How Do I Do If the Time on MRS Nodes Is Incorrect?

  1. Run the vi /etc/ntp.conf command to edit the NTP client configuration file, add the IP addresses of the master node in the MRS cluster, and comment out the IP address of other servers.
    server master1_ip prefer
    server master2_ip 
    Figure 1 Adding the master node IP addresses
  2. Run the service ntpd stop command to stop the NTP service.
  3. Run the /usr/sbin/ntpdate IP address of the active master node command to manually synchronize time.
  4. Run the service ntpd start or systemctl restart ntpd command to start the NTP service.
  5. Run the ntpstat command to check the time synchronization result: