Troubles starting ntp on SGI multi-homed hosts on same subnets..seeking help

Troubles starting ntp on SGI multi-homed hosts on same subnets..seeking help

Post by rober.. » Fri, 25 Feb 2000 04:00:00



Hello All

I have successfully installed and started ntp of several Origin 2000
multihomed SGI servers..but one is proving to be particularly
troublesome.

I think this stems from the fact that this server has 4 network
interfaces...with two interfaces each on the same subnet..and when I
fire up ntp the port comes back as already assigned.

And help would be greatly appreciated!!!
Please see below for more details

thanks
Dan

More Details

the machine is called dan.host.com
and it has ips of

169.140.113.24
169.140.113.45

and
169.140.120.56
169.140.120.68

and a trace on ntp when started among other things gives:

Stuff chopped out

  88.770mS(+   14uS)[  3]           xntpd(1305023): close(4) OK
   88.808mS(+   38uS)[  3]           xntpd(1305023): socket(PF_INET,
SOCK_DGRAM, 0) = 4
   88.829mS(+   20uS)[  3]           xntpd(1305023): setsockopt(4,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff1470, 0x4) OK
   88.847mS(+   18uS)[  3]           xntpd(1305023): bind(4,
{sin_family=AF_INET, sin_port=123, sin_addr=0.0.0.0}, 16)
   89.432mS(+  584uS)[  3]           xntpd(1305023): END-bind() OK
   89.445mS(+   12uS)[  3]           xntpd(1305023): fcntl(4, F_SETFL,
FNONBLOCK) OK
   89.458mS(+   12uS)[  3]           xntpd(1305023): setsockopt(4,
SOL_SOCKET, SO_BROADCAST, 0x7fff1470, 0x4) OK
   89.468mS(+   10uS)[  3]           xntpd(1305023): socket(PF_INET,
SOCK_DGRAM, 0) = 5
   89.500mS(+   32uS)[  3]           xntpd(1305023): setsockopt(5,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff1470, 0x4) OK
   89.510mS(+    9uS)[  3]           xntpd(1305023): bind(5,
{sin_family=AF_INET, sin_port=123, sin_addr=169.140.113.24}, 16) OK
   89.616mS(+  106uS)[  3]           xntpd(1305023): fcntl(5, F_SETFL,
FNONBLOCK) OK
   89.626mS(+    9uS)[  3]           xntpd(1305023): setsockopt(5,
SOL_SOCKET, SO_BROADCAST, 0x7fff1470, 0x4) OK
   89.635mS(+    9uS)[  3]           xntpd(1305023): socket(PF_INET,
SOCK_DGRAM, 0) = 6
   89.690mS(+   54uS)[  3]           xntpd(1305023): setsockopt(6,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff1470, 0x4) OK
   89.700mS(+   10uS)[  3]           xntpd(1305023): bind(6,
{sin_family=AF_INET, sin_port=123, sin_addr=169.140.113.45}, 16) OK
   89.806mS(+  105uS)[  3]           xntpd(1305023): fcntl(6, F_SETFL,
FNONBLOCK) OK
   89.815mS(+    9uS)[  3]           xntpd(1305023): setsockopt(6,
SOL_SOCKET, SO_BROADCAST, 0x7fff1470, 0x4) OK
   89.824mS(+    8uS)[  3]           xntpd(1305023): socket(PF_INET,
SOCK_DGRAM, 0) = 7
   89.851mS(+   27uS)[  3]           xntpd(1305023): setsockopt(7,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff1470, 0x4) OK
   89.861mS(+    9uS)[  3]           xntpd(1305023): bind(7,
{sin_family=AF_INET, sin_port=123, sin_addr=169.140.120.56}, 16) OK
   89.964mS(+  103uS)[  3]           xntpd(1305023): fcntl(7, F_SETFL,
FNONBLOCK) OK
   89.974mS(+    9uS)[  3]           xntpd(1305023): setsockopt(7,
SOL_SOCKET, SO_BROADCAST, 0x7fff1470, 0x4) OK
   89.986mS(+   12uS)[  3]           xntpd(1305023): socket(PF_INET,
SOCK_DGRAM, 0) = 8
   90.014mS(+   28uS)[  3]           xntpd(1305023): setsockopt(8,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff1470, 0x4) OK
   90.025mS(+   11uS)[  3]           xntpd(1305023): bind(8,
{sin_family=AF_INET, sin_port=123, sin_addr=169.140.120.68}, 16) OK
   90.126mS(+  100uS)[  3]           xntpd(1305023): fcntl(8, F_SETFL,
FNONBLOCK) OK
   90.138mS(+   12uS)[  3]           xntpd(1305023): setsockopt(8,
SOL_SOCKET, SO_BROADCAST, 0x7fff1470, 0x4) OK
   90.147mS(+    8uS)[  3]           xntpd(1305023): socket(PF_INET,
SOCK_DGRAM, 0) = 9
   90.177mS(+   29uS)[  3]           xntpd(1305023): setsockopt(9,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff1470, 0x4) OK
   90.187mS(+   10uS)[  3]           xntpd(1305023): bind(9,
{sin_family=AF_INET, sin_port=123, sin_addr=127.0.0.1}, 16) OK
   90.293mS(+  105uS)[  3]           xntpd(1305023): fcntl(9, F_SETFL,
FNONBLOCK) OK
   90.303mS(+   10uS)[  3]           xntpd(1305023): setsockopt(4,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff2d94, 0x4) OK
   90.312mS(+    8uS)[  3]           xntpd(1305023): setsockopt(5,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff2d94, 0x4) OK
   90.321mS(+    8uS)[  3]           xntpd(1305023): setsockopt(6,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff2d94, 0x4) OK
   90.332mS(+   11uS)[  3]           xntpd(1305023): setsockopt(7,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff2d94, 0x4) OK
   90.341mS(+    8uS)[  3]           xntpd(1305023): setsockopt(8,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff2d94, 0x4) OK
   90.352mS(+   11uS)[  3]           xntpd(1305023): setsockopt(9,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff2d94, 0x4) OK
   90.430mS(+   78uS)[  3]           xntpd(1305023): socket(PF_INET,
SOCK_DGRAM, 0) = 10
   90.465mS(+   34uS)[  3]           xntpd(1305023): setsockopt(10,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff25c0, 0x4) OK
   90.477mS(+   12uS)[  3]           xntpd(1305023): bind(10,
{sin_family=AF_INET, sin_port=123, sin_addr=169.140.113.255}, 16) OK
   90.589mS(+  112uS)[  3]           xntpd(1305023): fcntl(10, F_SETFL,
FNONBLOCK) OK
   90.600mS(+   11uS)[  3]           xntpd(1305023): setsockopt(10,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff25c4, 0x4) OK
   90.612mS(+   12uS)[  3]           xntpd(1305023): socket(PF_INET,
SOCK_DGRAM, 0) = 11
   90.643mS(+   31uS)[  3]           xntpd(1305023): setsockopt(11,
SOL_SOCKET, SO_REUSEADDR|IP_TTL(0x4), 0x7fff25c0, 0x4) OK
   90.657mS(+   13uS)[  3]           xntpd(1305023): bind(11,
{sin_family=AF_INET, sin_port=123, sin_addr=169.140.120.255}, 16) errno
= 125 (Address already in use)
   90.724mS(+   67uS)[  3]           xntpd(1305023): time() = 951232394
   91.133mS(+  408uS)[  3]           xntpd(1305023): getpid() = 1305023,
