Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th March 2008, 13:55
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
Default NTPD does not sync time

I'm running centos 5.1

My problem is that ntpd does not sync time. After I leave server running for a few days it starts to fall behind. IF I leave it for a week it a few days behind.

I fix it now by running

/etc/init.d/ntpd stop

ntpdate pool.ntp.org

/etc/init.d/ntpd start

I'm running this on vmware virtual system

How do I fix this?
Reply With Quote
Sponsored Links
  #2  
Old 8th March 2008, 19:00
jnsc jnsc is offline
rotaredoM
 
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 525
Thanks: 10
Thanked 172 Times in 77 Posts
Default

what is the output of
Code:
ntpq
and then
Code:
peers
Reply With Quote
  #3  
Old 8th March 2008, 23:11
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jnsc
what is the output of
Code:
ntpq
and then
Code:
peers
see attached file
Attached Images
 
Reply With Quote
  #4  
Old 9th March 2008, 15:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please install the VMware Tools: http://www.howtoforge.com/vmware_tools_on_linux
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 10th March 2008, 09:43
jorizzzz jorizzzz is offline
Member
 
Join Date: May 2007
Location: Soest, Netherlands
Posts: 81
Thanks: 1
Thanked 4 Times in 2 Posts
Send a message via MSN to jorizzzz
Default

Falko,

Why should you install the vmware tools for this problem?! Aren't the vmware tools just enhancements for the GUI?

I've got the exact same problem and i've resolved it (temporarily) with a script that runs: ntpdate ntp.xs4all.nl every half hour. Not the best solution but it works for now.
Reply With Quote
  #6  
Old 10th March 2008, 14:38
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jorizzzz
Falko,

Why should you install the vmware tools for this problem?! Aren't the vmware tools just enhancements for the GUI?

I've got the exact same problem and i've resolved it (temporarily) with a script that runs: ntpdate ntp.xs4all.nl every half hour. Not the best solution but it works for now.
How can schedule it to do the same? Perhaps it is possible within ISPconfig admin interface
Reply With Quote
  #7  
Old 10th March 2008, 14:44
jorizzzz jorizzzz is offline
Member
 
Join Date: May 2007
Location: Soest, Netherlands
Posts: 81
Thanks: 1
Thanked 4 Times in 2 Posts
Send a message via MSN to jorizzzz
Default

I've just created the script below to do this:

Code:
#!/bin/bash


var0=0
LIMIT=100000000000

while [ "$var0" -lt "$LIMIT" ]
do
ntpdate ntp.xs4all.nl
sleep 108000
done

echo

exit 0
Reply With Quote
  #8  
Old 10th March 2008, 17:45
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
Default

sorry if it sounds stupid but unless you can tell me where I need to put this file and how to make it run on schedule it makes no sense to me as I'm new to linux systems.
Reply With Quote
  #9  
Old 11th March 2008, 20:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by jorizzzz
Why should you install the vmware tools for this problem?! Aren't the vmware tools just enhancements for the GUI?
The VMware Tools fix the time problem in the vm.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 14th March 2008, 21:58
smilem smilem is offline
Member
 
Join Date: Jan 2008
Posts: 52
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko
Please install the VMware Tools: http://www.howtoforge.com/vmware_tools_on_linux
I use Centos 5.1 it is not in your guide.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
email time limit beco Server Operation 12 28th January 2008 17:37
Time Problem RTHREE General 3 1st April 2007 14:42
Server time about 15 minutes wrong! edge Server Operation 13 9th November 2006 16:52
Time logging xp users Aaron Morris Server Operation 4 3rd September 2006 23:45
Time stamp on Emails from Webmail. Jcorrea920 Installation/Configuration 2 31st March 2006 22:24


All times are GMT +2. The time now is 18:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.