Interesting. In my particular case, we use an application from Oracle (Web Content Center), and my devs are insistent that the application handles any file locking issues, and therefore file locking must be turned off in the OS. (me, I'm not entirely sure that's completely possible, but hey - whatever ... LOL). And since the application is reading/writing to a network file share (the share is presented by a Win 2019 file server cluster), I make it a point to issue the 2 below commands on each application node (the app is load balanced, using an F5 load balancer, which - if they're telling me right - effectively makes it act like an active/passive cluster - i.e., only 1 application node is reading/writing a particular file at a time; both nodes are *NOT* trying to read/write to the same file at the same time. Which, to me, means there shouldn't be any file locking issues, but hey, what do I know?).
And my friend the AI Google tells me "While SMB involves various locking mechanisms for file access and concurrency, these are typically managed by the operating system and the SMB protocol itself, not through a simple configuration parameter within Set-SmbServerConfiguration
." Which is more or less what I thought, that the OS handles any locking. And I dunno how to tell Windows and/or an SMB protocol to not do any locking. LOL
I also set
the “LeasingMode” to “None” on the actual file server itself. Just in case ....