Hi. I have created some zfs-partitions. First I create the home/user-partitions. Beneath that I create additional partitions. Then I have do a chown -R for that user. These partitions are shared using the sharenfs=on. The owner- and group-id is 1009. These partitions are visible as the user assigned above. But when I mount the home/user partition from a FreeBSD-client, only the top-partiton has the proper uid- and guid-assignment. The partitons beneath are assigned to the root/wheel (uid 0 and gid 0 on FreeBSD). Am I doing something wrong>From nfs-client:ls -l spool drwxr-xr-x 181 print print 181 16 oct 21:00 2007-10-16 drwxr-xr-x 2 root wheel 2 11 oct 11:07 c8>From nfs-server:ls -l spool drwxr-xr-x 185 print print 185 Oct 16 21:10 2007-10-16 drwxr-xr-x 6 print print 6 Oct 13 17:10 c8 The folder 2007-10-16 is a regular folder below the nfs-mounted partition, c8 is a zfs-partition. -- regards Claus When lenity and cruelty play for a kingdom, the gentlest gamester is the soonest winner. Shakespeare
Claus, Is the mount using NFSv4? If so, there is likely a midguided mapping of the user/groups between the client and server. While not including BSD info, there is a little bit on NFSv4 user/group mappings at this blog: http://blogs.sun.com/nfsv4 Spencer On Oct 16, 2007, at 2:11 PM, Claus Guttesen wrote:> Hi. > > I have created some zfs-partitions. First I create the > home/user-partitions. Beneath that I create additional partitions. > Then I have do a chown -R for that user. These partitions are shared > using the sharenfs=on. The owner- and group-id is 1009. > > These partitions are visible as the user assigned above. But when I > mount the home/user partition from a FreeBSD-client, only the > top-partiton has the proper uid- and guid-assignment. The partitons > beneath are assigned to the root/wheel (uid 0 and gid 0 on FreeBSD). > > Am I doing something wrong > >> From nfs-client: > > ls -l spool > drwxr-xr-x 181 print print 181 16 oct 21:00 2007-10-16 > drwxr-xr-x 2 root wheel 2 11 oct 11:07 c8 > >> From nfs-server: > ls -l spool > drwxr-xr-x 185 print print 185 Oct 16 21:10 2007-10-16 > drwxr-xr-x 6 print print 6 Oct 13 17:10 c8 > > The folder 2007-10-16 is a regular folder below the nfs-mounted > partition, c8 is a zfs-partition. > > -- > regards > Claus > > When lenity and cruelty play for a kingdom, > the gentlest gamester is the soonest winner. > > Shakespeare > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
> Is the mount using NFSv4? If so, there is likely a midguided > mapping of the user/groups between the client and server. > > While not including BSD info, there is a little bit on > NFSv4 user/group mappings at this blog: > http://blogs.sun.com/nfsv4It defaults to nfs ver. 3. As a sidenote samba is running on this machine as well, and the windows-share is able to read and write to the sub-partitons (under home/user). -- regards Claus When lenity and cruelty play for a kingdom, the gentlest gamester is the soonest winner. Shakespeare
On 10/16/07, Claus Guttesen <kometen at gmail.com> wrote:> I have created some zfs-partitions. First I create the > home/user-partitions. Beneath that I create additional partitions. > Then I have do a chown -R for that user. These partitions are shared > using the sharenfs=on. The owner- and group-id is 1009. > > These partitions are visible as the user assigned above. But when I > mount the home/user partition from a FreeBSD-client, only the > top-partiton has the proper uid- and guid-assignment. The partitons > beneath are assigned to the root/wheel (uid 0 and gid 0 on FreeBSD). > > Am I doing something wrongDid you mount both the parent and all the children on the client ? -- Paul Kraus
> > I have created some zfs-partitions. First I create the > > home/user-partitions. Beneath that I create additional partitions. > > Then I have do a chown -R for that user. These partitions are shared > > using the sharenfs=on. The owner- and group-id is 1009. > > > > These partitions are visible as the user assigned above. But when I > > mount the home/user partition from a FreeBSD-client, only the > > top-partiton has the proper uid- and guid-assignment. The partitons > > beneath are assigned to the root/wheel (uid 0 and gid 0 on FreeBSD). > > > > Am I doing something wrong > > Did you mount both the parent and all the children on the client ?No, I just assumed that the sub-partitions would inherit the same uid/gid as the parent. I have done a chown -R. That would be a neat feature because I have some fairly large partitions hosted on another server (solaris 9 on sparc and vxfs) which shares disk via nfs. Everytime I create a new partition I must create and mount the partitons on each webserver. Not that I have many webservers, but it would be nice to create a /data-partition, then a image-partition below that and then a, b, c, d, e, f etc. (/data/image/a). Then all I had to do was to mount the image-partiton and I wouldn''t have to worry about mounting other than the image-partition on the webserver. -- regards Claus When lenity and cruelty play for a kingdom, the gentlest gamester is the soonest winner. Shakespeare
On 10/17/07, Claus Guttesen <kometen at gmail.com> wrote:> > Did you mount both the parent and all the children on the client ? > > No, I just assumed that the sub-partitions would inherit the same > uid/gid as the parent. I have done a chown -R.Ahhh, the issue is not permissions, but how the NFS server sees the various directories to share. Each dataset in the zpool is seen as a separate FS from the OS perspective; each is a separate NFS share. In which case each has to be mounted separately on the NFS client. -- Paul Kraus
> > > Did you mount both the parent and all the children on the client ? > > > > No, I just assumed that the sub-partitions would inherit the same > > uid/gid as the parent. I have done a chown -R. > > Ahhh, the issue is not permissions, but how the NFS server > sees the various directories to share. Each dataset in the zpool is > seen as a separate FS from the OS perspective; each is a separate NFS > share. In which case each has to be mounted separately on the NFS > client.Thank you for the clarification. When mounting the same partitions from a windows-client I get r/w access to both the parent- and child-partition. Will it be possible to implement such a feature in nfs? -- regards Claus When lenity and cruelty play for a kingdom, the gentlest gamester is the soonest winner. Shakespeare
On Oct 17, 2007, at 11:25 AM, Claus Guttesen wrote:>>>> Did you mount both the parent and all the children on the client ? >>> >>> No, I just assumed that the sub-partitions would inherit the same >>> uid/gid as the parent. I have done a chown -R. >> >> Ahhh, the issue is not permissions, but how the NFS server >> sees the various directories to share. Each dataset in the zpool is >> seen as a separate FS from the OS perspective; each is a separate NFS >> share. In which case each has to be mounted separately on the NFS >> client. > > Thank you for the clarification. When mounting the same partitions > from a windows-client I get r/w access to both the parent- and > child-partition. > > Will it be possible to implement such a feature in nfs?NFSv4 allows the client visibility into the shared filesystems at the server. It is up to the client to "mount" or access those individual filesystems. The Solaris client is being updated with this functionality (we have named it mirror-mounts); I don''t know about the bsd client''s ability to do the same. Spencer
On 10/17/07, Claus Guttesen <kometen at gmail.com> wrote:> Thank you for the clarification. When mounting the same partitions > from a windows-client I get r/w access to both the parent- and > child-partition.That is because the Windows clients are mounting via SMB (Samba) and since Samba is running on the server and the server has all of the children mounted Samba can see them. -- Paul Kraus