XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NTP issues

    Scheduled Pinned Locked Moved Solved Compute
    ntp
    5 Posts 2 Posters 453 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dpearceFL
      last edited by

      I have three hosts, all pointing to a single NTP server yet XOA says hosts 2 and 3 are not synchronized.

      If I ssh into a host I see this:

      # timedatectl
            Local time: Wed 2024-09-04 13:54:08 EDT
        Universal time: Wed 2024-09-04 17:54:08 UTC
              RTC time: Wed 2024-09-04 17:54:08
             Time zone: America/New_York (EDT, -0400)
           NTP enabled: yes
      NTP synchronized: no
       RTC in local TZ: no
            DST active: yes
       Last DST change: DST began at
                        Sun 2024-03-10 01:59:59 EST
                        Sun 2024-03-10 03:00:00 EDT
       Next DST change: DST ends (the clock jumps one hour backwards) at
                        Sun 2024-11-03 01:59:59 EDT
                        Sun 2024-11-03 01:00:00 EST
      

      Why is it not synchronized. Is it just a case of "you need to wait."

      1 Reply Last reply Reply Quote 0
      • D Offline
        dpearceFL @olivierlambert
        last edited by

        @olivierlambert You are totally right. I 'thought' I had added a firewall rule to allow incoming NTP requests, but I added it again and reloaded and now all three hosts are syncing. Thanks!

        1 Reply Last reply Reply Quote 0
        • olivierlambertO Online
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          Hi,

          To watch/check timesync, you need to use chrony commands. Eg chronyc tracking and chronyc sources.

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            dpearceFL @olivierlambert
            last edited by

            @olivierlambert All three hosts say this:

            # chronyc tracking
            Reference ID    : 00000000 ()
            Stratum         : 0
            Ref time (UTC)  : Thu Jan 01 00:00:00 1970
            System time     : 0.000000000 seconds fast of NTP time
            Last offset     : +0.000000000 seconds
            RMS offset      : 0.000000000 seconds
            Frequency       : 0.000 ppm slow
            Residual freq   : +0.000 ppm
            Skew            : 0.000 ppm
            Root delay      : 1.000000000 seconds
            Root dispersion : 1.000000000 seconds
            Update interval : 0.0 seconds
            Leap status     : Not synchronised
            

            The XOA host says this:

            # chronyc tracking
            Reference ID    : AC1415FE (172.20.21.254)
            Stratum         : 4
            Ref time (UTC)  : Wed Sep 04 18:05:52 2024
            System time     : 0.000297567 seconds slow of NTP time
            Last offset     : -0.000314209 seconds
            RMS offset      : 0.000475838 seconds
            Frequency       : 9.984 ppm slow
            Residual freq   : -0.001 ppm
            Skew            : 0.408 ppm
            Root delay      : 0.003664614 seconds
            Root dispersion : 0.015663998 seconds
            Update interval : 1040.9 seconds
            Leap status     : Normal
            

            Nothing seems off. Yet, XOA keeps saying "Host time and XOA time are not consistent with each other." I know that time sync is really important.

            1 Reply Last reply Reply Quote 0
            • olivierlambertO Online
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              All three hosts aren't sync, as you can see. Only XOA is. So you need to get your XCP-ng host to be sync and have a reachable NTP source. Check chrony sources command on them.

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                dpearceFL @olivierlambert
                last edited by

                @olivierlambert You are totally right. I 'thought' I had added a firewall rule to allow incoming NTP requests, but I added it again and reloaded and now all three hosts are syncing. Thanks!

                1 Reply Last reply Reply Quote 0
                • olivierlambertO olivierlambert marked this topic as a question on
                • olivierlambertO olivierlambert has marked this topic as solved on
                • First post
                  Last post