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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux