Can't create SMB share on Windows Failover Cluster
I wanted to add a SMB share to a Windows Failover Cluster. When trying to create the share in MMC, I got a Access denied error message. When trying to do this in Windows Explorer, I got an even more strange error message:
Error creating share: [...] The resources must be online on the same node for this operation.
(In german: Beim Versuch, [...] freizugeben, ist ein Fehler aufgetreten. Für diesen Vorgang müssen sich die Ressourcen in demselben Knoten im Onlinemodus befinden.)
OK, so I decided to give PowerShell a try (using
New-SmbShare) - with a similar result:
New-SmbShare : Access is denied. At line:1 char:1 + New-SmbShare \\my-cluster\myshare -Path D:\MyPath- ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : PermissionDenied: (MSFT_SMBShare:ROOT/Microsoft/Windows/SMB/MSFT_SMBShare) [New-SmbShare ], CimException + FullyQualifiedErrorId : Windows System Error 5,New-SmbShare
I found several articles and posts saying that you have to create the share using an elevated MMC or command line, but this didn't work for me.
After several try and error, I found out that I have to give the SYSTEM account write permissions to the folder.
This only affects Failover Clusters. On a single server the SYSTEM account does not need to have write permissions on the folder.
Published on 2023-02-05, 14:36 +0000