Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- Hardware clock,
General
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-01-2007 12:24 AM
03-01-2007 12:24 AM
Hi,
i have question regarding NTP, system clock and hardware clock.
I have ntp server configured and this would sync only system clock right? how to sync the system clock with hardware clock.
does operating system periodically checks the system clock changes and update with hardware clock? how to automate this process.
thanks
naga
i have question regarding NTP, system clock and hardware clock.
I have ntp server configured and this would sync only system clock right? how to sync the system clock with hardware clock.
does operating system periodically checks the system clock changes and update with hardware clock? how to automate this process.
thanks
naga
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-01-2007 01:06 AM
03-01-2007 01:06 AM
Solution
First, some definitions:
- hardware clock = the battery-backed clock on the system board, this is the clock that keeps time when the system is not running.
- system clock = the OS's idea of the current time. At system startup, in a very early phase, the time of the hardware clock is copied to the system clock with "hwclock --hctosys" or a similar command.
When the system is running, the system clock is the "primary" clock. If you don't use ntpd, you must use the "hwclock" command to adjust the hardware clock. The command to copy the system time into hardware clock is "hwclock --systohc".
If you are running ntpd, it will access the kernel's timekeeping functions and report when an accurate timesource is available. When the ntpd has properly synchronized with the timeserver(s), the OS kernel will automatically update the hardware clock according to the system clock. This update happens at 11-minute intervals, if I remember correctly.
- hardware clock = the battery-backed clock on the system board, this is the clock that keeps time when the system is not running.
- system clock = the OS's idea of the current time. At system startup, in a very early phase, the time of the hardware clock is copied to the system clock with "hwclock --hctosys" or a similar command.
When the system is running, the system clock is the "primary" clock. If you don't use ntpd, you must use the "hwclock" command to adjust the hardware clock. The command to copy the system time into hardware clock is "hwclock --systohc".
If you are running ntpd, it will access the kernel's timekeeping functions and report when an accurate timesource is available. When the ntpd has properly synchronized with the timeserver(s), the OS kernel will automatically update the hardware clock according to the system clock. This update happens at 11-minute intervals, if I remember correctly.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-02-2007 03:33 AM
03-02-2007 03:33 AM
Re: Hardware clock,
crontab the following command:
hwclock --systohc
hwclock --systohc
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP