VMware Cloud Director アプライアンスの初期展開の後で、NTP サーバの構成を変更できます。

手順

  1. VMware Cloud Director アプライアンス コンソールに、root として直接ログインするか、SSH クライアントを使用して接続します。
  2. NTP サーバを変更するには、/etc/systemd/timesyncd.conf ファイルを編集します。
    /etc/systemd/timesyncd.conf ファイルの内容は、次のようになっている必要があります。複数の NTP サーバを指定するには、スペース区切りリストを使用します。
    # 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
  3. NTP サービスを再起動します。
    systemctl restart systemd-timesyncd.service -l
  4. サービスが正常に実行されていることを確認します。
    timedatectl status
    timedatectl コマンドからのサンプル出力。
    Local time: Tue 2022-12-13 15:29:18 UTC
      Universal time: Tue 2022-12-13 15:29:18 UTC
            RTC time: Tue 2022-12-13 15:29:18
           Time zone: Etc/UTC (UTC, +0000)
     Network time on: yes
    NTP synchronized: yes
     RTC in local TZ: no
    
  5. 時刻を NTP サーバに同期します。
    ntpdate time_server
  6. クラスタ内の各アプライアンスで手順 2 ~ 5 を繰り返します。