Date: Mon, 23 Feb 2015 18:01:29 -0500 (EST) From: Rick Macklem <rmacklem@uoguelph.ca> To: Martin Simmons <martin@lispworks.com> Cc: freebsd-fs@freebsd.org Subject: Re: The magic of ZFS and NFS (2nd try) Message-ID: <1256589852.9218646.1424732489750.JavaMail.root@uoguelph.ca> In-Reply-To: <201502231413.t1NEDITT000687@higson.cam.lispworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Martin wrote: > >>>>> On Sat, 21 Feb 2015 18:34:12 +0100, Christian Baer said: > > > > Russell L. Carter wrote: > > > > > Post your /etc/exports, and the nfs*_enable bits of /etc/rc.conf. > > > And > > > as Rainer noted you definitely need to check that uid/gid match > > > on > > > both server and client. > > > > Pretty boring stuff... > > > > root@obelix:~ # cat /etc/exports > > V4: /usr/archive/Shared -alldirs -network 192.168.100/24 > > > > I reduced the shares to one for the time being. > As Martin notes below, the above does not export any file system. Add a line for /usr/archive/Shared to /etc/exports just like you would have for UFS and then send a HUP signal (kill -HUP <mountd-pid>) to make the changes to /etc/exports take effect. - After this, check for syslog messages, in case the exports syntax isn`t correct. I know nothing about ZFS, but my understanding is that you can do everything in /etc/exports just like you would for UFS. (I'm not even sure what ZFS calls a file system, but every line you see when you type "mount" with no arguments is a file system as far as FreeBSD is concerned.) Every file system you want to access from client(s) must have an line in exports (or in the ZFS stuff if you choose to do it that way). The only difference for NFSv4 is that the client(s) don`t have to do separate mounts for each file system, but they all must be exported to the client(s). Hope this helps, rick ps: You only have one V4: line because there is only one place in the server`s directory tree that can be a root for NFSv4. > 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. > > __Martin > _______________________________________________ > 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?1256589852.9218646.1424732489750.JavaMail.root>