VMware Cloud Director アプライアンスの初期展開の後で、NTP サーバの構成を変更できます。
手順
- VMware Cloud Director アプライアンス コンソールに、root として直接ログインするか、SSH クライアントを使用して接続します。
- NTP サーバを変更するには、/etc/systemd/timesyncd.conf ファイルを編集します。
/etc/systemd/timesyncd.conf ファイルの内容は、次のようになっている必要があります。
# This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Entries in this file show the compile time defaults. # You can change settings by editing this file. # Defaults can be restored by simply deleting this file. # # See timesyncd.conf(5) for details. [Time] #FallbackNTP=time1.sample-time-server.com time2.sample-time-server.com time3.sample-time-server.com time4.sample-time-server.com NTP=time.sample-time-server.com
- NTP サービスを再起動します。
systemctl restart systemd-timesyncd.service -l
- サービスが正常に実行されていることを確認します。
timedatectl timesync-status
timedatectl コマンドからのサンプル出力。Server: server_IP_address (time.sample-time-server.com) Poll interval: 34min 8s (min: 32s; max 34min 8s) Leap: normal Version: 4 Stratum: 3 Reference: ABC1A16 Precision: 1us (-23) Root distance: 70.114ms (max: 5s) Offset: +789us Delay: 2.443ms Jitter: 338us Packet count: 32
- 時刻を NTP サーバに同期します。
ntpdate time_server
- クラスタ内の各アプライアンスで手順 2 ~ 5 を繰り返します。