How to correct the time on a Red Hat EL6 server? Clock is almost 3 hours behind

Marcus asked:

This did not work:

[~]: sudo /usr/sbin/ntpdate pool.ntp.org
19 Feb 08:03:26 ntpdate[6939]: the NTP socket is in use, exiting

So, I’m not sure how to proceed… also tried this to no avail:

[~]: sudo service ntpd restart
Shutting down ntpd:                                        [  OK  ]
Starting ntpd:                                             [  OK  ]

Then just tried stopping the ntpd service in order to update it:

[~]: sudo service ntpd stop
Shutting down ntpd:                                        [  OK  ]
[~]: sudo /usr/sbin/ntpdate pool.ntp.org
19 Feb 08:09:20 ntpdate[7005]: no server suitable for synchronization found

My answer:


The error message from ntpdate told you why it didn’t work, but for some reason you didn’t act on that information.

You should do what it suggested and stop the ntp server first, then try it again.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.