Question About Ntp

Home » CentOS » Question About Ntp
CentOS 9 Comments

Hallo,

what is the standard way to sync time under CentOS 7. ntp or chrony.

Thanks for a short hint.

Ralf

9 thoughts on - Question About Ntp

  • I more or less depend on NTP and synchronize against my public upstream NTP servers. The only system that runs chrony is my FreeIPA server.

    Regards, Ben

  • chrony syncs to an NTP server, in the same way that ntp syncs to an NTP
    server. The both work.

    I have both ntpd (under CentOS 6) and chronyd (under CentOS 7) NTP
    servers on my network, they all work fine together.

    P.

  • Le 27/05/2019 à 06:32, Ralf Prengel a écrit :

    Chrony is the standard way, but one of the first things I do when installing a CentOS server is replace it with NTP.

    Here’s a short blog article (in french) about NTP on CentOS.

    * https://www.microlinux.fr/CentOS-7-ntp/

    Cheers,

    Niki


    Microlinux – Solutions informatiques durables
    7, place de l’église – 30730 Montpezat Site : https://www.microlinux.fr Mail : info@microlinux.fr Tél. : 04 66 63 10 32
    Mob. : 06 51 80 12 12

  • I used chrony at home, a couple of decades ago (give or take) way back when I was on dialup, because if its ability to serve time to machines that are not always connected.

    Since it is now the default NTP provider for EL7 I use it again, and it still works fine for my needs.

    Fred

  • YMMV.

    I have used NTP for many, many years so I am familiar with it and also have ALL config files, I normally just delete chrony and install ntpd, then copy the config files and start ntp. All done, 2 minutes.

    Chrony cannot supply time info, so if you have clients requesting time info the server cannot serve time, you need ntpd for that. I have many windows stations that pull time from my CentOS servers.

  • Back when I used chrony in my home LAN it certainly did serve time. I
    brought it up on my firewall (an old PC running SmoothWall) as a local time server and it worked great for that purpose.

    It’s hard to imagine that someone would have REMOVED that ability in the intervening years….

  • Once upon a time, Jobst Schmalenbach said:

    That is not correct. In the default config, chrony doesn’t serve time, which is a good thing (see: all the problems with ntpd serving a lot more than time). All you have to do is uncomment/add “allow” lines in
    /etc/chrony.conf.