All Mac system sharing design

PhotoNAS

Dabbler
Joined
Jun 9, 2015
Messages
14
I have researched this at length before but that was years ago.

I have a FreeNAS mini that I am currently running.
I am currently using only SMB sharing on each of my datasets.

I want to migrate to the best (directory listing and transfer speed) sharing option for only Macs. I have decided to jettison cross compatibility for performance.

What are my best options given the latest stable release?
AFP is deprecated right?
NFS? or some magically new config of SMB?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
AFP is still in FreeNAS and will be there for a while. Apple has deprecated the protocol, but it probably still be in MacOS clients for a while (but there is no way to be certain). Current MacOS SMB behavior causes it to pretty much constantly scan directories. This means that for best metadata performance, you may want to consider the following:
- Case Insensitive Dataset
- vfs_ixnas (instead of vfs_zfsacl and vfs_zfs_space)
- share auxiliary parameter ("case sensitive = True") [this will be automatically added as needed in 11.3 when ixnas is enabled, but is not present in 11.2]

"ea support" _must_ be enabled to provide proper streams support over SMB. MacOS writes metadata into streams. Likewise, "streams_xattr" must be enabled.
 

PhotoNAS

Dabbler
Joined
Jun 9, 2015
Messages
14
How do I migrate from SMB to AFP?

Are there any modern benchmarks that show that one is better than another?
(I have dealt with the OSX issue of slowing things down by disabling the extra SMB security)
 

PhotoNAS

Dabbler
Joined
Jun 9, 2015
Messages
14
I just tried copying around 40-50k files from my mac to my FreeNAS and then did a "find" on the command line for the two directories and a couple 10s to 100s of files are missing from the FreeNAS directory.

Client OS:
OSX 10.14.6

FreeNAS:
11.2-U6

This is scary and very surprising.
So I have to use rsync multiple times every time I want to copy something?

Can someone point me to the latest SMB -> AFP migration post that is still relevant? I want to move to something super mature and performant.
 

PhotoNAS

Dabbler
Joined
Jun 9, 2015
Messages
14
Also, I am just now noticing that "find" on OSX over SMB to FreeNAS caused a single file name to get generated upwards of 30 times.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Your DOS charset is set to UTF-32. This is an invalid configuration. Remove that setting (change to CP850).
<edit: this response was for a different thread>
 
Last edited:

seanm

Guru
Joined
Jun 11, 2018
Messages
570
Apple has deprecated the protocol, but it probably still be in MacOS clients for a while (but there is no way to be certain).

Yup, and Apple is somewhat renowned for removing things that they deprecated. I wouldn't recommend setting up AFP in 2019 if you're not already using it.

vfs_ixnas (instead of vfs_zfsacl and vfs_zfs_space)

Is ixnas now considered production-ready in 11.2-U6?

"ea support" _must_ be enabled to provide proper streams support over SMB.

This is enabled by default according to Samba docs. Is that true of FreeNAS too? I haven't explicitly set it and stream support seems to be working for me.

----

@PhotoNAS you might also want to format your pool with "-O utf8only=on -O normalization=formD", see these for how:
https://jira.ixsystems.com/browse/NAS-100483
https://jira.ixsystems.com/browse/NAS-100787
 

PhotoNAS

Dabbler
Joined
Jun 9, 2015
Messages
14
Update: Doing the same thing multiple times is not insane.
I am unsure if this is some sort of issue on FreeNAS's side and needing to wait some time for eventual consistency or an issue with OSX needing to flush some sort of cache but now things work.

I tried rsync now with a dry run and it said everything was fine. So I started thinking I was crazy.

Then, I used the same find commands from my history and this time everything worked as expected. No duplicate file names and everything I thought was transferred is now reported as being there.
 
Top