Bue*_*bor 7 linux debian time date
在 GNU/Linux/Debian 中遇到系统日期/时间问题:日期、时间、cron 的时间过快。sleep 命令工作正常,文件修改时间正确。通过命令解释的问题:
$ date
Mon Sep 12 05:27:46 CEST 2011
$ time sleep 1
real 71m13.403s
user 0m0.008s
sys 0m0.012s
$ date
Fri Sep 16 22:00:02 CEST 2011
Run Code Online (Sandbox Code Playgroud)
看起来,当命令“sleep 1”运行并且输入命令“date”时,4 天过去了。嗯,实际上没有。欢迎提出有关正在发生的事情的想法。
$ uname -a
Linux the_hostname 2.6.18-238.19.1.el5xen #1 SMP Fri Jul 15 08:16:59 EDT 2011 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
是的,它在虚拟机中。
$ hwclock --debug
hwclock from util-linux-ng 2.13.1.1
hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
No usable clock interface found.
Cannot access the Hardware Clock via any known method.
Run Code Online (Sandbox Code Playgroud)
用ntp设置时间后还会出现这种情况吗?否则尝试使用 RTC。我还在论坛的某个地方读到,如果是 64 位电脑问题,有人建议使用 noapictimer 内核选项来修复它。您使用什么系统以及哪个内核版本会很有趣,以便更好地查明故障
编辑:我认为这与 xen 内核和时间问题有关。检查这些页面:
(时间倒退问题)
http://lists.xensource.com/archives/html/xen-users/2010-01/msg00037.html
(快时钟)
http://idolinux.blogspot.com/2009/02/xen-and-fast-clock.html
或 google 查找 xen 内核和时间问题。关于这个话题有很多讨论
| 归档时间: |
|
| 查看次数: |
1292 次 |
| 最近记录: |