疯狂的虚拟机时钟漂移

疯狂的虚拟机时钟漂移

这是从在 ESX5 上运行的 Ubuntu 10.10 VM 中获取的:

Nov  3 21:58:50 server1 ntpd[21169]: adjusting local clock by 31.187370s
Nov  3 22:02:36 server1 ntpd[21169]: adjusting local clock by 31.159808s
Nov  3 22:05:18 server1 ntpd[21169]: adjusting local clock by 31.067579s
Nov  3 22:07:59 server1 ntpd[21169]: adjusting local clock by 30.952187s
Nov  3 22:11:38 server1 ntpd[21169]: adjusting local clock by 30.890147s

根据VMWare 知识库Ubuntu 10.10 不需要进行任何内核调整就能保持其标准。

尤其奇怪的是,这种变化似乎相当一致。

任何帮助都值得感激!

更新

我一直在日志上运行 tail 来观察这个,然后刚刚回过头来发现每次轮询时距离都在减少,这很奇怪......

Nov  3 21:58:50 server1 ntpd[21169]: adjusting local clock by 31.187370s
Nov  3 22:02:36 server1 ntpd[21169]: adjusting local clock by 31.159808s
Nov  3 22:05:18 server1 ntpd[21169]: adjusting local clock by 31.067579s
Nov  3 22:07:59 server1 ntpd[21169]: adjusting local clock by 30.952187s
Nov  3 22:11:38 server1 ntpd[21169]: adjusting local clock by 30.890147s
Nov  3 22:15:56 server1 ntpd[21169]: adjusting local clock by 30.797336s
Nov  3 22:19:02 server1 ntpd[21169]: adjusting local clock by 30.645081s
Nov  3 22:22:30 server1 ntpd[21169]: adjusting local clock by 30.607198s
Nov  3 22:23:44 server1 ntpd[21169]: adjusting local clock by 30.542707s
Nov  3 22:27:56 server1 ntpd[21169]: adjusting local clock by 30.413376s
Nov  3 22:29:45 server1 ntpd[21169]: adjusting local clock by 30.322777s
Nov  3 22:33:14 server1 ntpd[21169]: adjusting local clock by 30.259502s
Nov  3 22:36:17 server1 ntpd[21169]: adjusting local clock by 30.181322s
Nov  3 22:38:30 server1 ntpd[21169]: adjusting local clock by 30.103619s
Nov  3 22:40:34 server1 ntpd[21169]: adjusting local clock by 30.074569s
Nov  3 22:41:43 server1 ntpd[21169]: adjusting local clock by 29.996409s
Nov  3 22:45:26 server1 ntpd[21169]: adjusting local clock by 29.902263s
Nov  3 22:48:04 server1 ntpd[21169]: adjusting local clock by 29.791393s
Nov  3 22:51:21 server1 ntpd[21169]: adjusting local clock by 29.763237s
Nov  3 22:54:22 server1 ntpd[21169]: adjusting local clock by 29.619058s
Nov  3 22:57:34 server1 ntpd[21169]: adjusting local clock by 29.510606s
Nov  3 23:00:43 server1 ntpd[21169]: adjusting local clock by 29.455033s
Nov  3 23:03:36 server1 ntpd[21169]: adjusting local clock by 29.390589s
Nov  3 23:05:05 server1 ntpd[21169]: adjusting local clock by 29.264441s
Nov  3 23:09:19 server1 ntpd[21169]: adjusting local clock by 29.189259s
Nov  3 23:11:48 server1 ntpd[21169]: adjusting local clock by 29.101459s
Nov  3 23:15:14 server1 ntpd[21169]: adjusting local clock by 29.017875s
Nov  3 23:18:14 server1 ntpd[21169]: adjusting local clock by 28.906337s

答案1

确保主机的时钟(硬件)和 NTP 正确。是吗?如果不是,您的客户将很难保持时间一致...

您的客户机上安装了 VMWare 工具吗?

答案2

事实证明,因为我没有在 ntp.conf 中的任何服务器上指定 iburst 标志,所以它没有进行大的跳跃来纠正时间。大约 12 小时后,它自行稳定下来,现在非常准确。

相关内容