Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Strange NFS problem
@ 2002-10-30 15:29 andy thomas
  2002-10-31 10:07 ` Strange NFS problem - NOW FIXED! andy thomas
  0 siblings, 1 reply; 3+ messages in thread
From: andy thomas @ 2002-10-30 15:29 UTC (permalink / raw)


We have an Alpha server running DU 4.0D which exports user's home
directories via NFS to various other Unix and Linux machines both on its
own subnet and on other subnets. This has worked well for years but
yesterday morning, in readiness for a network upgrade, RIP and proxy ARP
were turned off on the router feeding these subnets. We do not run gated
or routed and use a single static route so this should not have made any
difference.

Now we have the odd situation of NFS working fine where the client is on
the same subnet, but Linux machines on other subnets can't see the nfsd
UDP service. Attempts to actuially mount the NFS volume casues the
client to hang. But Unix clients on other subnets (eg D Unix, Solaris)
have no problems mounting NFS volumes.

Here's the output of rpcinfo from a Digital Unix machine on a different
subnet:

	rpcinfo -u geometry nfs 2
	program 100003 version 2 ready and waiting

	rpcinfo -t geometry nfs 2
	program 100003 version 2 ready and waiting

but from any Linux box we get:

	rpcinfo -u geometry nfs 2
	rpcinfo: RPC: Timed out
	program 100003 version 2 is not available

	rpcinfo -t geometry nfs 2
	program 100003 version 2 ready and waiting


It doesn't matter if we probe NFS version 3, we get the same result. And
other UDP services like NIS (this server is also a NIS master) check out
fine with both Unix & Linux:

(from the Linux box on a remote subnet):

	rpcinfo -t geometry ypserv 2
	program 100004 version 2 ready and waiting

Now, it can't be a Linux issue as several dozen SuSE, Red Hat and Debian
Linux systems can't all be misconfigured, and Linux clients mount fine on the
local subnet where the server is. And it all worked before. Also, these Linux
clients on remote subnets mount NFS exports from other DU servers on the same
subnet.

So there's got to be something odd about this particular server. The only
thing different about this server compared with others on the same subnet
is that it has two IP addresses (one is an alias on the default tu0
interface).

Does anyone have any ideas?

Thanks in advance,

Andy



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange NFS problem - NOW FIXED!
  2002-10-30 15:29 Strange NFS problem andy thomas
@ 2002-10-31 10:07 ` andy thomas
  2002-10-31 17:36   ` Brian Haley
  0 siblings, 1 reply; 3+ messages in thread
From: andy thomas @ 2002-10-31 10:07 UTC (permalink / raw)


Yesterday I posted the message below but I've now found the problem and
it's been fixed. I thought I'd describe the solution here in case others run
into the same problem in the future.

There appears to be a bug in the ifconfig that ships with DU 4.0D so that if
an interface is configured with primary IP address, netmask and alias IP all
on one line, what actually happens is that the IP addresses are configured
correctly but the broadcast addresses for both are the same as the alias IP
address. So if I use the netsetup script to set the tu0 interface up, it
places the following line into /.etc/rc.config:

   IFCONFIG_0="155.198.192.7 netmask 255.255.255.0 alias 155.198.192.59"

and at boot-up, the broadcast address is actually set to 155.198.192.59
instead of 155.198.192.255. This obviously affected correct operation of
RPC UDP calls from other subnets (eg, 155.198.190.0/24) - Linux NFS uses
UDP while DU and Solaris appear to use TCP for RPC - but I'm not too sure
of the mechanisms involved or what exactly failed.

Manually reconfiguring the correct broadcast addresses after boot time
and running '/usr/sbin/rcinet restart' didn't fix the problem as far as the
portmapper was concerned but removing the alias argument from the interface
configuration in /etc/rc.config and rebooting got everything working again.
A separate script in /sbin/rc3.d now runs towards the end of the boot process
(after everything else has been set up and has stabilised) to assign the IP
alias to the tu0 interface:

	/usr/sbin/ifconfig tu0 alias 155.198.192.59/24


Andy


> We have an Alpha server running DU 4.0D which exports user's home
> directories via NFS to various other Unix and Linux machines both on its
> own subnet and on other subnets. This has worked well for years but
> yesterday morning, in readiness for a network upgrade, RIP and proxy ARP
> were turned off on the router feeding these subnets. We do not run gated
> or routed and use a single static route so this should not have made any
> difference.
>
> Now we have the odd situation of NFS working fine where the client is on
> the same subnet, but Linux machines on other subnets can't see the nfsd
> UDP service. Attempts to actuially mount the NFS volume casues the
> client to hang. But Unix clients on other subnets (eg D Unix, Solaris)
> have no problems mounting NFS volumes.
>
> Here's the output of rpcinfo from a Digital Unix machine on a different
> subnet:
>
> 	rpcinfo -u geometry nfs 2
> 	program 100003 version 2 ready and waiting
>
> 	rpcinfo -t geometry nfs 2
> 	program 100003 version 2 ready and waiting
>
> but from any Linux box we get:
>
> 	rpcinfo -u geometry nfs 2
> 	rpcinfo: RPC: Timed out
> 	program 100003 version 2 is not available
>
> 	rpcinfo -t geometry nfs 2
> 	program 100003 version 2 ready and waiting
>
>
> It doesn't matter if we probe NFS version 3, we get the same result. And
> other UDP services like NIS (this server is also a NIS master) check out
> fine with both Unix & Linux:
>
> (from the Linux box on a remote subnet):
>
> 	rpcinfo -t geometry ypserv 2
> 	program 100004 version 2 ready and waiting
>
> Now, it can't be a Linux issue as several dozen SuSE, Red Hat and Debian
> Linux systems can't all be misconfigured, and Linux clients mount fine on the
> local subnet where the server is. And it all worked before. Also, these Linux
> clients on remote subnets mount NFS exports from other DU servers on the same
> subnet.
>
> So there's got to be something odd about this particular server. The only
> thing different about this server compared with others on the same subnet
> is that it has two IP addresses (one is an alias on the default tu0
> interface).
>
> Does anyone have any ideas?
>
> Thanks in advance,
>
> Andy
>
>

# include <std-disclaimer.h>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange NFS problem - NOW FIXED!
  2002-10-31 10:07 ` Strange NFS problem - NOW FIXED! andy thomas
