Once the cluster host time is out of sync, the distributed storage will be abnormal.So it's very important to keep the host time synchronized.
The way to keep time synchronization between hosts is to set up NTP synchronization.If the UIS node’s clock is out of sync, We can check NTP configuration to further analyze the cause of the problem
Configure a network time protocol (NTP) server for the UIS system to synchronize the system time of CVK hosts and ensure time consistency of all CVK hosts in the UIS system.
By default, the management address of the UIS Manager is configured in NTP Primary Server, so all the CVK hosts under the UIS system will automatically synchronize with the system time of the UIS Manager.
NTP synchronization rule: The NTP server synchronizes with the time of its hardware first, and then synchronizes with the active server that has the highest priority. Clients synchronize with the active server that has the highest priority. If the mainboard or any accessory of this server is replaced, its time will change, which causes the cluster time to change as well.
A host in a cluster will synchronize with another host. Log in to the hosts over SSH, check the host date, and run the ntpq -p command to check whether the NTP of all monitor nodes is correctly set.
Check whether all the hosts are pointed to the same remote node and the poll time length is proper. If the configurations are correct, the cluster will automatically synchronize a period of time later. If the remote node is wrong, manually modify the NTP configuration file.
Modify the /etc/ntp.conf file as follows to change the NTP server configuration, save the settings, and run the service ntp restart command to restart the NTP server.
Modify the /etc/ntp.conf file as follows to change the NTP client configuration, save the setting, and run the ntpdate -u 192.168.36.81 (IP address of the NTP server) command to synchronize with the NTP server.
After the configuration, the cluster will automatically synchronize a period of time later.
【Tips】 By default, the management address of the UIS Manager is configured in NTP Primary Server. You are not advised to change it.