xntpd won't stay up...


 
Thread Tools Search this Thread
Operating Systems AIX xntpd won't stay up...
# 1  
Old 05-12-2010
Question xntpd won't stay up...

AIX 5.3-5300.09.06.1013 (AIX 5.3 TL9 SP6)

# startsrc -s xntpd -a "-x"

(with -x at the end of the xntpd line in /etc/rc.tcpip, too.)

will run for 5-15 minutes, and then die.

# errpt -a

with a search on xntpd gives me this:

Code:
------------------------------------------------
LABEL:          SRC_SVKO
IDENTIFIER:     BC3BE5A3

Date/Time:       Wed May 12 14:25:13 PDT 2010
Sequence Number: 169
Machine Id:      [redacted]
Node Id:         [redacted]
Class:           S
Type:            PERM
Resource Name:   SRC

Description
SOFTWARE PROGRAM ERROR

Probable Causes
APPLICATION PROGRAM

Failure Causes
SOFTWARE PROGRAM

        Recommended Actions
        MANUALLY RESTART SUBSYSTEM IF NEEDED

Detail Data
SYMPTOM CODE
         256
SOFTWARE ERROR CODE
       -9017
ERROR CODE
           0
DETECTING MODULE
'srchevn.c'@line:'355'
FAILING MODULE
xntpd
-------------------------------------------------

My google-fu is completely failing to help me track down these symptom or error codes.

I'd love suggestions on where to look.

Thanks!
dafydd
# 2  
Old 05-13-2010
First I would check that I use the same TZ on both the NTP server and the client. Second I would use the logfile and/or tracefile options of xntpd to get information from the subsystem directly as the errpt entry is not very helpful here. Then I would check:
  • Does the same error happen when using xntpd with step instead of slew? (No -x option)
  • Does it make a difference if you change the subsystem with chssys and then just issue an starsrc -s xntpd?
  • Are there any network problems between NTP server and client?
# 3  
Old 05-13-2010
Could be the system time to to far off from the real time or the time ntp is pulling from the peer server. Below is an clip from the man page for xntpd. I have had this problem more than once.

Code:
Note: When operating in a client mode running AIX 4.2.1 or later, the xntpd daemon will exit with an error 
if no configured servers are within 1000 seconds of local system time. Use the date or ntpdate command
to set the time of a bad skewed system before starting xntpd.


Last edited by juredd1; 05-13-2010 at 11:49 AM.. Reason: Fix Formatting.
# 4  
Old 05-13-2010
ntpdate can be run before starting the NTP server daemon, if you suspect your system clock might be to far off. This can also be included in a startup script.
# 5  
Old 05-13-2010
Thanks for all the hints!

