wiki:ntp_start_at_boot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:ntp_start_at_boot [2018/05/11 09:47] – walkeradmin | wiki:ntp_start_at_boot [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
\\ | \\ | ||
+ | This was created and tested using CentOS 7.x | ||
---- | ---- | ||
Chrony is introduced as new NTP client to replace the ntp as the default time syncing package since RHEL7, so if you configure NTP during the installation process, it just enables the chronyd service, not ntpd service. | Chrony is introduced as new NTP client to replace the ntp as the default time syncing package since RHEL7, so if you configure NTP during the installation process, it just enables the chronyd service, not ntpd service. | ||
Line 38: | Line 39: | ||
May 11 08:31:47 eri-4e-962955 systemd[1]: Started Network Time Service. | May 11 08:31:47 eri-4e-962955 systemd[1]: Started Network Time Service. | ||
</ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | In the / | ||
+ | \\ | ||
+ | server x.x.x.x iburst | ||
+ | \\ | ||
+ | Once added, you can use the following commands to see the NTP status: | ||
+ | \\ | ||
+ | ntpstat | ||
+ | | ||
+ | When you first run this you will probably see: | ||
+ | | ||
+ | unsynchronised | ||
+ | | ||
+ | | ||
+ | But after a while, it should chanage (15-30 minutes normally) | ||
+ | | ||
+ | synchronised to NTP server (194.80.204.184) at stratum 2 | ||
+ | time correct to within 41 ms | ||
+ | | ||
+ | |||
+ | |||
+ | systemctl status ntpd.service | ||
+ | | ||
+ | ● ntpd.service - Network Time Service | ||
+ | | ||
+ | | ||
+ | Main PID: 1501 (ntpd) | ||
+ | | ||
+ | | ||
+ | | ||
+ | Jun 28 15:43:58 eri-4e-963128 ntpd[1501]: Listen normally on 17 eth4 fe80:: | ||
+ | Jun 28 15:43:58 eri-4e-963128 ntpd[1501]: Listen normally on 18 eth5 fe80:: | ||
+ | Jun 28 15:43:58 eri-4e-963128 ntpd[1501]: new interface(s) found: waking up resolver | ||
+ | Jun 28 15:44:08 eri-4e-963128 ntpd[1501]: Deleting interface #18 eth5, fe80:: | ||
+ | Jun 28 15:44:08 eri-4e-963128 ntpd[1501]: Deleting interface #17 eth4, fe80:: | ||
+ | Jun 28 15:44:10 eri-4e-963128 ntpd[1501]: Listen normally on 19 eth5 fe80:: | ||
+ | Jun 28 15:44:10 eri-4e-963128 ntpd[1501]: Listen normally on 20 eth4 fe80:: | ||
+ | Jun 28 15:44:10 eri-4e-963128 ntpd[1501]: new interface(s) found: waking up resolver | ||
+ | Jun 28 15:44:41 eri-4e-963128 ntpd[1501]: Deleting interface #20 eth4, fe80:: | ||
+ | Jun 28 15:44:41 eri-4e-963128 ntpd[1501]: Deleting interface #19 eth5, fe80:: | ||
+ | Hint: Some lines were ellipsized, use -l to show in full. | ||
+ | | ||
+ | |||
+ | ntpq -p | ||
+ | | ||
+ | This will display the timeservers found and their statistics | ||
+ | | ||
+ | | ||
+ | ============================================================================= | ||
+ | | ||
+ | +www.bhay.org | ||
+ | +time.netweaver. 85.199.214.98 | ||
+ | *194.80.204.184 | ||
+ | +121.35.213.162. 17.253.34.253 | ||
+ | \\ | ||
+ | \\ | ||
+ | **Set the TimeZone** | ||
+ | \\ | ||
+ | \\ | ||
+ | From your servers command line enter the following: | ||
+ | \\ | ||
+ | Date | ||
+ | \\ | ||
+ | You will see an output similar to the following: | ||
+ | \\ | ||
+ | Fri Apr 26 06:43:49 UTC 2019 | ||
+ | \\ | ||
+ | If the Time Zone needs to be changed, use the following: | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | cd /etc | ||
+ | rm localtime | ||
+ | ls / | ||
+ | ln -s / | ||
+ | </ | ||
+ | Use Date to re-check the current TimeZone | ||
+ | |||
+ | ---- | ||
+ | |||
\\ | \\ | ||
\\ | \\ | ||
Original Post Here[[https:// | Original Post Here[[https:// | ||
+ | \\ | ||
+ | \\ |
wiki/ntp_start_at_boot.1526028435.txt.gz · Last modified: 2023/03/09 22:35 (external edit)