Troubleshoot ntp issues

From Notes_Wiki
Revision as of 13:11, 15 April 2014 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Ntp_server_configuration|Ntp server configuration</yambe:breadcrumb> =Troubleshoot ntp issues= ==ntpd process dies on VMs== ntpd process will die on VM if ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Ntp_server_configuration|Ntp server configuration</yambe:breadcrumb>

Troubleshoot ntp issues

ntpd process dies on VMs

ntpd process will die on VM if VM is suspended and later resumed. This will cause serious problems as VM will not realize it was suspended and the time would be wrong. Thus ensuring VMs have correct time after they are resumed requires special setup. One simple option is to create a executable shell script which restarts ntpd and put it in /etc/cron.hourly to be run every hour. This way in the worst case within an hour after resuming ntpd will start again and start correcting the clock.