Re: time/ntp[d]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Denniston wrote:
> > One other bit of info, if I turn off ntpd over night, the clock loses
> > time (new battery required?)

The various oscillators in a typical computer aren't high-precision clocks. 
Without NTP you'll have to adjust the time frequently.

If you turn the computer off, and when you turn it on again it thinks it's the 
first of January 1990 or something, then you probably need to replace the 
battery.

> no, unlike MS, Unix system clock uses the frequency ticker on the CPU to
> keep time, which is independent of the battery backed TOY clock.
> i.e., after shutting ntpd off run:
> date;/sbin/hwclock --show;date
> then after you have slept
> date;/sbin/hwclock --show;date
>
> I expect the time from the date commands to have drifted as you are seeing,
> but the time from hwclock will have drifted differently.
> date -> returns system time
> hwclock -> returns TOY clock time.

When NTPD is running, however, it will inform Linux that the system time is 
synchronized to a time source, and Linux will then keep the hardware clock in 
synch with the system time. You may need to run "hwclock --systohc" once if 
it's off by half an hour or more, but after that it should stay correct as 
long as NTPD is running. That way, if the system crashes the time should 
still be reasonably right when it comes back up.

Björn Persson

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux