I'm looking at implementing home directories on ZFS.  This will be
about 400 users, each with a quota.  The ZFS way of doing this AIUI is
create one filesystem per user, assign them a quota and/or
reservation, and set sharenfs=on.  So I tried it:
# zfs create local-space/test
# zfs set sharenfs=on local-space/test
# zfs create local-space/test/foo
# zfs create local-space/test/foo/bar
# share
-               /export/local-space/test   rw   ""
-               /export/local-space/test/foo   rw   ""
-               /export/local-space/test/foo/bar   rw   ""
All good so far.  Now, I understand that with nfs in general, the
child filesystems will not be mounted, and I do see this behavior on
Linux.  If I specify nfs4, the children are mounted as I expected:
# mount -t nfs4 server:/export/local-space/test /mnt/
# cd /mnt/
# ls
foo
# ls foo
bar
Okay, all is well.  Try the same thing on a Solaris client, though,
and it doesn't work:
# mount -o vers=4 ds3:/export/local-space/test /mnt/
# cd mnt
# ls
foo
# ls foo
<nothing>
On the Linux machine, nfsstat -m shows that the child filesystems have
each been mounted independently, but on the Solaris machine only the
'test' filesystem get mounted.  nfsstat -m shows it's mounted with
nfsv4, but none of the child filesystems are automatically mounted.

So, my questions are:
* Are there options I can set server- or client-side to make Solaris
child mounts happen automatically (i.e., match the Linux behavior)?
* Will this behave with automounts?  What I'd like to do is list
/export/home in the automount master file, but not all the child
filesystems.
* Is there a simpler way to accomplish this task in general without
resorting to UFS?

Any input is welcome.  I'm not subscribed to nfs-discuss, so please CC
me if you respond on that list.

Thanks!
Will
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to