We have a Debian webserver that I am trying to use ntpdate to keep the time in sync.
When I run
ntpdate ntp0.cs.mu.oz.au
I receive
16 Sep 10:55:36 ntpdate[21626]: step time server 128.250.36.2 offset 318.914011 sec
With no errors, which should be a good thing, I think...
When I check the time again though, it's not changed.
I am also unable to set the time manually using
date --set 11:00:00
So I have a feeling there are other issues.
Any advice would be appreciated.
Update
Sorry for the bum steer guys, this machine is a XenServer VM, which I managed to forget.
After updating the Host clock, the VM time is now correct.
Thanks for your replies. Thanks.
I have been through this before.
Try (on domU):
and try updating the time again.
Did the time change when you set the new time using date?
Try and check the machine hardware clock. (man hwclock)
Try running ntpdate on an unprivileged port (in case you are running ntpd), otherwise it will refuse make any changes.
Try by this procedure:
Stop the ntpd service first:
Now update the local time
and after this start the service:
Have you given it time? Generally ntp will slowly adjust the time so when you look at logs things still make sense, and applications don't get messed up. This is called slewing, you can read about it in 'man ntpdate' or RFC 1305.