I don't know which distribution you are using but on Fedora I do the following:
1. Setup decent NTP servers in ntp.conf - I set the following
server 0.fedora.pool.ntp.org
server 1.fedora.pool.ntp.org
server 2.fedora.pool.ntp.org

2. Run ntpdate at startup - this basically runs with the following OPTIONS="-U 
ntp -s -b"
   This just does a one time synchronization at startup

3. Run ntpd - this will make sure your time doesn't drift once it has been 
synchronized

Note: Running ntpd as is wont help especially if you are drifting too much - I 
don't remember the threshold but beyond a certain point ntpd wont try to 
correct the time.



- Mithun



----- Original Message ----
From: Subhanjan Ghosh <subhanjan.ghosh2...@gmail.com>
To: The Linux-Delhi mailing list <ilugd@lists.linux-delhi.org>
Sent: Saturday, September 19, 2009 11:25:35 AM
Subject: Re: [ilugd] ntp sync to server bt still drift is there

ntpd is running ntpq -p is showing my server with the drift.

On Sat, Sep 19, 2009 at 9:18 AM, Mehul Ved <mehul.n....@gmail.com> wrote:

> On Sat, Sep 19, 2009 at 9:00 PM, Subhanjan Ghosh
> <subhanjan.ghosh2...@gmail.com> wrote:
> > Facing one problem my server is synced to ntp server but every 2 days
> there
> > is a drift of 5 seconds or so then have to manually sync with ntpdate
> > command.
> >
> > Any permanent fix as in Redhat Kbase it said that not recommended to put
> > ntpdate in cron.
>
> Isn't ntpd running? It should do that.
>
> _______________________________________________
> ilugd mailinglist -- ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
>
_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/



      

_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to