- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: time syncs after restarting ntpd but, within a...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- Report Inappropriate Content
тАО09-27-2006 07:57 AM
тАО09-27-2006 07:57 AM
time syncs after restarting ntpd but, within a few minutes, it's off again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 08:57 AM
тАО09-27-2006 08:57 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
NTP will only adjust minor drift.
Try running the command
ntpq -c peers
This will show you if you have synced with
other server and how far off you are.
You may be syncing to one server with ntpdate
when starting ntp and switching to another
once ntpd start running.
Check the contents of ntp.conf and the
command line used to start ntpd.
If the contents of the ntp.drift file are
less than +/1 500 and not zero then ntp is
managing to sync the clock.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 09:06 AM
тАО09-27-2006 09:06 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
You should use ntpq -pn to view if you are using a NTP server, the server markes with a * is your current ntp server.
Ensure that your timezone configuration is correct. Remove the local clock from the configuration file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 09:14 AM
тАО09-27-2006 09:14 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
ntp won't really sync if you are off too far. You may need to manually set the clock.
You may need to replace the clock battery if the drift problem is servere. If the clock itself is a brick its system board replacement time.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2006 01:16 AM
тАО09-28-2006 01:16 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2006 01:56 AM
тАО09-28-2006 01:56 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
service ntpd stop
ntpdate -b ntp_server
service ntpd start
Post the results of the command ntpdate -b, the ntp.conf and the /etc/sysconfig/clock file.
Also post the results of:
date +%z
date +%Z
Of your server and another server that actually works the time synchronization.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2006 03:13 AM
тАО09-28-2006 03:13 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
RPSPRO.wescodist.com# ntpdate -b 207.241.222.30
28 Sep 11:07:00 ntpdate[7719]: step time server 207.241.222.30 offset -2332.6316
45 sec
**********************
/etc/ntp.conf file
restrict default ignore
restrict 207.241.222.11 mask 255.255.255.255 nomodify notrap noquery
restrict 207.241.222.30 mask 255.255.255.255 nomodify notrap noquery
restrict 127.0.0.1
driftfile /etc/ntp/drift
logfile /var/log/ntp.log
#server time_server
server 207.241.222.30
server 207.241.222.11
server 66.187.233.4
fudge 127.127.1.0 stratum 10
broadcastdelay 0.008
authenticate yes
keys /etc/ntp/keys
***************************
/etc/sysconfig/clock file
ZONE="America/New_York"
UTC=false
ARC=false
*****************************
*****************************
This server does work
B1116-> ntpdate -b 207.241.222.30
28 Sep 11:07:18 ntpdate[17869]: step time server 207.241.222.30 offset 0.004804
sec
***********************
/etc/ntp.conf file
restrict default ignore
restrict 207.241.222.11 mask 255.255.255.255 nomodify notrap noquery
restrict 207.241.222.30 mask 255.255.255.255 nomodify notrap noquery
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
logfile /var/log/ntp.log
#server time_server
server 207.241.222.11
server 207.241.222.30 prefer
server 66.187.233.4
fudge 127.127.1.0 stratum 10
broadcastdelay 0.008
authenticate yes
keys /etc/ntp/keys
***************************
/etc/sysconfig/clock file
ZONE="America/New_York"
UTC=false
ARC=false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2006 05:10 AM
тАО09-29-2006 05:10 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2006 12:42 PM
тАО10-02-2006 12:42 PM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
Can you post the output of ntpq -pn please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2006 01:23 AM
тАО10-03-2006 01:23 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
remote refid st t when poll reach delay offset jitter
==============================================================================
207.241.222.30 192.5.41.209 2 u 28 64 1 1.108 -0.146 0.001
207.241.222.11 .INIT. 16 u - 64 0 0.000 0.000 4000.00
66.187.233.4 .INIT. 16 u - 64 0 0.000 0.000 4000.00
*******************************************
Keep in mind, when I manually stop and restart ntpd my server syncs with the ntp server. But it gets way out of sync when I just let it go. Also, if I turn off ntp the clock seems to keep good time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2006 06:43 AM
тАО10-03-2006 06:43 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2006 06:46 AM
тАО10-03-2006 06:46 AM
Re: time syncs after restarting ntpd but, within a few minutes, it's off again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2006 06:48 AM
тАО10-03-2006 06:48 AM