wiki:ntp_start_issue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:ntp_start_issue [2021/04/08 18:55] – created walkeradminwiki:ntp_start_issue [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
-NTP Start Issue+====== NTP Start Issue ====== 
 +<color darkorange>Apr 2021</color> 
 +\\  
 +\\  
 +\\  
 + 
 +This was created and tested using CentOS 7.9 
 +---- 
 +I recently had an issue where NTP would not start on a server, I have no idea why, it had CentOS installed and configured exactly the same as the other servers in the system, however NTP would not start. 
 +\\  
 +\\  
 +Running <color #ed1c24>ntpstat</color> I would see that the server was <color #ed1c24>unsynchronised</color>.  
 +\\  
 +\\  
 +Using timedatectl I could see the following: 
 +\\  
 +<file> 
 +      Local time: Thu 2021-04-08 14:22:37 UTC 
 +  Universal time: Thu 2021-04-08 14:22:37 UTC 
 +        RTC time: Thu 2021-04-08 14:22:37 
 +       Time zone: UTC (UTC, +0000) 
 +     NTP enabled: no 
 +NTP synchronized: no 
 + RTC in local TZ: no 
 +      DST active: n/a 
 +</file> 
 +\\  
 +NTP enabled: <color #ed1c24>no</color>\\  
 +NTP synchronized: <color #ed1c24>no</color>\\  
 +\\  
 +\\  
 +From the command line, issue the command: 
 +\\  
 +\\  
 +    timedatectl set-ntp yes 
 +\\  
 +\\  
 +Re-run the <color #ed1c24>timedatectl</color> command and you should see: 
 +\\  
 +<file> 
 +      Local time: Thu 2021-04-08 14:23:20 UTC 
 +  Universal time: Thu 2021-04-08 14:23:20 UTC 
 +        RTC time: Thu 2021-04-08 14:23:20 
 +       Time zone: UTC (UTC, +0000) 
 +     NTP enabled: yes 
 +NTP synchronized: yes 
 + RTC in local TZ: no 
 +      DST active: n/a 
 +</file> 
 +\\  
 +where: 
 +\\  
 +\\  
 +NTP enabled: <color #22b14c>yes</color>\\  
 +NTP synchronized: <color #22b14c>yes</color>\\  
 +\\  
 +\\ 
  
  
wiki/ntp_start_issue.1617904535.txt.gz · Last modified: 2023/03/09 22:35 (external edit)