Weird NFS permissions problem

Status
Not open for further replies.

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
This is driving me crazy, FreNAS 8.0.2 Release / AMD64)

I have my top level ZFS volume /mnt/tank exported
I have a dataset below that /mnt/tank/dataset

The dataset permissions in the GUI are 777
The parent folder /mnt/tank is 777
The dataset at the command line is 777
The owner/group is admin:guest

When I mount from a FreeBSD system (mount -t nfs 10.0.0.10:/mnt/tank /mnt/tank),
ls -ld on the FreeBSD client shows 755

I can create and do whatever to other files/directories, but when I try to do anything in the dataset folder /mnt/tank/dataset it shows up empty!
All the directories in that dataset are 777 admin:guest
All the directories in the parent /mnt/tank are 777 admin:guest

Even with permissions of 755 on the client I should be able to list the directory.
I'm familiar enough with this stuff that I shouldn't be having this problem, does anyone have an idea?

Here's the line from /etc/exports:

/mnt/tank -alldirs -mapall=admin:guest -network 10.0.0.1/24

It's just the one bloody folder with the dataset

Oh, the dataset from the client looks like this:

drwxr-x-r-x 2 root guest 2 Aug 6 23:15 dataset
 

peterh

Patron
Joined
Oct 19, 2011
Messages
315
if your /mnt/tank is one filesystem and /mnt/tank/dataset another filesystem ( mounted on /mnt/tank on the server)
then you need to export /mnt/tank/dataset also.

remember nfs export is exporting filesystems ( not files or directories )
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Thanks Peterh,

That was it, I wasn't thinking of a dataset as a Device/Partition since it was a subdirectory of my main mountpoint and I was able to access other subdirectories which weren't datasets without a problem. Its just one more of those little gotchas with ZFS that I wasn't aware of. Everything's working as expected now! :)
 
Status
Not open for further replies.
Top