Scott Adair
2007-Jul-23 16:46 UTC
[zfs-discuss] ZFS and NFS Mounting - Missing Permissions
Hi I''m trying to setup a new NFS server, and wish to use Solaris and ZFS. I have a ZFS filesystem set up to handle the users home directories and setup sharing # zfs list NAME USED AVAIL REFER MOUNTPOINT data 896K 9.75G 35.3K /data data/home 751K 9.75G 38.0K /data/home data/home/bob 32.6K 9.75G 32.6K /data/home/bob data/home/joe 647K 9.37M 647K /data/home/joe data/home/paul 32.6K 9.75G 32.6K /data/home/paul # zfs get sharenfs data/home NAME PROPERTY VALUE SOURCE data/home sharenfs rw local And these directories are owned by the user # ls -l /data/home total 12 drwxrwxr-x 2 bob sigma 2 Jul 23 08:47 bob drwxrwxr-x 2 joe sigma 4 Jul 23 11:31 joe drwxrwxr-x 2 paul sigma 2 Jul 23 08:47 paul I have the top level directory shared (/data/home). When I mount this on the client pc (ubuntu) I loose all the permissions, and can''t see any of the files.. root at torsmp01lx:/nfs/home# ls -l total 6 drwxr-xr-x 2 root root 2 2007-07-23 08:47 bob drwxr-xr-x 2 root root 2 2007-07-23 08:47 joe drwxr-xr-x 2 root root 2 2007-07-23 08:47 paul root at torsmp01lx:/nfs/home# ls -l joe total 0 However, when I mount each directory manually, it works.. root at torsmp01lx:~# mount torit01sx:/data/home/joe /scott root at torsmp01lx:~# ls -l /scott total 613 -rwxrwxrwx 1 joe sigma 612352 2007-07-23 11:32 file Any ideas? When I try the same thing with a UFS based filesystem it works as expected root at torsmp01lx:/# mount torit01sx:/export/home /scott root at torsmp01lx:/# ls -l scott total 1 drwxr-xr-x 2 joe sigma 512 2007-07-23 12:25 joe Any help would be greatly appreciated.. Thanks in advance Scott This message posted from opensolaris.org
Richard Elling
2007-Jul-23 20:35 UTC
[zfs-discuss] ZFS and NFS Mounting - Missing Permissions
Scott Adair wrote:> Hi > > I''m trying to setup a new NFS server, and wish to use Solaris and ZFS. I have a ZFS filesystem set up to handle the users home directories and setup sharing > > # zfs list > NAME USED AVAIL REFER MOUNTPOINT > data 896K 9.75G 35.3K /data > data/home 751K 9.75G 38.0K /data/home > data/home/bob 32.6K 9.75G 32.6K /data/home/bob > data/home/joe 647K 9.37M 647K /data/home/joe > data/home/paul 32.6K 9.75G 32.6K /data/home/paul > > # zfs get sharenfs data/home > NAME PROPERTY VALUE SOURCE > data/home sharenfs rw local > > And these directories are owned by the user > > # ls -l /data/home > total 12 > drwxrwxr-x 2 bob sigma 2 Jul 23 08:47 bob > drwxrwxr-x 2 joe sigma 4 Jul 23 11:31 joe > drwxrwxr-x 2 paul sigma 2 Jul 23 08:47 paul > > I have the top level directory shared (/data/home). When I mount this on the client pc (ubuntu) I loose all the permissions, and can''t see any of the files../data/home is a different file system than /data/home/joe. NFS shares do not cross file system boundaries. You''ll need to share /data/home/joe, too. -- richard> root at torsmp01lx:/nfs/home# ls -l > total 6 > drwxr-xr-x 2 root root 2 2007-07-23 08:47 bob > drwxr-xr-x 2 root root 2 2007-07-23 08:47 joe > drwxr-xr-x 2 root root 2 2007-07-23 08:47 paul > > root at torsmp01lx:/nfs/home# ls -l joe > total 0 > > However, when I mount each directory manually, it works.. > > root at torsmp01lx:~# mount torit01sx:/data/home/joe /scott > > root at torsmp01lx:~# ls -l /scott > total 613 > -rwxrwxrwx 1 joe sigma 612352 2007-07-23 11:32 file > > Any ideas? When I try the same thing with a UFS based filesystem it works as expected > > root at torsmp01lx:/# mount torit01sx:/export/home /scott > > root at torsmp01lx:/# ls -l scott > total 1 > drwxr-xr-x 2 joe sigma 512 2007-07-23 12:25 joe > > Any help would be greatly appreciated.. Thanks in advance > > Scott > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss