To sync the time backwards, do the following.
- Verify that the NTP servers are set correctly.
- Activate the time drift script by using the following command.
$ allssh ‘(/usr/bin/crontab -l && echo “*/5 * * * * bash -lc /home/nutanix/serviceability/bin/fix_time_drift”) | /usr/bin/crontab -‘
The script begins to gradually synchronize the time backwards. Lab tests show that time is synchronized backwards ,until the clock is completely in synchronization with the external time source.
- Display the progress of the time synchronization by using the following command.
$ allssh grep offset ~/data/logs/genesis.out
- Turn off the time synchronization script after the time synchronization is complete by using the following command.
$ allssh “(/usr/bin/crontab -l | sed ‘/fix_time_drift/d’ | /usr/bin/crontab -)”
Great article thanks Nishant Panchal, what was the time interval for this backwards time sync?
I have experience this same issue and the Nutanix support provided the same solution however the value was ” */1****** ” instead of 5. In my case the script made a correction of 20 minutes per day.
Do you know how to speed up the correction time?
sorry for the late reply, you have to wait it is very slow and anyway it is not practical to change cluster time in one go