ppid=1
   91.148mS(+   15uS)[  3]           xntpd(1305023): putmsg(3,
0x7fff1eb8, 0x7fff1ec8, 0) = 0
   91.222mS(+   73uS)[  3]           xntpd(1305023): close(11) OK
   91.253mS(+   31uS)[  3]           xntpd(1305023):
prctl(PR_LASTSHEXIT) = 1
   91.301mS(+   48uS)[  3]           xntpd(1305023): exit(1)

System call summary:
                        Average     Total
Name           #Calls  Time(ms)  Time(ms)
-----------------------------------------
waitsys             4     16.23     64.91
open              217      0.07     14.62
ioctl             218      0.06     12.97
execve              5      1.80      8.99
close             417      0.01      5.03
plock               1      4.32      4.32
syssgi            410      0.01      4.08
fork                5      0.78      3.88
ngetdents           1      2.09      2.09
bind                8      0.15      1.20
stat                9      0.08      0.71
sigaction          59      0.01      0.63
read                9      0.05      0.49
write               2      0.18      0.36
sigprocmask        58      0.01      0.33
putmsg              4      0.08      0.31
socket              9      0.03      0.28
brk                 5      0.05      0.26
elfmap              4      0.05      0.22
sigreturn           1      0.21      0.21
fcntl              16      0.01      0.19
mmap                5      0.03      0.17
ustat               1      0.12      0.12
setsockopt         20      0.01      0.11
setsid              1      0.07      0.07
sysinfo             4      0.01      0.06
timer_create        1      0.05      0.05
:

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Troubles starting ntp on SGI multi-homed hosts on same subnets..seeking help

Post by Jan Evert van Groothees » Sat, 26 Feb 2000 04:00:00


Robert,

This is the particular line giving trouble:

Quote:>    90.657mS(+   13uS)[  3]           xntpd(1305023): bind(11,
> {sin_family=AF_INET, sin_port=123, sin_addr=169.140.120.255}, 16) errno
> = 125 (Address already in use)

However, it seems ntpd did not yet bind to that address before. Or would that be
in the stuff that was chopped out?
Perhaps netstat or a comparable utility could provide some information whether
something is already using 169.140.120.255:123. On linux I'd suggest using
`fuser', but I don't know if that's available everywhere.

Just for information, are you trying to use ntpd here as a broadcast client or
server?

-- Jan Evert

 
 
 

Troubles starting ntp on SGI multi-homed hosts on same subnets..seeking help

Post by Mike O'Conno » Mon, 20 Mar 2000 04:00:00




:Robert,
:
:This is the particular line giving trouble:
:>    90.657mS(+   13uS)[  3]           xntpd(1305023): bind(11,
:> {sin_family=AF_INET, sin_port=123, sin_addr=169.140.120.255}, 16) errno
:> = 125 (Address already in use)
:
:However, it seems ntpd did not yet bind to that address before. Or would that be
:in the stuff that was chopped out?
:Perhaps netstat or a comparable utility could provide some information whether
:something is already using 169.140.120.255:123. On linux I'd suggest using
:`fuser', but I don't know if that's available everywhere.

I seem to recall the fuser functionality that does that in Linux was
based on what IRIX does.  :)

I'm confused about why you're wanting to multi-home SGIs on the
same subnet, as opposed to using an ipalias on one interface.  Your
subnet traffic will all go out through only one interface...  there's
only one interface per route.  

:Just for information, are you trying to use ntpd here as a broadcast client or
:server?
:
:-- Jan Evert

--

 InterNIC WHOIS: MJO | (has my PGP & Geek Code info) | Phone: +1 248-848-4481