Subject: Re: Problems with NFS mount and /etc/exports
To: Gerald C. Simmons <darykon!simmons@nwnexus.wa.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: netbsd-help
Date: 04/11/1995 08:25:34
On Tue, 11 Apr 1995 07:25:44 -0700 
 "Gerald C. Simmons" <darykon!simmons@nwnexus.wa.com> wrote:

 > I have two machines I'm trying to get to share resources. One of them is
 > primarily a server and the other a workstation. On the server I have the
 > following in the /etc/exports file:

What does your /etc/fstab look like?  I.e. are all of the exported 
directories mount points?  If not, you may want to consider exporting the 
mount point with the `-alldirs' option...

For example:

(from /etc/fstab)
/dev/sd1g       /misc                   ufs     rw              1 2

(from /etc/exports)
/misc           -maproot=root -alldirs ovation.sj.xenotropic.com

This allows my sun 3/50 to mount /misc/sun3/ov/root, /misc/sun3/ov/swap, 
and /misc/sun3/usr.

 > /cdrom -ro -maproot=root derenai.wa.com
 > /usr/src -maproot=root derenai.wa.com
 > /usr/local -maproot=root derenai.wa.com
 > /var/mail -maproot=root derenai.wa.com
 > /usr/X11R6 -maproot=root derenai.wa.com
 > /home -maproot=root derenai.wa.com
 > 
 > I get the following messages from mountd:
 > 
 > Apr 11 07:18:28 darykon mountd[57]: Can't change attributes for /usr/local. 
 > Apr 11 07:18:28 darykon mountd[57]: Bad exports list line /usr/local -maproot
 > Apr 11 07:18:28 darykon mountd[57]: Can't change attributes for /usr/X11R6. 
 > Apr 11 07:18:28 darykon mountd[57]: Bad exports list line /usr/X11R6 -maproot
 > 
 > Also, derenai can't mount /usr/X11R6 or /usr/local, but can mount /home and
 > /var/mail. The permissions and ownerships on all mount points are the same.
 > I'm currently running NetBSD-1.0 on two 486 machines; one with 16M RAM and
 > the other w/ 36M. Both machines have NFS_CLIENT and NFS_SERVER YES in
 > /etc/netstart. Any Ideas?
 > 
 > Gerry Simmons
 > simmons@darykon.wa.com
 > 
 > 

--------------------------------------------------------------------------
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffet Field, CA 94035                                 Pager: 415.428.6939