I'm a good Linux guy and former IRIX nerd who's got thrown into an AIX/Oracle install. (I don't mind getting thrown in the deep end. I just wish the pool had water in it...)

- The ntp server and both clients are all in the same time zone and on the same subnet. (I'm doing the test environment install as backup to the guy doing the production install.)

- The AIX boxes have TZ in /etc/environment as
Code:
TZ=PST8PDT-7,M3.2.0/2:00:00,M11.1.0/2:00:00

- Where can I find the log files to examine?

- A default install of AIX 5.3 TL9 SP6 doesn't seem to install ntpdate. Smilie

- Shockneck: What chssys changes do you suggest?

Thanks!
dafydd

---------- Post updated at 11:31 AM ---------- Previous update was at 11:06 AM ----------

Found bootlog and conslog. Bootlog has nothing related to xntpd. Conslog only notes that xntpd has received start requests.

Trying this
Code:
/usr/sbin/xntpd -l /tmp/xntpd.log -D 10



---------- Post updated at 11:40 AM ---------- Previous update was at 11:31 AM ----------

Scratch the ntpdate thing. For some reason, even with /usr/sbin in the path, AIX will say ntpdate isn't found. Smilie Running it got me this:

Code:
# /usr/sbin/ntpdate -d <IPADDR>
13 May 11:33:27 ntpdate[462852]: 3.4y
transmit(<IPADDR>)
receive(<IPADDR>)
transmit(<IPADDR>)
receive(<IPADDR>)
transmit(<IPADDR>)
receive(<IPADDR>)
transmit(<IPADDR>)
receive(<IPADDR>)
transmit(<IPADDR>)
server <IPADDR>, port 123
stratum 11, precision -20, leap 00, trust 000
refid [127.127.1.0], delay 0.02574, dispersion 0.00000
transmitted 4, in filter 4
reference time:      cf96c466.644973b0  Fri, May 14 2010  1:33:10.391
originate timestamp: cf96c49f.ac1255cd  Fri, May 14 2010  1:34:07.672
transmit timestamp:  cf95ff97.1a4c3000  Thu, May 13 2010 11:33:27.102
filter delay:  0.02582  0.02574  0.02579  0.02576
               0.00000  0.00000  0.00000  0.00000
filter offset: 50440.56 50440.56 50440.56 50440.56
               0.000000 0.000000 0.000000 0.000000
delay 0.02574, dispersion 0.00000
offset 50440.569358

13 May 11:33:27 ntpdate[462852]: step time server <IPADDR>offset 50440.569358
# date
Thu May 13 11:33:53 PDT 2010

What occurs to me is the way smitty chtz changed the variable in /etc/environment:
Code:
TZ=PST8PDT-7,M3.2.0/2:00:00,M11.1.0/2:00:00

I don't see that "-7," or similar for other timezones, in any documentation, anywhere. So, I've changed the var to
Code:
TZ=PST8PDT,M3.2.0/2:00:00,M11.1.0/2:00:00

and rebooted (just to be thorough). I'll post what happens...

---------- Post updated at 11:49 AM ---------- Previous update was at 11:40 AM ----------

And, after reboot, the time jumped forward 10 hours. WT*?

Fix that, rerun ntpdate...

This starts to look closer. Still digging...

---------- Post updated at 11:55 AM ---------- Previous update was at 11:49 AM ----------

RTFM. Find out that the ntpdate -d switch doesn't actually change anything. Rerun as "ntpdate -b"

Okay, I've synchronized everyone. Now to see if xntpd will stay up for more than 15 minutes at a stretch...
# 6  
Old 05-13-2010
Quote:
Originally Posted by dafydd2277
[...]And, after reboot, the time jumped forward 10 hours. WT*?
Yes, that would cause xntpd to die. As you did reboot and you did not see any time difference before that my No. 1 suspect is still the TZ which might have been changed in the /etc/environment but needs a reboot to become active.
# 7  
Old 05-13-2010
And, all appears good. So,

- Reference IBM - Managing the Time Zone Variable for how to create a timezone string.
- Set the TZ variable in /etc/environment by hand.
- Reboot, or "export TZ=<timezone_string>"
- /usr/sbin/ntpdate -b <ntp server>
- "startsrc -s xntpd" or
- "startsrc -s xntpd -a "-x""

and give yourself a half-hour coffee break. Check and verify xntpd is still running, and you're good to go.

Last edited by dafydd2277; 05-13-2010 at 04:20 PM.. Reason: Add the double quote that I missed.
These 2 Users Gave Thanks to dafydd2277 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash script won't run because hardware won't produce display

Can anyone offer any advice on how to modify the script below to work on a new system we have, that has no graphics capability? We admin the system through a serial RAS device. I've tried running the below script through the RAS and through an ssh -X session. It failed with something like "GTK... (3 Replies)
Discussion started by: yelirt5
3 Replies

2. UNIX for Dummies Questions & Answers

xntpd with two servers

Hi, I want to setup xntpd with two sources ntp servers. I added to /etc/ntp.conf: server IP1 server IP2 but, when the server lost the connection with the first, it doesn't connect the second. #/home/s03isga0 # ntpq -p remote refid st t when poll reach delay ... (4 Replies)
Discussion started by: iga3725
4 Replies

3. Solaris

xntpd with slewing option

Hi, Does anyone know how to make sure that the slewing option in solaris 10 is on. From the man page I believe I had to add "slewalways yes" to the ntp.conf file and restart the service, but I don't know if its has gone into effect or not. Thanks (3 Replies)
Discussion started by: Mack1982
3 Replies

4. AIX

Difference between timed and xntpd ?

Hi, Looks like these perform similar function. What is the difference ? thanks Vilius (1 Reply)
Discussion started by: vilius
1 Replies

5. AIX

won't mount /usr...won't boot fully

Hello: NOOB here. I attempted to use smit mkcd. Failed on first attempt, not enough space. 2nd attempt tried to place iso on /usr, not enough space there. Cleanup ran for about 5 minutes after aborting. Now AIX won't boot. LCD display on 7029-6E3 says: 0517 MOUNT /USR. Attempted to boot from CD... (11 Replies)
Discussion started by: bbird
11 Replies

6. AIX

xntpd process inoperative

Hi All, After restarting the xntpd process for some reasons when i checked the status its showing inoprative eventhough xntpd process is running when i ps on it. $ lssrc -s xntpd Subsystem Group PID Status xntpd tcpip ... (1 Reply)
Discussion started by: ram1729
1 Replies

7. Solaris

xntpd[28781]: too many recvbufs allocated

Hi, I have a server that is getting the following alarm a couple times a day: Mar 25 10:56:54 hostname xntpd: too many recvbufs allocated (30) Mar 25 10:56:54 hostname xntpd: too many recvbufs allocated (30) I know this is some sort of NTP related issue but I need to gauge the severity of... (0 Replies)
Discussion started by: BrewDudeBob
0 Replies

8. AIX

xntpd startup...Is it safe?

Hi, Have never run xntpd before. I have my ntp.conf file configured with server, trace file and drift file. I commented out the "broadcastclient" entry since I only want to get the time from a single source. Port 123 is in the /etc/services file for tcp and udp. Port 123 has been enabled in... (0 Replies)
Discussion started by: DenD
0 Replies

9. UNIX for Dummies Questions & Answers

xntpd on NCR unix

Hi, I'm having these errors when using xntpd on ncr unix. synchronisation lost Feb 25 09:10:14 in.xntpd: Previous time adjustment didn't complete Can anyone help me on this. Is it an issue with the time delay as the reference time servers are on different sites and the ping response is... (0 Replies)
Discussion started by: bert.n
0 Replies

10. UNIX for Dummies Questions & Answers

Command xntpd

Hi: I,am trying syncronise clock, but i canīt do it In the server client put: /etc/ntp.conf -> server namehost -> resolver /etc/xntpres /etc/tcp -> uncoment lines when say Xntpd /etc/ xntpd In the server as server clock: /etc/ntp.conf -> peers hostname if... (1 Reply)
Discussion started by: AlvaroD
1 Replies
Login or Register to Ask a Question