外部サーバーに接続できない場合、PTP4Lは失敗します。

外部サーバーに接続できない場合、PTP4Lは失敗します。

PTP4L PTPサービスを使用してクロックを同期するCentOS 7.8サーバーがあります。外部サーバーと同期していない場合は、サービスが失敗することを願っています--gmCapable=0。外部タイムサーバーに接続できない場合は、ローカル時計をマスターとして使用して、すべてが大丈夫であるという誤った印象を与えます。これが起こらないようにするにはどうすればよいですか?

# service ptp4l status
Redirecting to /bin/systemctl status ptp4l.service
● ptp4l.service - Precision Time Protocol (PTP) service
   Loaded: loaded (/usr/lib/systemd/system/ptp4l.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-05-12 15:38:33 CEST; 13s ago
 Main PID: 48280 (ptp4l)
   CGroup: /system.slice/ptp4l.service
           └─48280 /usr/sbin/ptp4l -f /etc/ptp4l.conf -i enp65s0f1 --gmCapable=0

May 12 15:38:33 eurex-tr5.veloquant.com systemd[1]: Started Precision Time Protocol (PTP) service.
May 12 15:38:33 eurex-tr5.veloquant.com ptp4l[48280]: [149997.679] selected /dev/ptp1 as PTP clock
May 12 15:38:33 eurex-tr5.veloquant.com ptp4l[48280]: [149997.681] port 1: INITIALIZING to LISTENING on INIT_COMPLETE
May 12 15:38:33 eurex-tr5.veloquant.com ptp4l[48280]: [149997.681] port 0: INITIALIZING to LISTENING on INIT_COMPLETE
May 12 15:38:40 eurex-tr5.veloquant.com ptp4l[48280]: [150004.734] port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
May 12 15:38:40 eurex-tr5.veloquant.com ptp4l[48280]: [150004.734] selected local clock 3cecef.fffe.015d03 as best master
May 12 15:38:40 eurex-tr5.veloquant.com ptp4l[48280]: [150004.734] assuming the grand master role

ベストアンサー1

おすすめ記事