SOLVED SMB share persisence with Mac client

Jedge

Cadet
Joined
Aug 23, 2021
Messages
8
Hello there

I'm runinng lastest TrueNAs version (TrueNAS-12.0-U5.1) on an HP microserver Gen10, with pc et mac clients, so far so good.
I've just changed my wifi AP from Xiaomi to Ubiquity uap-ac-lr and now I have an smb share persistence issue on my mac's.
To recover the connexion to the nas share's I must stop and restart the smb service

I've read quite a lot of threads and modified the smb service as follow:
- Enable Apple SMB2/3 Protocol Extensions
- and add auxiliary parameters like so:
Code:
fruit:locking=none
fruit:metadata=netatalk
fruit:resource=file
streams_xattr:prefix=user.
streams_xattr:store_stream_type=no
oplocks=no
level2 oplocks=no
strict locking=auto
spotlight=yes


I've disconnected my share, reconnect with those new settings and same issue.
I still lose connexion to my shares after few hours.

Any idea please ? Thank you :)
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
I'm inclined to believe it's a problem with your wireless network. Does this behavior persist if you use a wired connection?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
You shouldn't need those aux parameters. Try checking the boxes for Apple-style data encoding, alternate data streams, and durable handles in the share definition, and Apple protocol extensions in the SMB service. Then restart the SMB service.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Remember to also clear out the aux parameters after checking those boxes.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
On the Mac client side, remember to disable private IPs for your wireless network. On your wireless AP/router, check the DHCP lease isn't some insanely short duration, like 5 minutes. For your home network, you should use a long DHCP lease (e.g., 24 hours), so the Macs aren't presenting themselves to the server with a different IP every so often.
 

Jedge

Cadet
Joined
Aug 23, 2021
Messages
8
Back here, I've tried lot's of thing and finally managed to solve it.
With your advice I check one parameter I missed out in the SMB share option: Preset set to "No preset" and then use "
"Enable SMB2/3 Durable Handles"

I tried all the other possibilities and this last one is the way to go to keep the share's mounted on my mac !
Thank you for your intel, that put me on the right track to solve it :)
 
Top