Sharing ZFS Volume: AFP, SMB, NFS, whatever!

Moderators: jhartley, MSR734, nola

avoid sharing the root of a volume

Post by grahamperrin » Thu Nov 29, 2012 2:49 am

mkush wrote:… share either the root of the ZFS volume or any folder on it …


Again, please: for now, avoid the root when sharing. Something not specific to ZFS (but likely to affect ZEVO) may cause test results to be confusing. Thanks.
grahamperrin Offline

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

app not responding

Post by grahamperrin » Thu Nov 29, 2012 3:01 am

mkush wrote:… In the case of a failed read, I believe I just get a beach ball …


If it affects Finder, then for example:

Code: Select all
sudo spindump Finder


– then before you shut down or restart the system, move the result of spindump
away from /tmp

… but hopefully with liberate hack, apps will respond normally.
grahamperrin Offline

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

SMB and error -36

Post by grahamperrin » Thu Nov 29, 2012 3:09 am

mkush wrote:… SMB … Error code -36 …


Archived by Apple: Mac OS X 10.4: Error -36 alert displays when connecting to a Windows server, Mac OS System Error Codes: 0 to -261 and more.

For the purpose of this topic, I'd take the description given by Apple – 

-36 ioErr I/O error (bummers)

– as an indication that explaining and/or resolving that symptom could be a bummer. Man. It's the sort of thing that needs a dedicated topic or even better, a question in Ask Different. But if both client and server are Mac-based, my strongest recommendation is AFP.
grahamperrin Offline

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

Re: app not responding

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

grahamperrin wrote:… but hopefully with liberate hack, apps will respond normally.


indeed, I went back to afp user home sharing - home sync working with no issues (inside Mac perimeter), although I can't log from other (linux) machines to network accounts, fast user switching is not working etc - but this is caused by using afp, not zevo nor liberate hack of course.

br,
Matus
mk01 Offline


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

Re: Sharing ZFS Volume: AFP, SMB, NFS, whatever!

Post by mkush » Thu Nov 29, 2012 9:23 am

Thanks to all. My next thing to try is the liberate hack.

BUT, I still have doubts. mk01, can you verify how you have your file permissions set on your Zevo volume, and the folder you're sharing from it? And your users... Just the same username on both Macs (nothing fancy like a user defined on an OS X Server, right)?

And you are writing files, right? I can read fine at this point.

Thanks!
mkush Offline


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

Re: Sharing ZFS Volume: AFP, SMB, NFS, whatever!

Post by mk01 » Thu Nov 29, 2012 10:34 am

mkush,

1) 755
2) it is shared home dir pool, so each and every dir corresponds to a different user, anyhow mostly like apple default. 755 and 700 deeper.
3) it's opendir authentication, so yes, uid 1010 is uid 1010 everywhere (nfs with krb5 security - so yes, tested user is the same).

btw: read is fine (until zero root and read dir plus nfs option).

br,
Matus
mk01 Offline


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

Re: Sharing ZFS Volume: AFP, SMB, NFS, whatever!

Post by mkush » Thu Nov 29, 2012 5:26 pm

mk01, thanks. Read is fine for me too. How about write for you?
mkush Offline


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

Re: Sharing ZFS Volume: AFP, SMB, NFS, whatever!

Post by mk01 » Thu Nov 29, 2012 6:05 pm

it described in details over here viewtopic.php?f=4&t=1834

but if you are keen in learning and knowing NFS :D , test this.

1) take mountpoint of your root zfs and put it in /etc/exports as this line:
[mountpoint] -alldirs -mapall=[id]
where [id] is your uid (command "id" in terminal will show it. put "sudo nfsd update" into terminal.
2) from finder or terminal create directory in this zfs, make sure you are the owner - chown [id] [mountpoint]/dir
3) mount this dir on other mac with no other option
4) open terminal, cd into this mounted dir and put "mkdir test"
5) with ls -la check owner

normally it should be you ([id]). I get always root.

br,
Matus
mk01 Offline


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

Re: Sharing ZFS Volume: AFP, SMB, NFS, whatever!

Post by mkush » Fri Nov 30, 2012 2:26 am

Success using liberated AFP!!!! See details in the AFP thread, where I also give step by step instructions on doing the AFP liberate. :D
mkush Offline


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

Re: Sharing ZFS Volume: AFP, SMB, NFS, whatever!

Post by mk01 » Fri Nov 30, 2012 7:30 am

yes, that's why we recommended it to you. I was more curious regarding NFS and confirmation, that it's doing the same ...
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