Re: Mirror mounts not available on FreeBSD? (was: Re: NFSv4 shows all ZFS filesystems as being owned by root)
On Tue, Aug 31, 2010 at 12:20 PM, David Brodbeck wrote: > On Tue, Aug 31, 2010 at 11:52 AM, David Brodbeck wrote: >> When a ZFS filesystem mountpoint is owned by someone other than root, >> this is not depicted properly on NFSv4 clients: > > After playing around a bit more, it appears the problem is that ZFS > filesystems under an NFSv4 mountpoint are not auto-mounted by Linux > clients of a FreeBSD server the way they are when they're clients of > an OpenSolaris server; if I mount them manually, the ownership is > correct. I think OpenSolaris calls this functionality "mirror > mounts." Is there a way to get mirror mounts to work on FreeBSD, or > is it necessary to mount every sub-filesystem manually? The answer is I didn't RTFM carefully enough, and forgot to specify 'nfsd_flags="-e"' and 'mountd_flags="-e"' in my /etc/rc.conf. It's working now. Sorry for the unnecessary thread, but hopefully it'll help someone else searching for the same info in the future. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Mirror mounts not available on FreeBSD? (was: Re: NFSv4 shows all ZFS filesystems as being owned by root)
On Tue, Aug 31, 2010 at 11:52 AM, David Brodbeck wrote: > When a ZFS filesystem mountpoint is owned by someone other than root, > this is not depicted properly on NFSv4 clients: After playing around a bit more, it appears the problem is that ZFS filesystems under an NFSv4 mountpoint are not auto-mounted by Linux clients of a FreeBSD server the way they are when they're clients of an OpenSolaris server; if I mount them manually, the ownership is correct. I think OpenSolaris calls this functionality "mirror mounts." Is there a way to get mirror mounts to work on FreeBSD, or is it necessary to mount every sub-filesystem manually? The intended application here is a server hosting user home directories, where each user has their own ZFS filesystem. Having to list every user in /etc/fstab on every client is not really workable. With an OpenSolaris server, I can have the Linux clients mount /tank/home, and all the filesystems under /tank/home come along for the ride; I'm trying to duplicate this with a FreeBSD server. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
NFSv4 shows all ZFS filesystems as being owned by root
When a ZFS filesystem mountpoint is owned by someone other than root, this is not depicted properly on NFSv4 clients: On the server (FreeBSD 8.1-RELEASE): temp-nfs# zfs create tank/test/testfs temp-nfs# chown brodbd:brodbd /tank/test/testfs temp-nfs# touch /tank/test/testfile temp-nfs# chown brodbd:brodbd /tank/test/testfile temp-nfs# ls -l /tank/test total 2 -rw-r--r-- 1 brodbd brodbd 0 Aug 31 04:48 testfile drwxr-xr-x 2 brodbd brodbd 2 Aug 31 04:48 testfs On the client (RedHat Linux 5.4): r...@dryas:~# mount temp-nfs:/tank/test /test r...@dryas:~# ls -l /test total 2 -rw-r--r-- 1 brodbd brodbd 0 Aug 31 04:48 testfile drwxr-xr-x 2 root root 2 Aug 31 04:48 testfs The same sequence works as expected when the server runs OpenSolaris. Am I missing something? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"