免責事項:これは英文の記事「ESXi is unable to synchronize time after updating the A record of the NTP server」の日本語訳です。
記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。
- ESXiがFQDNを用いてNTPサーバを登録している
- NTPサーバのAレコードを更新した後、ESXiがNTPサーバと時刻同期できなくなる
# localcli system ntp get
NtpSettings:
Enabled: true
Log level: warning
PID: xxxxxx
Runtime Seconds: xxxxxx
Servers: ntp.example.org
Service Providing Kernel Time: Network Time Protocol
Time Service Enabled: true
Time Synchronized: false
- ESXiがNTPサーバの古いIPアドレスを参照し続けている
# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
*<OLD IP of NTP Server> xxx.xxx.xxx.xxx 3 u 668 1024 377 8.896 +1.105 0.301
ESXi上のntpdサービスは、起動時に解決したIPアドレスを用いてNTPサーバと通信を行います。
以下の手順で、ntpdサービスを再起動します。
1. SSHでESXiに接続
2. 以下のコマンドを実行
/etc/init.d/ntpd restart