Skip to content

Commit

Permalink
check-before-deployment: Add info about chronyd/chronyc on CentOS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed May 20, 2021
1 parent d76e5bd commit c426d9b
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions check-before-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,22 @@ To check whether the NTP service is installed and whether it synchronizes with t
Active: active (running) since 一 2017-12-18 13:13:19 CST; 3s ago
```

- If it returns `Unit ntpd.service could not be found.` then try the following:

{{< copyable "shell-regular" >}}

```bash
sudo systemctl status cronyd.service
```

```
chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-04-05 09:55:29 EDT; 3 days ago
```

This would mean that your system is configured to use `chronyd` instead of `ntpd` to do synchronization with NTP. If this is the case proceed to step 3.

2. Run the `ntpstat` command to check whether the NTP service synchronizes with the NTP server.

> **Note:**
Expand Down Expand Up @@ -221,6 +237,48 @@ To check whether the NTP service is installed and whether it synchronizes with t
Unable to talk to NTP daemon. Is it running?
```

3. Run the `chronyc tracking` command to check wheter the Chrony service synchronizes with the NTP server.

> **Note:**
>
> This only applies to system that use Chrony instead of NTPd.

{{< copyable "shell-regular" >}}

```bash
chronyc tracking
```

- If it returns `Leap status : Normal`, then the synchronization process is normal.

```
Reference ID : 5EC69F0A (ntp1.time.nl)
Stratum : 2
Ref time (UTC) : Thu May 20 15:19:08 2021
System time : 0.000022151 seconds slow of NTP time
Last offset : -0.000041040 seconds
RMS offset : 0.000053422 seconds
Frequency : 2.286 ppm slow
Residual freq : -0.000 ppm
Skew : 0.012 ppm
Root delay : 0.012706812 seconds
Root dispersion : 0.000430042 seconds
Update interval : 1029.8 seconds
Leap status : Normal
```

- The following situation indicates the synchronization is not synchronizing normally:

```
Leap status : Not synchronised
```

- The following situation indicates the `chronyd` service is not running normally:

```
506 Cannot talk to daemon
```

To make the NTP service start synchronizing as soon as possible, run the following command. Replace `pool.ntp.org` with your NTP server.

{{< copyable "shell-regular" >}}
Expand Down

0 comments on commit c426d9b

Please sign in to comment.