On a 3 node cluster we have a issue since we use PVE 4.1-22 (did a clean install, not upgraded). The PVE cluster is also the CEPH storage cluster (same nodes). Systemd-timesyncd seems to be less stable/accurate then NTP, therefor the CEPH cluster sees "clock skews" every couple of hours (we noticed this because we run a script every minute and if health is not "HEALTH_OK", the script send us an e-mail). So I installed NTP on all nodes and run:
# timedatectl set-ntp false
# systemctl stop systemd-timesyncd
# systemctl stop systemd-timedated
# systemctl disable systemd-timesyncd
# systemctl disable systemd-timedated
This works excellent as long as systemd-timesyncd is not running and the node isn't rebooted. When the node is rebooted, despite the "systemctl disable systemd-timesyncd", systemd-timesyncd is started and we've got "clock skews" again after some hours (until we stop systemd-timesyncd manually and let NTP do his job).
"systemctl status systemd-timesyncd" after reboot:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled)
Active: active (running) since Fri 2016-04-22 11:37:13 CEST; 1min 55s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 767 (systemd-timesyn)
Status: "Using Time Server 146.185.139.19:123 (2.debian.pool.ntp.org)."
CGroup: /system.slice/systemd-timesyncd.service
└─767 /lib/systemd/systemd-timesyncd
"systemctl status systemd-timesyncd" after I stopped systemd-timesyncd manually:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled)
Active: inactive (dead) since Fri 2016-04-22 11:40:35 CEST; 6s ago
Docs: man:systemd-timesyncd.service(8)
Process: 767 ExecStart=/lib/systemd/systemd-timesyncd (code=exited, status=0/SUCCESS)
Main PID: 767 (code=exited, status=0/SUCCESS)
Status: "Idle."
Any ideas? Is systemd-timesyncd depended/started by a PVE daemon?
# timedatectl set-ntp false
# systemctl stop systemd-timesyncd
# systemctl stop systemd-timedated
# systemctl disable systemd-timesyncd
# systemctl disable systemd-timedated
This works excellent as long as systemd-timesyncd is not running and the node isn't rebooted. When the node is rebooted, despite the "systemctl disable systemd-timesyncd", systemd-timesyncd is started and we've got "clock skews" again after some hours (until we stop systemd-timesyncd manually and let NTP do his job).
"systemctl status systemd-timesyncd" after reboot:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled)
Active: active (running) since Fri 2016-04-22 11:37:13 CEST; 1min 55s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 767 (systemd-timesyn)
Status: "Using Time Server 146.185.139.19:123 (2.debian.pool.ntp.org)."
CGroup: /system.slice/systemd-timesyncd.service
└─767 /lib/systemd/systemd-timesyncd
"systemctl status systemd-timesyncd" after I stopped systemd-timesyncd manually:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled)
Active: inactive (dead) since Fri 2016-04-22 11:40:35 CEST; 6s ago
Docs: man:systemd-timesyncd.service(8)
Process: 767 ExecStart=/lib/systemd/systemd-timesyncd (code=exited, status=0/SUCCESS)
Main PID: 767 (code=exited, status=0/SUCCESS)
Status: "Idle."
Any ideas? Is systemd-timesyncd depended/started by a PVE daemon?
Last edited: