Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2015 18:02:23 -0500 (EST)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Christian Baer <christian.baer@uni-dortmund.de>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: The magic of ZFS and NFS (2nd try)
Message-ID:  <69023850.2194024.1425078143967.JavaMail.root@uoguelph.ca>
In-Reply-To: <2401301.b3eZRBi7it@falbala.rz1.convenimus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Christian Baer wrote:
> Martin Simmons wrote:
> 
> > According to exports(5), that reduces it to zero:
> > The third form has the string ``V4:'' followed by a single absolute
> > path
> > name,
> > to specify the NFSv4 tree root.  This line does not export any file
> > system,
> >                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > but simply marks where the root of the server's directory tree is
> > for
> > NFSv4
> > clients.  The exported file systems for NFSv4 are specified via the
> > other
> > lines in the exports file in the same way as for NFSv2 and NFSv3.
> 
> I see the part in the manpage you are referring to. The way nfs
> reacts
> doesn't seem to be that way though. I have changed the contents of
> /etc/exports to
> 
> /usr/archive/Shared    -alldirs -network 192.168.100/24
> 
You need both lines for an NFSv4 mount to work. For example:
V4: /usr/archive/Shared -network 192.168.100/24
/usr/archive/Shared    -alldirs -network 192.168.100/24

Then the client mount command would look like:
mount -t nfs -o nfsv4 <server>:/ /mnt
- Note that if the V4: line specifies /usr/archive/Shared as its root,
  then the client mounts that as "/".

If you want to mount the same dir as NFSv3, the mount would look like:
mount -t nfs -o nfsv3 <server>:/usr/archive/Shared /mnt

> I still cannot mount that share.
> 
> The V4: at the beginning of the line did not change anything I could
> notice.
It enables NFSv4 and tells the server where the client mount's "/" is.

> If I let the path point to a ZFS file system, I get permission
> denied, when
> it points to a path on UFS, it works fine.
> 
> Die directories in question have the correct owner and group. Is
> there some
> way that ZFS may have a different setting for this?
> 
Not that I am aware, but I am not a ZFS guy, rick

> Kind regards,
> Christian
> 
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69023850.2194024.1425078143967.JavaMail.root>