nfs export again

Moderators: jhartley, MSR734, nola

mount_nfs(8) rdirplus versus ZEVO or ZFS?

Post by grahamperrin » Wed Nov 28, 2012 12:05 am

mk: thanks. Smart troubleshooting.

Anyone, please: are the symptoms detailed above (on the previous page) to be expected when the rdirplus plus option of mount_nfs(8) is used?

Whilst I don't use NFS, the near-total emptiness seems beyond the bounds of degraded performance (see below).

If not as expected … Don, please, is this:

  1. something that we might feed to Apple (bug or enhancement);
  2. something to be fed to developers of NFS; or
  3. a consideration for developers of ZEVO? #zevo

References

Apple open source for NFS-73 in OS X 10.8.2

No match for NFS at lists.apple.com Mailing Lists.

From Apple's mount_nfs(8) OS X Manual Page, for the NFS-specific rdirplus option:

----
Used with NFS v3/v4 to specify that directory read operations should retrieve additional information about each entry (e.g. use the NFSv3 ReaddirPlus RPC). This option typically reduces RPC traffic for cases such as directory listings that use or display basic attributes (e.g. ``ls -F'' and ``find . -type f'' ). Note that the long directory listing format case (i.e. ``ls -l'' ) may not be helped much when the file system does not natively support extended attributes. Older implementations tended to flood the vnode and name caches with prefetched entries which may not be referenced. The current implementation avoids creating those entries until they are referenced. Try this option and see whether performance improves or degrades. Probably most useful for client to server network interconnects with a large bandwidth times delay product.
----
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: nfs export again

Post by mkush » Wed Nov 28, 2012 4:18 pm

mk01,

I am thinking of sharing a ZFS volume via NFS from a Mac Pro running 10.8.2. Clients will also be 10.8 Macs. I have never tried NFS. Would you be willing to tell how you got it going, both on the server and client?

Thanks!
mkush Offline


 
Posts: 34
Joined: Tue Sep 25, 2012 4:36 pm

Re: nfs export again

Post by grahamperrin » Wed Nov 28, 2012 10:10 pm

To keep general help for NFS (and other distributed file systems) separate from the problem in this topic:

grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: nfs export again

Post by mk01 » Thu Nov 29, 2012 3:35 am

graham,

no usage of rdirplus helps only to mac clients. linux gets io error while ls-la zfs root dir. but bigger issue is, that the nfs export behaves like with -mapall=0. you can use -mapall=id, -maproot=id, nfs created files / folders have always creatorid = 0, group is correct.

it is possible to create new files / folders (if currently logged user has right to do so in the current folder) - this looks like user=id acl is taking place, but it's also possible to edit (delete) files owned by anyone with chmod 600 (like with root access), but it's not possible to create new if logged user has not the right to do so.

very confusing. this testing was performed on directory below root of zfs and is the same for mac as for linux clients.

br,
Matus
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Previous

Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 3 guests

cron