1

I am trying to synchronize clocks using ptp4l and phc2sys.

I followed this instructions. Unfortunately, I am seeing clock jumps: In 5 of the 6 servers, clock jumps by 2 hours. In the image, it goes from 9:52 to 11:46.

enter image description here

sourav c.
  • 44,037
  • 20
  • 101
  • 128

1 Answers1

1

The issue was arising because of different timestamps on the CPU clock and the NIC. NIC was two hours ahead and caused the time to change for all other systems.

These two commands worked for me:

sudo ptp4l -i <interface> -2 
sudo phc2sys -a -rr 

-2 IEEE 802.3

-i interface

-a turn on autoconfiguration

-rr synchronize system (realtime) clock and also consider it as a time source