System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

why have two NTP process after xntpd start

SOLVED
Go to solution
edward wang_1
Frequent Advisor

why have two NTP process after xntpd start

Hi
gs80,V5.1B
And I killed them, and restarted the daemon. But there were still 2 processes.

# ps -ef | grep ntp
root 370379 1 3.7 Sep 12 ?? 13:41:32 /usr/sbin/xntpd -g -c /etc/ntp.conf
root 370894 370379 0.0 Sep 12 ?? 0:00.59 /usr/sbin/xntpd -g -c /etc/ntp.conf
root 242803 243617 0.0 12:16:36 pts/6 0:00.01 grep ntp
# kill -9 370379 370894
#
# ps -ef | grep ntp
root 241066 243617 0.3 12:17:36 pts/6 0:00.01 grep ntp
# /sbin/init.d/xntpd start
Network Time Service started
#
# ps -ef | grep ntp
root 237930 242621 0.2 12:17:43 ?? 0:00.02 /usr/sbin/xntpd -g -c /etc/ntp.conf
root 242621 1 0.4 12:17:43 ?? 0:00.03 /usr/sbin/xntpd -g -c /etc/ntp.conf
root 242606 243617 0.3 12:17:46 pts/6 0:00.01 grep ntp

more /etc/ntp.conf
server sdbsmon1 version 3
peer mes3app0 version 3
I had copy /sbin/init.d/xntpd, /usr/sbin/xntpd file to other machine and ntp start ok just have one process.
12 REPLIES
Steven Schweda
Honored Contributor

Re: why have two NTP process after xntpd start

I know nothing, but it appears that one of
the xntpd processes is the parent of the
other. Perhaps it spawns/forks when it's
talking to someone else (or someone else is
talking to it). Perhaps "netstat -a" would
say something interesting about the NTP
port(s). ntpq or xntpdc might be able to
tell you things, too.
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Steven
thanks you so much!
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi all

can anyone help me?
Rob Leadbeater
Honored Contributor

Re: why have two NTP process after xntpd start

Hi,

Awarding 8 points to an answer would indicate to those looking at the thread, that the problem was solved...

If it isn't then can we assume that you've done the things that Steven suggested ?

Cheers,

Rob
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Rob
thank you help. I have not get netstat -a log
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Steven and Rob
can't see any ntp info when using netstat -a

edward
Rob Leadbeater
Honored Contributor

Re: why have two NTP process after xntpd start

Hi,

OK... What does :

# ntpq -np

show you ? It should give you your NTP servers in numerical format.

Cheers,

Rob

edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Rob
# ntpq -np
127.0.0.1: timed out, nothing received
***Request timed out
thank you help.

edward
Rob Leadbeater
Honored Contributor
Solution

Re: why have two NTP process after xntpd start

Hi,

Do you know what the NTP configuration is supposed to be ?

You appear to be trying to work as both a server and client, by having both peer and server defined in your ntp.conf.

That might explain the two xntpd processes, but the ntpq -np output doesn't look too healthy.

You might also find some troubleshooting clues in /var/adm/syslog.dated/current/daemon.log

Cheers,

Rob
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Rob
thank you so much!
in daemon.log
Oct 14 15:01:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 15:06:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 15:11:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 15:15:44 mes3app1 xntpd[242621]: synchronisation lost
Oct 14 15:16:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 15:21:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 15:24:24 mes3app1 xntpd[242621]: synchronisation lost
Oct 14 15:26:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 15:31:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 15:36:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 15:46:01 mes3app1 last message repeated 2 times
Oct 14 15:56:01 mes3app1 last message repeated 2 times
Oct 14 16:01:01 mes3app1 /usr/sbin/collect[424698]: Forcing data buffer flush
Oct 14 16:02:43 mes3app1 xntpd[242621]: synchronisation lost
Oct 14 16:06:01
Rob Leadbeater
Honored Contributor

Re: why have two NTP process after xntpd start

Again, I don't know what your NTP configuration is supposed to be, but I would suggest probably taking this line:

peer mes3app0 version 3

out of your ntp.conf, and restart NTP.

Cheers,

Rob
Steven Schweda
Honored Contributor

Re: why have two NTP process after xntpd start

> can't see any ntp info when using netstat -a

I know how you must feel. I can't see any of
your "netstat -a" output at all.

You might be looking for the right stuff, and
you might not, but with no actual evidence,
it's very difficult for a non-psychic like me
to know which is true.