Hi,
I've a TrueNAS (TrueNAS-12.0-U8.1) installed and configured, but I've some problems with NFS, maybe It's only a concept problem (I come from Linux and their NFS look different than Freebsd).
My target is to share diferentes folders by NFS to different servers.
I've created a pool (POOL-SATA) and one dataset in this pool (nfs). Inside this dataset I've created three folders (A,B,C) (this directory has been created from cli).
POOL-SATA => NFS (dataset) => FolderA (directory) (only accessible by server A)
FolderB (directory) (only accessible by server B)
FolderC (directory) (only accessible by server C)
My problem is when I want to only mount "Folder A" for "ServerA" and restrict to mount "FolderB" and "FolderC". For example, on "server A" I can mount "FolderA" but also "FolderB" and "FolderC". This is my export file:
I've checked that if I created every folder as a new dataset inside dataset "NFS" this works without problem but I'm not sure if this is the right way.
POOL-SATA => NFS (dataset) => FolderA (dataset) (only accessible by server A)
FolderB (dataset) (only accessible by server B)
FolderC (dataset) (only accessible by server C)
I've a TrueNAS (TrueNAS-12.0-U8.1) installed and configured, but I've some problems with NFS, maybe It's only a concept problem (I come from Linux and their NFS look different than Freebsd).
My target is to share diferentes folders by NFS to different servers.
I've created a pool (POOL-SATA) and one dataset in this pool (nfs). Inside this dataset I've created three folders (A,B,C) (this directory has been created from cli).
POOL-SATA => NFS (dataset) => FolderA (directory) (only accessible by server A)
FolderB (directory) (only accessible by server B)
FolderC (directory) (only accessible by server C)
My problem is when I want to only mount "Folder A" for "ServerA" and restrict to mount "FolderB" and "FolderC". For example, on "server A" I can mount "FolderA" but also "FolderB" and "FolderC". This is my export file:
Code:
/mnt/POOL-SATA/nfs/FolderA -maproot="root" 192.168.150.20 /mnt/POOL-SATA/nfs/FolderB -maproot="root" 192.168.150.21
I've checked that if I created every folder as a new dataset inside dataset "NFS" this works without problem but I'm not sure if this is the right way.
POOL-SATA => NFS (dataset) => FolderA (dataset) (only accessible by server A)
FolderB (dataset) (only accessible by server B)
FolderC (dataset) (only accessible by server C)