sharing datasets with NFS

Status
Not open for further replies.

Yell

Explorer
Joined
Oct 24, 2012
Messages
74
I have a single Raidz2 with the following setup

Pool and datasets have permissions nobody:nobody (775).
Code:
Volume	 	 	 Path
datapool	 	 	 /mnt/datapool
datapool/Anime	 /mnt/datapool/Anime
datapool/Stuff	 /mnt/datapool/Stuff


Chown'ed the directoy's to nobody:nobody
Code:
drwxrwxr-x   32 nobody  nobody   33 Oct 27 22:05 Anime
drwxrwxr-x  247 nobody  nobody  247 Oct 27 22:26 Stuff


I also created a nfs share for the pool and it's child dataset with option "All Directories" and Mapall to nobody.


Problem:
When i mount the "datapool" with nfs, i'm unable to read/write in the child datasets. (shows owner root).

Is it possible that the dataset are treaded like filesystems? (as far as i know, nfs cannot jump across filesystem boundaries )
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Yes, datasets are treated (for the purposes of this discussion) as separate filesystems by ZFS. It's part of the point of them.
 

Yell

Explorer
Joined
Oct 24, 2012
Messages
74
Do i have any other option for a single client connection point other than:

1) using CIFS
2) moving data from the datasets to the pool, and mount this with nfs
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
3) Mount the datasets via NFS, which I believe is the usual solution. I realize it isn't a "single client connection point" in that case. I'm not sure using CIFS necessarily fixes it, by the way, I haven't tried cross-mountpoint CIFS so it might or might not work.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
* sftp / ftp mounting would be a possible solution
 

Yell

Explorer
Joined
Oct 24, 2012
Messages
74
well i ended up using rsync over ssh, with the downside i cant browse directorys.

Btw grsync is a nice GUI frontend.
 
Status
Not open for further replies.
Top