Because we replaced chrony with timesyncd in v9.9, there’s a need to configure NTP using the procedure below.
Note: This procedure is valid only in VA v9.9 and later.
Procedure
|
1. |
To verify the currently used service for NTP, run the command below (inactive\dead or running\active): |
systemctl list-units --type=service -all | grep timesyncd
It should look like this when timesyncd is used:
|
2. |
If this is not the current state, run the following to disable\enable the service: |
systemctl stop systemd-timesyncd.service
systemctl disable systemd-timesyncd.service
|
3. |
To check if the clock is synchronized - run: |
timedatectl | grep synchronized
|
4. |
If synced, it should display yes, as shown: |
|
5. |
If it’s not synced, you can troubleshoot it using the following commands: |
|
t |
Check the service status: |
systemctl status systemd-timesyncd
For example:
|
t |
You can restart the service using: |
systemctl restart systemd-timesyncd
Configuration
|
1. |
The configuration is done via the inventory.yaml file as shown below: |
|
3. |
Specify the server from which to fetch time for timedatectl and timesyncd in /etc/systemd/timesyncd.conf. |
|
4. |
Additional config files can be stored in /etc/systemd/timesyncd.conf.d/. |
|
5. |
The entries for NTP= and FallbackNTP= are space-separated lists. |
|
6. |
For more details, run: |
man timesyncd.conf
Comments
0 comments
Please sign in to leave a comment.