Subject: kern/9421: nfs mount fails, export fails
To: None <gnats-bugs@gnats.netbsd.org>
From: The Grey Wolf <greywolf@starwolf.com>
List: netbsd-bugs
Date: 02/14/2000 15:26:02
>Number:         9421
>Category:       kern
>Synopsis:       nfs mount fails, export fails
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 14 15:24:00 2000
>Last-Modified:
>Originator:     Greywolf
>Organization:
Star Wolf Innovations
>Release:        1.4S 13 February 2000
>Environment:
	
	Between two machines, both SPARCstation IPXen with 64MB memory.
	starwolf, running 1.4S (20000213);
	defender, running 1.4K (19990819);
System: NetBSD starwolf.com 1.4S NetBSD 1.4S (STARWOLF) #6: Sat Feb 12 00:54:45 PST 2000 greywolf@starwolf.com:/usr/src/sys/arch/sparc/compile/STARWOLF sparc

>Description:
	A 1.4K machine (defender) cannot mount /var/mail from a 1.4S machine
	(starwolf).  Also, starwolf refuses to properly export /var/mail.
	starwolf's filesystems:
		/, /var, /usr, /usr/src, /usr/src/local, /export, /space,
		/holt
	starwolf's /etc/exports:
	    /usr		defender.starwolf.com
	    /export		defender.starwolf.com
	    /export/X11 	-maproot=0 defender.starwolf.com
	    /usr/src 		-maproot=0 -alldirs defender.starwolf.com
	    /usr/share		-maproot=0 defender.starwolf.com
	    /export/local	-maproot=0 defender.starwolf.com
	    /usr/src/local	-maproot=0 -alldirs defender.starwolf.com
	    /var/mail	defender.starwolf.com
	    /var/mail	-ro
	    /holt 		defender.starwolf.com
	NOTE: I had to export /usr and /export explicitly before any of
	/usr/share, /export/X11, /export/local, /usr/src, /usr/src/local
	were permitted to be mounted.
	mountd reports:
		mountd: "/var/mail	defender.starwolf.com", line 8: \
		Can't change attributes for /var/mail to \
		defender.starwolf.com
	...
	defender's NFS mounts:
	starwolf:/usr/share on /usr/share type nfs (rw)
	starwolf:/usr/src on /usr/src type nfs (rw)
	starwolf:/export/X11 on /usr/X11 type nfs (rw)
	starwolf:/export/local on /usr/local type nfs (rw)
	starwolf:/holt on /holt type nfs (rw)
	starwolf:/var/mail on /var/mail type nfs (rw)
	...
	NOTE: /var/mail returns "Input/output error" whenever it is explicitly
	accessed, i.e. "df /var/mail" or "ls /var/mail".
	
>How-To-Repeat:
	Not sure how to do this, exactly.  Had a similar problem on 1.4P/i386.
	Try exporting /var/mail to a host and see how it goes.

	I don't want to nfxport my filesystems to the world -- starwolf
	is also my firewall.

	This looks kind of like mountd is not parsing /etc/exports correctly.
>Fix:
	
>Audit-Trail:
>Unformatted: