On Tuesday 11 Mar 2003 12:55 am, you wrote:
> On Sunday 09 March 2003 06:08 am, you said, and I quote:
> > If /etc/ntp.conf is not present are you sure the ntp RPM is installed?
> >
> > A cron job to set time is easy to set up just use webmin to run a command
> > like /usr/sbin/ntpdate -s ntp2d.mcc.ac.uk at regular intervals.
> >
> > If you are going to use a cron job it is vital that the ntpd service is
> > NOT running, or else the job fails.
> >
> >
> > If you want to run the continuous daemon, then start the ntpd service.
> > I used to put the server name in /etc/ntp.conf , but recently I have been
> > using the Time Server Wizard in Mandrake ControlCentre>Servers.  You need
> > to install the drakwizard RPM in order to see the server menu.
> >
> > The time server wizard will put the names of two time servers in
> > /etc/ntp/step-tickers  I am not sure how this differs from putting the
> > server name in /etc/ntp.conf, but both methods seem to work.
> >
> > HTH
>
> Hi Derek...I'm a little confused here.  Actually the setup was simple as I
> said before.  However,  the time doesn't seem to be updating as it should.
> When I came home from work today it was about 10secs off.  I went through
> the time server setup again in MCC and the time is now set right, but below
> is a cut from my /var/log/messages file.  I'm a little confused as to what
> it means.  Could you help?  ntpd shows to be running under services.
>
> Mar 10 18:37:57 localhost drakwizard[31384]: Wrote /etc/ntp/step-tickers,
> starting services
> Mar 10 18:37:57 localhost drakwizard[31384]: launched command:
> /etc/rc.d/init.d/crond stop
> Mar 10 18:37:57 localhost crond: crond shutdown succeeded
> Mar 10 18:37:57 localhost drakwizard[31384]: launched command:
> /etc/rc.d/init.d/atd stop
> Mar 10 18:37:57 localhost atd: atd shutdown succeeded
> Mar 10 18:37:57 localhost drakwizard[31384]: launched command:
> /etc/rc.d/init.d/ntpd stop
> Mar 10 18:37:57 localhost ntpd[30557]: ntpd exiting on signal 15
> Mar 10 18:37:57 localhost kernel: eth0: Promiscuous mode enabled.
> Mar 10 18:37:57 localhost ntpd: ntpd shutdown succeeded
> Mar 10 18:37:57 localhost drakwizard[31384]: launched command:
> /etc/rc.d/init.d/ntpd start
> Mar 10 18:38:08 localhost ntpdate[31444]: can't find host
> constellation.ecn.uoknor.edu
> Mar 10 18:37:57 localhost ntpdate[31444]: step time server 128.249.1.10
> offset -11.073400 sec
> Mar 10 18:37:57 localhost ntpd[31449]: ntpd [EMAIL PROTECTED] Tue May  7 02:44:50
> EDT 2002 (1)
> Mar 10 18:37:57 localhost ntpd: ntpd startup succeeded
> Mar 10 18:37:57 localhost drakwizard[31384]: launched command:
> /etc/rc.d/init.d/atd start
> Mar 10 18:37:57 localhost ntpd[31449]: precision = 17 usec
> Mar 10 18:37:57 localhost ntpd[31449]: kernel time discipline status 0040
> Mar 10 18:37:57 localhost atd: atd startup succeeded
> Mar 10 18:37:57 localhost drakwizard[31384]: launched command:
> /etc/rc.d/init.d/crond start
> Mar 10 18:37:57 localhost ntpd[31449]: frequency initialized 0.000 from
> /etc/ntp/drift
> Mar 10 18:37:57 localhost ntpd[31449]: bind() fd 8, family 2, port 123,
> addr 224.0.1.1, in_classd=1 flags=0 fails: Address already in use
> Mar 10 18:37:57 localhost ntpd[31449]: ...multicast address 224.0.1.1 using
> wildcard socket
> Mar 10 18:37:57 localhost kernel: eth0: Promiscuous mode enabled.
> Mar 10 18:37:57 localhost crond[31477]: (CRON) STARTUP (fork ok)

Firstly - One of the servers you have selected is bad. 
constellation.ecn.uoknor.edu does not exist. Try another server.

Secondly - I stated in my last mail that I had always put the time server 
address in /etc/ntp.conf, but the Mandrake GUI puts the servers in 
/etc/ntp/step-tickers.  I said then that both methods seem to work. On closer 
examination it seems I was wrong.

When the Mandrake Time server GUI is run, the current time is set correctly, 
but the continuous daemon does not calibrate itself to the servers defined in 
step-tickers. You can check this by running 'ntpq -p' This will list all 
servers being used, and their current offset. After the wizard is run ntpq 
does not show any servers in use.

In fact I can find no reference to step-tickers in the ntp documentation at
http://www.ntp.org/documentation.html  or 
http://www.ntp.org/ntpfaq/NTP-a-faq.htm

So the solution is to use the /etc/ntp.conf file as I had originally 
recommended. Just insert lines such as
server ntp2a.mcc.ac.uk    # Manchester University
server salmon.maths.tcd.ie # Trinity College Dublin

and restart the ntpd daemon. You can then use ntpq -p to monitor the 
operation.
Do not expect any time correction to be instant. ntpd adjusts the time very 
slowly. If your computer time is more than 1000 seconds out, then ntpd will 
not run at all, because it assumes there is something seriously wrong. Adjust 
the time manually, and then start the daemon.

I think now I will take a look at the new Mandrake9.1RC2 to see if it also 
does not actually set the server :)

derek

-- 
----------------------------------
www.jennings.homelinux.net

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to