@ 2002-10-31 17:36   ` Brian Haley
  0 siblings, 0 replies; 3+ messages in thread
From: Brian Haley @ 2002-10-31 17:36 UTC (permalink / raw)


andy thomas wrote:

> There appears to be a bug in the ifconfig that ships with DU 4.0D so that if
> an interface is configured with primary IP address, netmask and alias IP all
> on one line, what actually happens is that the IP addresses are configured
> correctly but the broadcast addresses for both are the same as the alias IP
> address. So if I use the netsetup script to set the tu0 interface up, it
> places the following line into /.etc/rc.config:
>
>    IFCONFIG_0="155.198.192.7 netmask 255.255.255.0 alias 155.198.192.59"
>
> and at boot-up, the broadcast address is actually set to 155.198.192.59
> instead of 155.198.192.255.

This was not the way ifconfig was intended to be used, and we have
since corrected the problem by not allowing it:

# ifconfig tu0 155.198.192.7 netmask 255.255.255.0 alias 155.198.192.59
ifconfig: cannot set primary and alias addresses, or multiple alias addresses

You must call ifconfig separately for each address, or use the 'aliaslist'
option for a range of IP alias addresses.


> A separate script in /sbin/rc3.d now runs towards the end of the boot process
> (after everything else has been set up and has stabilised) to assign the IP
> alias to the tu0 interface:
>
>         /usr/sbin/ifconfig tu0 alias 155.198.192.59/24

The file /etc/inet.local is there to place IP alias info, and anything else you
want to do right after all the IP addresses are configured.

-Brian Haley, HP Tru64 UNIX Networking



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-31 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-30 15:29 Strange NFS problem andy thomas
2002-10-31 10:07 ` Strange NFS problem - NOW FIXED! andy thomas
2002-10-31 17:36   ` Brian Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox