On 22 Kwi, 11:38, Ashok Sangra <aksan...@gmail.com> wrote:
> On Apr 22, 2:21Â*pm, Marcin.Tabinow...@gmail.com wrote:
>
>
>
>
>
> > On 22 Kwi, 09:44, Ashok Sangra <aksan...@gmail.com> wrote:
>
> > > On Apr 21, 8:02 pm, Marcin.Tabinow...@gmail.com wrote:
>
> > > > Hi
>
> > > > I have an annoying problem with ntp on AIX 5.3 TL7. This is what I
> > > > did:
> > > > 1. I have enabled start of xntpd in /etc/rc.tcpip
> > > > 2. /etc/ntp.conf looks like this:
>
> > > > server <my ntp server ip>
> > > > broadcastclient
>
> > > > driftfile /etc/ntp.drift
> > > > tracefile /etc/ntp.trace
>
> > > > 3. I run ntpdate <my ntp server ip>
> > > > 4. Finally, I run startsrc -s xntpd
>
> > > > The subsystem has started and runs just fine without a crash. The time
> > > > is correct, the date is correct, the time zone is good (I set it
> > > > earlier). There is no error regarding to xntp src. But...
> > > > The xntpd does not start after reboot. After reboot the date and time
> > > > are still correct and seem to be synchronized. But xntpd subsystem is
> > > > inoperative. After every reboot I have to start it manually. Then I
> > > > run ntpq -p and the output is like this:
>
> > > > Â* Â* Â*remote Â* Â* Â* Â* Â* refid Â* Â* Â*st t when poll reach Â* delay
> > > > offset Â* Â*disp
> > > > ================================================== =========================Â*Â*--===
> > > > *x.x.x.x Â* Â* Â* x.x.x.x Â* Â* Â*4 u Â*94 Â*128 Â*377 Â* Â* 1.16 Â* -0.367
> > > > 0.12
>
> > > > So the offset is not the issue. After reboot there is no error in
> > > > errorlog and after starting src manually ntp runs just fine without
> > > > the crash.
> > > > Am I doing something wrong or what? Why xntpd doesn't start after
> > > > reboot? I have thi issue on all my LPARs in p595 server, firmware
> > > > version SF240_320. I will appreciate any help, thanks in advance 
>
> > > Try strating the xntpd daemon at system boot by putting the following
> > > entry in /etc/inittab
> > > xntp:2
nce:/usr/bin/startsrc -s xntpd > /dev/console 2>&1
> > > I suppose xntpd doesn't get initialized through rc.tcpip. Pls correct
> > > if I am wrong.
> > > HTH
> > > Ashok Sangra- Ukryj cytowany tekst -
>
> > > - Poka¿ cytowany tekst -
>
> > Conslog is clear, adding xntp:2
nce:/usr/bin/startsrc -s xntpd > /dev/
> > console 2>&1 to inittab makes no effect, hovever when I put xntp:
> > 2:respawn:/usr/bin/startsrc -s xntpd > /dev/console 2>&1 to inittab
> > and restart, the message has occured in /var/adm/ras/conslog:
>
> > INIT: Command is respawning too rapidly. Check for possible errors.
> > id: Â*xntp "/usr/bin/startsrc -s xntpd /dev/console 2>&1"
>
> > The xntp subsystem was still inoperative. So, it seems the xntp is
> > starting and stopping very fast. But whty is it stopping? I put all
> > facilities in all priority levels in syslog but after restart there is
> > no entry in log file. There also are no errors in bootlog or errorlog.
> > After starting inoperative system manually the entry shows in syslog:
>
> > Apr 22 11:07:36 piwmbtdev daemon:notice xntpd[327904]: 3.4y
> > Apr 22 11:07:36 piwmbtdev daemon:notice xntpd[327904]: 3.4y
> > Apr 22 11:07:36 piwmbtdev daemon:notice xntpd[327904]: tickadj = 1000,
> > tick = 10000, tvu_maxslew = 99000
> > Apr 22 11:07:36 piwmbtdev daemon:notice xntpd[327904]: tickadj = 1000,
> > tick = 10000, tvu_maxslew = 99000
> > Apr 22 11:07:36 piwmbtdev daemon:info xntpd[327904]: precision = 6
> > usec
>
> > But I see no errors here either
Is that possible the xntp starts at
> > reboot time, synchronizes the time with ntp server and then stops
> > normally? I think I run out of ideas abouthis silly problem :P- Hide quoted text -
>
> > - Show quoted text -
>
> As mentioned by you in your original post - running startsrc -s xntpd
> from the command line starts the daemon and keeps it running. Then it
> should also be running without any issue when it is run through
> inittab. This is just to automate the start of process and to keep it
> running at that runlevel.
> -Ashok- Ukryj cytowany tekst -
>
> - Pokaż cytowany tekst -
Well, it should but this isn't happening. As I posted above, puting an
entry in inittab:
xntp:2

nce:/usr/bin/startsrc -s xntpd > /dev/console 2>&1
and rebooting does NOT start xntpd. It is still inoperative and I
could't find any error in any place in AIX.
I know, it's strange. I have the latest version of AIX with latest
technical level and fix packs. Maybe there is just an unknown error.
But thank You for Your reply, appreciate this