I'm in the process of migrating our network file storage using Samba to export CephFS file shares for access by Windows and Mac clients. I've noticed that on macOS, all SMB mounts drop whenever there's a brief loss of network connectivity. This is particularly frustrating when working from home, as the mounts tend to disappear frequently. I'm looking for effective strategies or solutions to manage this issue so our users don't have to deal with it constantly. How are others handling this problem?
5 Answers
Yeah, macOS can be pretty quick to drop SMB mounts if there's any flicker in the network. We've seen this especially with shaky Wi-Fi or VPNs. One solution that helped us was setting up automount or using login scripts to remount shares automatically instead of relying on manual connections. Some folks even wrote small scripts to check if the mount has disappeared and reconnect it. It's not perfect, but it definitely cuts down on those annoying "my network drive vanished" tickets.
I've used autofs in the past, but I’m uncertain if the latest versions of macOS still support that feature.
Is this issue still persisting? Back in 2016, I created an alias for users to access the file shares instead of relying on the troublesome mounting system, and it worked pretty well!
Yep, this behavior has been around for years. I remember there was a way to handle it using a login script with Open Directory, but I’m not sure if that’s still a viable option these days.
macOS routinely has this problem. You might want to check out some third-party tools like AutoMounter, which can help alleviate the issue. It could be a good workaround!

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures