Você pode alterar a configuração do servidor NTP após a implantação inicial do dispositivo do VMware Cloud Director.

Procedimento

  1. Faça login diretamente ou usando um cliente SSH no console do dispositivo do VMware Cloud Director como root.
  2. Para modificar o servidor NTP, edite o arquivo /etc/systemd/timesyncd.conf.
    O conteúdo do arquivo /etc/systemd/timesyncd.conf deve ser semelhante ao seguinte. Para especificar vários servidores NTP, use uma lista delimitada por espaço.
    # 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. Reinicie o serviço NTP.
    systemctl restart systemd-timesyncd.service -l
  4. Verifique se o serviço está funcionando corretamente.
    timedatectl status
    Exemplo de saída do comando 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. Sincronize a hora com o servidor NTP.
    ntpdate time_server
  6. Repita as etapas 2 a 5 em cada dispositivo do cluster.