LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-27-2008, 03:49 AM   #1
scbops
Member
 
Registered: Feb 2006
Posts: 97

Rep: Reputation: 15
How can I reduce ntp server time?


My ntp server is running faster than 30 minutes from actual time. How can correct the time without effecting the any application in ntp server and ntp clients

Note: - I have reduce the time once (some time back) using date command it was effected to My ntp server application (db2 database) and it got stuck.

I would like to reduce time once in 5 minutes by 1 minute. Is there a ntp command to do this?


My OS is RHEL 4.3
 
Old 06-27-2008, 04:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You can't easily do that with single commands, you could write a shell script to step it slowly, but the only real option would be the -B option on the ntpdate commmand, which will slew a BIG time difference rather than step it. 30 minutes is a BIG BIG time though, and looking at the ntpd manpage the maximum slew rate is 0.5ms/s, which for a 30 minute correction would equate to about 1000 hours (41 days) to correct the time if that still applies here.

http://www.eecis.udel.edu/~ntp/ntp_s...l/ntpdate.html
http://www.eecis.udel.edu/~ntp/ntp_spool/html/ntpd.html
 
Old 06-27-2008, 08:12 AM   #3
andymalato
LQ Newbie
 
Registered: Jun 2006
Distribution: Red Hat, Solaris, FreeBSD
Posts: 20

Rep: Reputation: 0
I would schedule some downtime for this system, shutdown db2, correct the time, then bring it back online.

HTH.
 
Old 06-30-2008, 12:23 AM   #4
scbops
Member
 
Registered: Feb 2006
Posts: 97

Original Poster
Rep: Reputation: 15
I have corrected the time in several times in the pass (once in an every 7-8 months).
I appreciate if someone can provide the direct ntp command for this.
 
Old 07-02-2008, 03:51 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
as above, just a standard ntpdate with the -B option. Once the time is correct then you should run the ntpd service to constantly keep it accurate.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP server is not accounting for time change Thaidog Linux - General 1 03-31-2008 12:26 PM
NTP Server giving central time instead of eastern time wjleon Linux - Networking 3 11-01-2007 04:04 PM
Running your own NTP Time Server darkarcon2015 Red Hat 1 05-16-2006 12:06 PM
NTP Time Server on FC4 jdavidbakr Linux - Software 2 08-25-2005 08:44 AM
setting my time server (ntp) Moses420ca Linux - Newbie 9 08-28-2003 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration