NFS: Qnap server / macOS client

Questions about using NAS on Mac OS.
Post Reply
AnnoMeNuehm
New here
Posts: 4
Joined: Fri Feb 19, 2021 1:47 pm

NFS: Qnap server / macOS client

Post by AnnoMeNuehm » Fri Feb 19, 2021 2:00 pm

Hi,

On my LAN there are various NAS devices acting as file servers, as well as multiple macOS clients, facilitating these file servers.

There is no directory (ldap et al) or common authentication service (kerberos et al) in place.

The available user & group ids are specific to each of those devices, and they are not synchronised across all of them, resulting in eg.user #1 has got a different id on a NAS and a Mac.

I am not about migrating the current file share setup from AFP to NFS, and I am wondering how best to go about this task, without having to introduce ldap or kerberos to my environment, without having to synchronise the user & group id across all devices.

I have done some research and stumbled across user & group id mapping, and nfs v4, but I have to admit I have got no clue as where to tweak, what to configure, in order to successfully set this up.

My starting point would be a Qnap TS251b sporting QTS 4.5.2 and a Mac mini M1 running macOS 11 Big Sur.

Any help, any hint would be more than appreciated.

-- Anno
Qnap TS251b4g
QTS 4.5.2

AnnoMeNuehm
New here
Posts: 4
Joined: Fri Feb 19, 2021 1:47 pm

Re: NFS: Qnap server / macOS client

Post by AnnoMeNuehm » Mon Feb 22, 2021 2:54 pm

Actually it is supposed to read "...I am NOW about migrating.." instead of "...I am not about migrating..." -- my bad
Qnap TS251b4g
QTS 4.5.2

torch1
Know my way around
Posts: 115
Joined: Thu Jul 04, 2019 4:53 am

Re: NFS: Qnap server / macOS client

Post by torch1 » Wed Feb 24, 2021 10:31 pm

Have you considered using SMB instead of NFS?

AnnoMeNuehm
New here
Posts: 4
Joined: Fri Feb 19, 2021 1:47 pm

Re: NFS: Qnap server / macOS client

Post by AnnoMeNuehm » Wed Feb 24, 2021 11:07 pm

Yes, but in my purely macOS & iOS environment, and with smb's limitation regarding filenames, directory hierarchies et al, as well as from a performance perspective I ruled out smb.
Qnap TS251b4g
QTS 4.5.2

torch1
Know my way around
Posts: 115
Joined: Thu Jul 04, 2019 4:53 am

Re: NFS: Qnap server / macOS client

Post by torch1 » Fri Feb 26, 2021 1:58 am

Hmm...I have MacOS, iOS & Linux (various NASes, Rpi) and have not had any problems with SMB. Note that Files (iOS) supports SMB too. ( https://osxdaily.com/2019/11/04/how-con ... files-app/ )
You may have to tweak your NASes ( https://wiki.samba.org/index.php/Config ... h_Mac_OS_X ) and your Mac clients ( man nsmb.conf ) to get optimal performance.

atelier522
New here
Posts: 8
Joined: Thu Nov 02, 2017 11:32 pm

Re: NFS: Qnap server / macOS client

Post by atelier522 » Wed May 12, 2021 6:49 pm

torch1 wrote:
Fri Feb 26, 2021 1:58 am
You may have to tweak your NASes ( https://wiki.samba.org/index.php/Config ... h_Mac_OS_X ) and your Mac clients ( man nsmb.conf ) to get optimal performance.
Thanks torch1 for your suggestion.

since we not yet switched from AFP to SMB, which will happen soon, I'd like to have some tips for setting up SMB "for optimal performance" on server and clients.
Do you have suggestions, a link to detailed settings declarations? - I'm not that deep into these settings and don't want to create more problems than before …

Thanks!

AnnoMeNuehm
New here
Posts: 4
Joined: Fri Feb 19, 2021 1:47 pm

Re: NFS: Qnap server / macOS client

Post by AnnoMeNuehm » Wed May 12, 2021 7:34 pm

torch1 wrote:
Fri Feb 26, 2021 1:58 am
Hmm...I have MacOS, iOS & Linux (various NASes, Rpi) and have not had any problems with SMB. Note that Files (iOS) supports SMB too. ( https://osxdaily.com/2019/11/04/how-con ... files-app/ )
You may have to tweak your NASes ( https://wiki.samba.org/index.php/Config ... h_Mac_OS_X ) and your Mac clients ( man nsmb.conf ) to get optimal performance.
Issue with smb is that on my afp volumes there are a certain degree off folder hierarchy to be found, as well as some macOS-specific characters both within the file- as well as the folder names.

We have already tried several times to facilitate smb instead of afp, but up until today it is not really working for us. And migrating all the files and folders to a smb-compatible structure & format is a tedious undertaking, which is not worth the effort.
Qnap TS251b4g
QTS 4.5.2

torch1
Know my way around
Posts: 115
Joined: Thu Jul 04, 2019 4:53 am

Re: NFS: Qnap server / macOS client

Post by torch1 » Fri May 14, 2021 2:43 am

Big Sur does not officially support AFP (no results on the MacOS UG: https://support.apple.com/guide/mac-help/welcome/mac ) while SMB is supported, so I think it is only a matter time before you have to do the difficult work of converting to SMB.

You could try asking the question on the samba list serve - they (the developers) may be able to suggest something: https://lists.samba.org/mailman/listinfo/samba

Post Reply

Return to “Mac OS”