nfs mount issue cannot see files from freenas as root

iliak

Contributor
Joined
Dec 18, 2018
Messages
148
i have an nfs mount, with root@wheel default permissions

after mounting from another computer (ubuntu 18.04) i have added files and folders
(all the other computer that have this mount can see the files)

the folder is under dataset

but i want to launch a script (from freenas) to delete old files, ( 1 week old on daily basis )
for some reason when i go to the mounted folder and do ls command most of them does not exist and not shown in ls command
from freenas as root i tried to access them via
/mnt/<pool>/<sharename>


update: removed the dataset and now it is working,
but i still want the dataset in order to limit size of the folder
 
Last edited:
Joined
Dec 29, 2014
Messages
1,135
How is your share defined? I suspect you are missing the "maproot" options.
1550749213494.png
 

iliak

Contributor
Joined
Dec 18, 2018
Messages
148
Elliot Dierksen, Nope this is what i tried.
the issue exist only when there is a dataset set on the folder i am sharing
 

anmnz

Patron
Joined
Feb 17, 2018
Messages
286
Elliot Dierksen, Nope this is what i tried.
the issue exist only when there is a dataset set on the folder i am sharing
That's normal. NFS shares filesystems and a dataset is a filesystem. An NFS share will share just a single dataset, not any other datasets that happen to be mounted inside it.
 

iliak

Contributor
Joined
Dec 18, 2018
Messages
148
is there are other way to share and limit storage size?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
To limit storage size you use the quota feature.
 

iliak

Contributor
Joined
Dec 18, 2018
Messages
148
how i can do it without datasets?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Directories don't have quota's only datasets do. You could just make a bunch of datasets. If you want directory quota's you need to start looking at Enterprise filesystem.
 
Top