Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2005 00:29:54 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Tim Holmes <tim@unixtechs.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NFS help
Message-ID:  <432CED42.2060709@mac.com>
In-Reply-To: <20050918031022.GA18032@blackguy.unixtechs.org>
References:  <20050918031022.GA18032@blackguy.unixtechs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim Holmes wrote:
> Trying to move a NFS share to another NFS server and having a bit
> of trouble with it.  I moved all the files and and I edited exports.
> 
> /etc/exports
> /home/install/fbsd -network 192.168.2.0 -mask 255.255.255.0
> /home/install/mdk -network 192.168.2.0 -mask 255.255.255.0
> 
> Now the 1st one works just fine.  I can mount /home/install/fbsd 
> across my network, but I can't mount the /home/install/mdk.  I've
> restarted the nfs server several times, but I still can't get that
> second share to become available.  Am I missing something?

NFS exports filesystems, not directory trees.  NFS permits you to mount a 
subdirectory of an export/share, but you cannot mount two child directories of 
a share if those directories are ancestors of one another on the same filesystem.

Please refer to _Managing NFS and NIS_, O'Reilly, p92:

"2. You cannot export any subdirectory of an exported filesystem unless the
  subdirectory is on a different physical device.

  3. You cannot export any parent directory of an exported filesystem unless
  the parent is on a different physical device."

Some of these restrictions can be mitigated with the -alldirs flag, but look at 
"showmount" to see what you are actually exporting.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?432CED42.2060709>