I can't reboot a server to set the hardware clock to UTC time, but CentOS was installed with the assumption that the PC was running UTC. Is it possible to update the hardware clock to the right time and therefore allow CentOS to maintain the right time without rebooting? I am hoping to use this route for consistency versus changing how CentOS interprets the time so all servers are the same.
Thanks! jlc
On Thu, Feb 07, 2008 at 09:43:31AM -0700, Joseph L. Casale enlightened us:
I can't reboot a server to set the hardware clock to UTC time, but CentOS was installed with the assumption that the PC was running UTC. Is it possible to update the hardware clock to the right time and therefore allow CentOS to maintain the right time without rebooting? I am hoping to use this route for consistency versus changing how CentOS interprets the time so all servers are the same.
man hwclock
On Thu, Feb 07, 2008 at 09:57:06AM -0700, Joseph L. Casale enlightened us:
man hwclock
Matt, I saw this, but maybe I misunderstood this: I thought it adjusts it in Linux only, but reading now shows it does! I did see a note that changes now won't take place until the next boot? Anyway to get around that?
I usually do both a hctosys and systohc to make sure everything is in sync. I've never had to reboot, but perhaps I just didn't notice...
Matt
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Joseph L. Casale wrote:
I can't reboot a server to set the hardware clock to UTC time, but CentOS was installed with the assumption that the PC was running UTC. Is it possible to update the hardware clock to the right time and therefore allow CentOS to maintain the right time without rebooting? I am hoping to use this route for consistency versus changing how CentOS interprets the time so all servers are the same.
rdate -s <ntp.clock.of.choice> e.g. rdate -s clock.psu.edu
hwclock --systohc
Barry