System Clock Not Syncronised

antogish

New Member
Sep 29, 2023
2
0
1
I am new to Promox. I changed the MB of a new Promox server I built from an ASUS to a Supermicro MB. I then noticed the Promox time was wrong and changed the time in BIOS. Proxmox time was then showing 1 hour forward. I was unable to sync the time. I changed the time manually. If I do timedatectl status I get System clock syncronised:no

I am alos getting the following errors in syslog:

Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-node/proxmox1: -1
Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-vm/400: -1
Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-vm/201: -1
Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-vm/200: -1
Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-vm/500: -1
Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-vm/202: -1
Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-storage/proxmox1/local-lvm: -1
Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-storage/proxmox1/Storage: -1
Sep 29 18:54:00 proxmox1 pmxcfs[6667]: [status] notice: RRDC update error /var/lib/rrdcached/db/pve2-storage/proxmox1/local: -1

I think rrdcached and the system time are connected? I have tried this:

cd /var/lib/rrdcached/
systemctl stop rrdcached
mv rrdcached rrdcached.bck
systemctl start rrdcached
systemctl restart pve-cluster

When I type mv rrdcached rrdcached.bck I get error:

3mv: cannot stat 'rrdcached': No such file or directory

Anyone know how I can sync the system clock and resolve the RRDC errors?
 
cd /var/lib/rrdcached/
systemctl stop rrdcached
mv rrdcached rrdcached.bck
systemctl start rrdcached
systemctl restart pve-cluster
you "cd"'ed one level deeper than you needed. Change the sequence to:
cd /var/lib/
systemctl stop rrdcached
mv rrdcached rrdcached.bck
systemctl start rrdcached
systemctl restart pve-cluster

For time sync, follow this wiki: https://pve.proxmox.com/wiki/Time_Synchronization


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
you "cd"'ed one level deeper than you needed. Change the sequence to:
cd /var/lib/
systemctl stop rrdcached
mv rrdcached rrdcached.bck
systemctl start rrdcached
systemctl restart pve-cluster

For time sync, follow this wiki: https://pve.proxmox.com/wiki/Time_Synchronization


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox

The CD worked, thank you.

I have found this list of NTP servers for UK:

https://www.ntppool.org/zone/uk

server 0.uk.pool.ntp.org
server 1.uk.pool.ntp.org
server 2.uk.pool.ntp.org
server 3.uk.pool.ntp.org

I can see chrony.conf (attached). Do I add this list of server to the chrony.conf (and if so in which section) or do I add it to sourcedir /etc/chrony/sources.d as indicated in chrony.conf???
 

Attachments

  • Chrony.conf.png
    Chrony.conf.png
    355.2 KB · Views: 20
Last edited:
The man pages in Linux are always great source of information.
Keep in mind that NTP servers in UK are functionally identical to the global ones used by default. Its very likely the DNS will resolve Debian pool to something local in UK. The primary reason to use country specific NTP is to pin your resolution locally.

That said, you can either update the primary configuration file or add a local configuration - again the end result is the same.
Given that you want to add new servers, you will need to use "server" directive (https://chrony-project.org/doc/3.4/chrony.conf.html)

The reason one might use local configuration file is that the primary config file may be be updated by OS update. In most cases developers try to avoid this but it could happen.

The format of the local file is the same as global. Local entries overwrite and in some cases add to global. I.e. if you just add a few "server" lines, they will be added to total number of time sources.

https://www.redhat.com/sysadmin/chrony-time-services-linux


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!