How to use Proxmox NTP in a cluster setup?

MartinRTX

New Member
Jul 5, 2017
6
0
1
25
Hi Everyone. A friend and i are setting up a Proxmox cluster with 2 servers. Right now both server can't really talk because they don't use the same time. We have tried to setup NTP on the server without any luck. The time wont change. We have used this guide: https://pve.proxmox.com/wiki/Configuration_of_Time_Syncronization_(NTP) and tried with the "systemd-timesyncd" settings. NTPD is for some reason not installed on our promox servers.

Hope someone out there can help!

We use Promox 4.4
 
NTPD is for some reason not installed on our promox servers.

Then install it :-D

Code:
apt-get install ntp

Then check if you're getting synchronized:

Code:
ntpq -c peers -n

If you want to set the time "by hard", just install ntpdate:

Code:
apt-get install ntpdate

And then set the initially, afterwards use ntp to keep it up-to-date:

Code:
root@proxmox:~# systemctl stop ntp

root@proxmox:~# ntpdate time.google.com
5 Jul 22:47:04 ntpdate[13040]: adjust time server 216.239.35.8 offset -0.000606 sec

root@proxmox:~# systemctl start ntp
 
Ok, we fixed it. We found out that we had given the wrong default gateway so they did not get the right time. Thanks for the help!
 

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!