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단계를 반복합니다.