Juliano Arantes
Dabbler
- Joined
- Jul 30, 2014
- Messages
- 16
Hello guys!
A little backstory first, feel free to jump after the break if you don't feel like reading.
I've been using FreeNAS for a while now, since version 9.0, and setting it up to run smoothly with a Mac OS X client has always been a nightmare. Nothing wrong with FreeNAS, now that I have some experience the Windows clients work like a charm, no messing around needed. The problem seems to be Apple and its quest to complicate things...
I've spent the last week testing my setup and trying to get a decent sharing performance. Before anyone jumps in to tell me I need more RAM, I know I should and will add an extra 16GB soon, but right now that's not the issue. AFP was quickly ruled out as obsolete, since our clients currently run Sierra 10.2.6! SMB seemed to be the best option, and worked perfectly on Windows. After some tuning, I managed to get more than 100MB/s read/write speed on the Macs, but real world usage showed huge issues on the Macs when we had too many files in the same folder. Folders would take ages to load, file count would be wrong and randomly change, files disappearing, trying to move or delete files would cause the client to crash and disconnect. Believe me when I say I've tried every possible tweak available, truth is Apple's SMB implementation has always been flawed beyond repair.
I decided to go with NFS, and it has been ROCK SOLID! :) Performance is not that great as SMB, but it's enough and reliability more than compensates it. Folders load instantly, deleting takes seconds. We were able to work for three days without issues. But then someone uploaded a folder with accents and special characters to FreeNAS...
----------------------------
We live in Brazil and having folders named like "Decoração" and "Cerimônia" is fairly common. They upload just fine to FreeNAS, but appear empty to the Macs... After some researching I found out all the files were there, and the issue was a conflict between UTF-8 NFC and UTF-8 NFD. Added the "nfc" option to the mount command and now when clicking a folder it's content blinks on screen and Finder goes back to the previous folder... Click multiple times in a row and you end up inside the folder.
Read somewhere I should use convmv to convert older files to NFC, so I run:
But it doesn't find anything to convert, even files created after adding the "nfc" mouting option suffer from the same issue. Tried checking the files with "file -I" and the result is "charset=binary". Should be something else, right? That's when the system doesn't know the charset?
Adding "noac' to the mounting options fixes it, but that disables caching and brings a performance penalty. I do not want to use it! Does anyone have any idea how to make the Macs compatible with my NFS shares? Everywhere I read said adding the "nfc" option should do it. It improved my situation, but I still have issues with the attributes...
The mount command I'm currently using:
Hardware Specs:
FreeNAS-11.0-U4 (54848d13b)
Supermicro X9SCM-F
Intel Pentium CPU G2020 @ 2.90GHz
2x 8GB Kingston KVR16E11 1600MHz DDR3 ECC
5x 4TB Western Digital Reds
A little backstory first, feel free to jump after the break if you don't feel like reading.
I've been using FreeNAS for a while now, since version 9.0, and setting it up to run smoothly with a Mac OS X client has always been a nightmare. Nothing wrong with FreeNAS, now that I have some experience the Windows clients work like a charm, no messing around needed. The problem seems to be Apple and its quest to complicate things...
I've spent the last week testing my setup and trying to get a decent sharing performance. Before anyone jumps in to tell me I need more RAM, I know I should and will add an extra 16GB soon, but right now that's not the issue. AFP was quickly ruled out as obsolete, since our clients currently run Sierra 10.2.6! SMB seemed to be the best option, and worked perfectly on Windows. After some tuning, I managed to get more than 100MB/s read/write speed on the Macs, but real world usage showed huge issues on the Macs when we had too many files in the same folder. Folders would take ages to load, file count would be wrong and randomly change, files disappearing, trying to move or delete files would cause the client to crash and disconnect. Believe me when I say I've tried every possible tweak available, truth is Apple's SMB implementation has always been flawed beyond repair.
I decided to go with NFS, and it has been ROCK SOLID! :) Performance is not that great as SMB, but it's enough and reliability more than compensates it. Folders load instantly, deleting takes seconds. We were able to work for three days without issues. But then someone uploaded a folder with accents and special characters to FreeNAS...
----------------------------
We live in Brazil and having folders named like "Decoração" and "Cerimônia" is fairly common. They upload just fine to FreeNAS, but appear empty to the Macs... After some researching I found out all the files were there, and the issue was a conflict between UTF-8 NFC and UTF-8 NFD. Added the "nfc" option to the mount command and now when clicking a folder it's content blinks on screen and Finder goes back to the previous folder... Click multiple times in a row and you end up inside the folder.
Read somewhere I should use convmv to convert older files to NFC, so I run:
Code:
convmv -f utf-8 -t utf-8 --nfc -r --no-test
But it doesn't find anything to convert, even files created after adding the "nfc" mouting option suffer from the same issue. Tried checking the files with "file -I" and the result is "charset=binary". Should be something else, right? That's when the system doesn't know the charset?
Adding "noac' to the mounting options fixes it, but that disables caching and brings a performance penalty. I do not want to use it! Does anyone have any idea how to make the Macs compatible with my NFS shares? Everywhere I read said adding the "nfc" option should do it. It improved my situation, but I still have issues with the attributes...
The mount command I'm currently using:
Code:
sudo mount -t nfs -o rsize=65536,wsize=65536,soft,intr,nolocks,locallocks,rdirplus,retrans=3,readahead=16,proto=tcp,resvport,timeo=600,noac,nfc 10.0.1.4:/mnt/Storage/Arquivos /Users/juliano/Documents/Servidor/
Hardware Specs:
FreeNAS-11.0-U4 (54848d13b)
Supermicro X9SCM-F
Intel Pentium CPU G2020 @ 2.90GHz
2x 8GB Kingston KVR16E11 1600MHz DDR3 ECC
5x 4TB Western Digital Reds