dmizer
October 13th, 2008, 12:43 AM
I am running an ubuntu cli web server in VMware. Unfortunately, the server time is always incorrect because of this more than annoying bug:
/dev/vmmon[30596]: host clock rate change request 8 -> 11
The "solution" posted here: http://communities.vmware.com/message/820186 is to filter these messages out of the log. This is great, except when you consider that the guest time is also important.
In an effort to overcome this malfunction, I created a script and placed it in cron hourly so my server's clock would be checked and updated every hour.
Here is my /etc/cron.hourly script:
#!/bin/sh
ntpdate jp.pool.ntp.org ntp.ubuntu.com
I have tried all the solutions provided in this thread: http://ubuntuforums.org/showthread.php?t=324842
The time is correctly updated if I manually run this command:
ntpdate jp.pool.ntp.org
However, when I edit files and make posts on my server, the date is still shown as Oct 8th. It's also still wrong after rebooting the server, and/or opening a new ssh session.
Interestingly here's the output when I run the enough:
$ date
Mon Oct 13 12:57:23 JST 2008
$ sudo /etc/cron.hourly/ntpdate
8 Oct 13:17:03 ntpdate[11299]: no servers can be used, exiting
Note: this DID work. It worked for about a week, and apparently stopped working around the 8th of October.
Here's some interesting and probably relevant dmesg output:
[3210581.337527] Clocksource tsc unstable (delta = 4689583361 ns)
[3210581.339302] Time: acpi_pm clocksource has been installed.
I'm stumped.
/dev/vmmon[30596]: host clock rate change request 8 -> 11
The "solution" posted here: http://communities.vmware.com/message/820186 is to filter these messages out of the log. This is great, except when you consider that the guest time is also important.
In an effort to overcome this malfunction, I created a script and placed it in cron hourly so my server's clock would be checked and updated every hour.
Here is my /etc/cron.hourly script:
#!/bin/sh
ntpdate jp.pool.ntp.org ntp.ubuntu.com
I have tried all the solutions provided in this thread: http://ubuntuforums.org/showthread.php?t=324842
The time is correctly updated if I manually run this command:
ntpdate jp.pool.ntp.org
However, when I edit files and make posts on my server, the date is still shown as Oct 8th. It's also still wrong after rebooting the server, and/or opening a new ssh session.
Interestingly here's the output when I run the enough:
$ date
Mon Oct 13 12:57:23 JST 2008
$ sudo /etc/cron.hourly/ntpdate
8 Oct 13:17:03 ntpdate[11299]: no servers can be used, exiting
Note: this DID work. It worked for about a week, and apparently stopped working around the 8th of October.
Here's some interesting and probably relevant dmesg output:
[3210581.337527] Clocksource tsc unstable (delta = 4689583361 ns)
[3210581.339302] Time: acpi_pm clocksource has been installed.
I'm stumped.