Hello, I have a ZFS filesystem structure, which is basically like this: /foo /foo/bar /foo/baz all are from one pool and /foo does only contain the other directories/mounts (no other files) When I try to export /foo via dfstab, I can see the directories bar and baz, but these are empty. Can I only export via NFS each subdir on its own ? thanks in advance. Thomas
This is because with ZFS the directories aren''t REALLY there. You need to either use NFSv4 or you need to export each ZFS filesystem independently On Fri, Sep 11, 2009 at 4:54 PM, Thomas Uebermeier <thomas.uebermeier at fmi.ch> wrote:> Hello, > > I have a ZFS filesystem structure, which is basically like this: > > /foo > /foo/bar > /foo/baz > > all are from one pool and /foo does only contain the other > directories/mounts (no other files) > > When I try to export /foo via dfstab, I can see the directories bar and > baz, > but these are empty. > Can I only export via NFS each subdir on its own ? > > thanks in advance. > > Thomas > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090912/99614402/attachment.html>
On Sat, 12 Sep 2009, Thomas Burgess wrote:> This is because with ZFS the directories aren''t REALLY there. > You need to either use NFSv4 or you need to export each ZFS filesystem > independentlyIt should be sufficient to use an appropriate automount rule on the client so that the "subordinate" filesystem gets mounted. That is what I do here. The problem is usually the mount from the client rather than the NFS export from the server. For example, under OS X Leopard this is what I do to access home directories exported under "freddy:/home": % cat /etc/auto_home # # Automounter map for /home # #+auto_home # Use directory service * freddy:/home/& And for FreeBSD I use this gobbly-gook: % cat /etc/home.map * type:=nfs;rhost:=freddy;rfs:=/home/${key};fs:=${autodir}/${rhost}${rfs};opts:=rw,grpid,resvport,vers=3,proto=tcp,nosuid,nodev Bob -- Bob Friesenhahn bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
what you want is possible with linux nfs, but solaris nfs developers don`t like this feature and will not implement it. see http://www.opensolaris.org/jive/thread.jspa?threadID=109178&start=0&tstart=0 -- This message posted from opensolaris.org