Red HatThis forum is for the discussion of Red Hat Linux.
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.
I am trying to configure NTP on linux box as I have configured two IPs of ntp server in /etc/ntp.conf to sync linux box with these NTP servers.
server 10.13.1.111
server 10.13.1.112
After configuration, I simply restart the ntpd daemon. Should I need to configure anything else in ntp.conf file.Please let me know how can i define one ntp server as primary & other secondary & also let me know how can I verify if linux box is properly synchronized with NTP server configured in NTP configuration file.
don't use two servers, use *at least* three, preferably 57. If you only have 2 and they are different, how do you know which is right? There is no primary / secondary concept in NTP, the right time is the right time. use "ntpq -pn" to see if you're syncrhonized or not.
With the classic daemon written by Mills, there were programs, such as ntpq and ntptrace, that could be used to monitor ntp "health". These tools do not work with OpenNTPD. Older ntptrace programs work but newer versions are just a wrapper around ntpq and don't work.
Since you have no tools, you'll want to keep a copy of ntpdate handy that is useful for troubleshoot NTP problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.