On Tue, Mar 05, 2019 at 01:16:27PM +0000, C. Devereaux wrote:
> How do you specify the UTC offset? (I’m afraid 37 will change to 38, etc)

There is a "utc_offset" option.

> > I think you need one of them to be synchronized to the system clock
> (using very small PI constants) as I suggested before. The other
> interface needs to be synchronized to the first interface using
> default PI constants or linreg. ptp4l needs to be configured with the
> boundary_clock_jbod option.

> So do you mean, on server1 for both on eth2  (server1 to server 2) and eth3 
> (server 1 to server 3)
> /usr/sbin/phc2sys -s CLOCK_REALTIME -c %i -r -r -P 1e-4 -I 1e-8 -O37

In this case only one interface should be synchronized directly to the
system clock (synchronized by NTP). -r doesn't do anything without -a.

phc2sys -s CLOCK_REALTIME -c eth1 -P 1e-4 -I 1e-8 -O 37
phc2sys -s eth1 -c eth2 -O 0

> On server 3 and server 2 direct link to server1:
> /usr/sbin/phc2sys -s eth1 -c %i -r -r E lingreg
> On server 3 and server 2 direct link to eachother:
> /usr/sbin/phc2sys -s CLOCK_REALTIME -c %i  -r -r-P 1e-4 -I 1e-8 
> --boundary_clock_jbod 1

I'm not sure what this is supposed to do. The jbod option belongs to
ptp4l.

There can be only one process synchronizing each clock. A single
phc2sys -a using one or two -r should be enough. When the server 1
goes down, the other servers will synchronize to one of their
interfaces (or system clock with -r -r). When server 1 is back, they
will quickly resynchronize with it. That may or may not be what you
want.

-- 
Miroslav Lichvar


_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to