https://bugzilla.novell.com/show_bug.cgi?id=337075#c13
Martin Burnicki changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|martin.burnicki@meinberg.de |
--- Comment #13 from Martin Burnicki 2007-11-29 09:29:07 MST ---
OK, removed ntp RPMs, and removed all ntp files below /etc. Then installed new
RPMs.
First ran:
# rcntp start
Starting network time protocol daemon (NTPD)cp: cannot stat `/etc/ntp.server':
No such file or directory
grep: /etc/ntp.server: No such file or directory
done
Then tried:
# rcntp addserver 0.pool.ntp.org
mv: cannot stat `/etc/ntp.server': No such file or directory
/usr/sbin/rcntp: line 205: /etc/ntp.server~: No such file or directory
This should be cleaned up. I think either /etc/ntp.servers should be created
when the RPM is installed, or the rc script should create the file if it does
not exist, or print a proper message that ntpd needs to be configured first
rather than just complaining "cannot stat `/etc/ntp.server'".
Anyway, after the command "addserver" command has been run the file
/etc/ntp.server exists and contains the server line.
The next command
# rcntp addserver 1.pool.ntp.org
works correctly and doesn't give an error.
However, though the server has been added to ntp.server and to the running
ntpd, ntpd is sometimes still dead after reboot :-((
I'll try to find out more on this.
BTW, I see that "rcntp status" now calls ntpdc to display the status. I'd
propose to run "ntpq -p" instead.
Ntpq uses standard packet formats to communicate with ntpd, so you can run it
against different versions of ntpd, and many users are familiar with the output
billboard.
Ntpdc, however, should only be used with ntpd from the same package (advice
from Dave Mills, and other core NTP developers), and there are even thoughts to
obsolete it and put things into ntpq. It's still fine to use ntpdc for
"addserver", etc., but for the status requests ntpq should be preferred.
A different thing: In order to speed up synchronization the "iburst" keyword
should be used with each server. I can't imagine any case where this would not
be useful.
A question is whether it's wiser to let that keyword be added automatically by
the "addserver" function in the rc script, or whether it should be supplied on
the command line for the rc script. E.g. if I run
rcntp addserver 0.pool.ntp.org iburst
then the "iburst" keyword is added to the server line in /etc/ntp.server.
However, it does not seem to be passed via ntpdc to ntpd, so it takes
unnecessarily long for ntpd to synchronize.
If I run from the command line:
ntpdc -c "keyid 1" -c "passwd 1bcdb35" -c "addserver 0.pool.ntp.org iburst"
then I see how ntpd synchronizes to that server much faster.
Martin
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.