Subject: kern/9421: nfs mount fails, export fails
To: None <>
From: The Grey Wolf <>
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
>Originator:     Greywolf
Star Wolf Innovations
>Release:        1.4S 13 February 2000
	Between two machines, both SPARCstation IPXen with 64MB memory.
	starwolf, running 1.4S (20000213);
	defender, running 1.4K (19990819);
System: NetBSD 1.4S NetBSD 1.4S (STARWOLF) #6: Sat Feb 12 00:54:45 PST 2000 sparc

	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,
	starwolf's /etc/exports:
	    /export/X11 	-maproot=0
	    /usr/src 		-maproot=0 -alldirs
	    /usr/share		-maproot=0
	    /export/local	-maproot=0
	    /usr/src/local	-maproot=0 -alldirs
	    /var/mail	-ro
	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", line 8: \
		Can't change attributes for /var/mail to \
	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".
	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.