[PVE-User] ntp(d) or systemd-timesyncd?

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Oct 6 15:38:39 CEST 2016


On Thu, Oct 06, 2016 at 03:17:03PM +0200, Marco Gaiarin wrote:
> Mandi! Alwin Antreich
>   In chel di` si favelave...
> 
> > > OK, i've removed 'ntp' in 'apt-get install' command on the wiki page.
> > As a remark, you need to configure /etc/systemd/timesyncd.conf with a
> > time source and restart the service systemd-timesyncd.
> 
> Ok, i can add that note on wiki.
> 
> But i think this is a ''general'' note: eg timesync-systemd get
> configured against public NTP server both if i install proxmox or i
> instal debian and i ''upgrade'' it to proxomox.
> 
> And in both way, if i put nodes behind a firewall, i need to setup time
> sync against ''internal'' servers.
> 
> So i think that putting that note on 'debian jessie' page is not so
> relevant... but the only page that cite ntp 'generally' seems:
> 
> 	http://pve.proxmox.com/wiki/Service_daemons#ntp
> 
> 
> I'm a bit confused on where put that note... for now, i've created:
> 
> 	http://pve.proxmox.com/wiki/Configuration_of_Time_Syncronization_(NTP)
> 

I think this might fit better as part of the reference documentation[1].

Note that it also does not make sense to configure both ntpd and
systemd-timesyncd, and that we (currently) have a hard dependency on the
latter. There is a bug report about changing this, to allow setting up
and using arbitrary time synchronization daemons[2], but it has not been
implemented so far. It is possible to manually override the
dependency[3], but this requires monitoring for updates to the original
unit files, which is not very nice.

Long story short: if you want, you could send a patch for the pve-docs
repository to include information on how to setup systemd-timesyncd with
internal NTP servers (see [4] for an intro to our reference
documentation). Otherwise I will do the same, using your wiki article as
a base. When bug#998 is fixed, I would extend this section in the
reference documentation.

Thanks!

1: e.g., here: 
http://pve.proxmox.com/pve-docs/pve-admin-guide.html#_host_system_administration
2: https://bugzilla.proxmox.com/show_bug.cgi?id=998
3: https://forum.proxmox.com/threads/pve-4-1-systemd-timesyncd-and-ceph-clock-skew.27043
4: https://git.proxmox.com/?p=pve-docs.git;a=blob;f=README.adoc




More information about the pve-user mailing list