Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ZFS export shares via NFSv4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tenspd137
Guru
Guru


Joined: 22 Aug 2006
Posts: 391

PostPosted: Fri Mar 08, 2013 2:34 am    Post subject: ZFS export shares via NFSv4 Reply with quote

Hi all,

Back with another ZFS question. How do you share with NFSv4. For example, my rpool is structured like this:

rpool
rpool/HOME
rpool/HOME/<user>

before, I created a pseudo file system like:

/nfs/home

and mounted /home to /nfs/home using mount --bind /home /nfs/home and then put
/nfs @netgroup(rw, [other options])
/nfs/home @netgroup(rw, [other options])

and I was able to access user directories without a problem via autofs and the /net/<server>/home/<user> mechanism. I haven't been able to figure out the right combination using ZFS shaes. So far, the only thing I have figured out is that the syntax for the zfs sharenfs property looks like this:

sharenfs=rw=@@netgroup

to use netgroups. Then, after turning on zfs shares, exportfs will return

<share> @netgroup

Other than that, I haven't go the right combination yet. Any suggestions?

Thanks!
Back to top
View user's profile Send private message
ryao
Retired Dev
Retired Dev


Joined: 27 Feb 2012
Posts: 132

PostPosted: Mon Mar 18, 2013 7:18 pm    Post subject: Reply with quote

Unfortunately, I have not found time to play with NFS on ZFS. In theory, Oracle's Solaris documentation should work:

http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html

If that does not work, you can always configure NFS shares on ZFS the same way that you would for NFS shares on ext4. It would also be a good idea to file a bug report for me.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 18, 2013 7:28 pm    Post subject: Reply with quote

Moved from Unsupported Software to Kernel & Hardware as ZFS is in the Portage tree.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
tenspd137
Guru
Guru


Joined: 22 Aug 2006
Posts: 391

PostPosted: Sun Mar 24, 2013 1:19 am    Post subject: Reply with quote

What I ended up doing right now was forcing everything to NFSv3 using regular NFS, not the built in ZFS exporting. Unfortunatley, it is the computer I use at work, and we have a really shakey setup at best. I couldn't tell where the real problem may have been, but because it works, they won't let me experiment at work.

Thanks for all your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum