NFS share on MacOS TrueNAS-SCALE-22.02.1

gertz

Cadet
Joined
May 5, 2022
Messages
3
Hi, I have issue with MacOS devices and showexports function. It's great truenas added "allow_nonroot" function to GUI in ticket NAS-115049, but there is probably still some issues, MacOS still can't see NFS shares with showexpeorts command due RPC error message. If anyone know way to fix this I will be glad.

Thank you for any help.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Thanks for the heads up, probably worth filing a new ticket just to we can keep track of this and investigate if more fixes are needed.
 

d187

Cadet
Joined
May 7, 2022
Messages
7
Unfortunately, the problem still exists with scale 22.12.
Code:
showmount: Cannot retrieve info from host: 192.168.30.11: RPC failed:: RPC: Program/version mismatch; low version = 3, high version = 3

is there a solution?

Kind regards
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Unfortunately, the problem still exists with scale 22.12.
Code:
showmount: Cannot retrieve info from host: 192.168.30.11: RPC failed:: RPC: Program/version mismatch; low version = 3, high version = 3

is there a solution?

Kind regards
Maybe invoke showmount on the MacOS client with the -3 flag?
 

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
That worked.
I'm just curious why you use NFS, when is recommended to use SMBv3 shares with recent macOS releases? You will have better performance on SMB shares and Mojave+, not to mention is easier to setup. Are you running a very old macOS release?

Protocol
Version​
Seq Read Speed​
Seq Write Speed​
NFSv3 / v4551 MB/sec121 MB/sec
SMBv1161 MB/sec169 MB/sec
SMBv3652 MB/sec624 MB/sec

Take a look at Bluefin Upgrade Checklist, to setup properly your SMB shares and dataset permissions.
 
Last edited:

d187

Cadet
Joined
May 7, 2022
Messages
7
if I create a smb share for datasheets that are also assigned in apps (e.g. jellyfin, nextcloud) as 'type of storage = host path', then these apps don't start. only when I deactivate the release do they start.
here the error message:

Code:
Error: Error response from daemon: invalid volume specification: '/mnt/daten-hdd-1/Filme:/media/Filme': Invalid mount path. /mnt/daten-hdd-1/Filme. Following service(s) uses this path: `SMB Share, NFS Share`.


since update on 22.12
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Create an SMB share for the /mnt/pool, your apps will start without issues. Assign proper permissions to each dataset, is all explained into link I posted.
Generally speaking sharing /mnt/pool when the ix-applications dataset is /mnt/pool/ix-applications is not a great idea and may raise a validation error (depending on configuration of child datasets).
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Just to confirm, I experienced no issues with any Bluefin components, that’s why I shared all details of my upgrade setup. From my perspective, specific dataset permissions avoid any interaction with ix-applications dataset, which should never be exposed to end-user.
Just glancing at your info, you have your apps dataset at
/mnt/software/ix-applications

And an SMB share of
/mnt/software

This is as I mentioned a bad idea. It grants all SMB users access to your ix-applications dataset and depending on permissions and mapping of uid/gids within that path may even grant write access. It probably worked for you because all of the datasets in that path had same ZFS properties, but I would be very hesitant to recommend such a setup to other users.

I have WIP patch for samba to prevent it from opening paths within ix-applications dataset or its children, but it's not in BlueFin yet.
 
Last edited:
Top