Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Running ntpdate at start up performs the same function as the -g option. I would remove the -x from the start up script since kernel time discipline is disabled with this option.
Having an unreliable NTP server - that is a windows clock not syncronised to anything - is it possible to ask the NTP deamon to sync to it no matter what? But not one off, regularly. Stepping time when needed.
That is what ntpd does. It uses a reference clock to cause updates to the local clock.
It works as long as the clocks are reasonably close together (about 10 minutes difference). Now if the Windows reference clock server isn't compatible with ntpd, then it won't work.
but it won't work if the source clock is not stable. I understand that for working properly ntpd needs to see a stable and reliable clock on the other side. A CMOS clock is not, hence ntpd will reject the source.
What I'm wondering is: is there a way to tell ntpd to be less fussy about the source and just sync it (stepping won't be a problem) without rejecting it?
Ok, so let's rephrase the question: is there a way to tell NTPD to be less fussy and just sync the clock no matter what happens to the remote NTP? Cannot use a schedule instance of ntpdate. I appreciate that ntpd is designed to keep the clock synced to the millisecond, but this is not my need and for several reasons which are out of my reach I cannot change much on my systems.
The hardware clock is only used to set the system clock at boot up. ntp will also discipline the hardware clock for drift as well as keep its time synced.
It isn't impossible if your system clocks remain fairly stable that you could keep other computers synced using a free running clock.
So why is running ntpdate via cron not an option? You can change the offset limit as well as how often ntp polls a server. However, I am doubt that this will fix the problem.
it's a long story. I can amend the ntp.conf file, but nothing else.
The point is that I understand that when ntpd feels the source clock is unstable, it won't trust it anymore. I had a long conversation on this forum with a very kind forumer about the subject. It makes sense to me, but as said my server does not need to be precise down to the millisecond. I would be happy if it was down to 30 seconds. I agree that stepping time with ntpdate every x minutes would be ideal, but that's not an option. That's why I'm wondering if ntpd can be configured to follow a clock which would normally reject.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.