NTPサーバのAレコードを更新した後、ESXiが時刻同期できなくなる
search cancel

NTPサーバのAレコードを更新した後、ESXiが時刻同期できなくなる

book

Article ID: 431101

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vSphere ESX 7.x VMware vSphere ESX 8.x

Issue/Introduction

免責事項:これは英文の記事「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

Cause

ESXi上のntpdサービスは、起動時に解決したIPアドレスを用いてNTPサーバと通信を行います。

Resolution

以下の手順で、ntpdサービスを再起動します。

1. SSHでESXiに接続
2. 以下のコマンドを実行

/etc/init.d/ntpd restart