While trying to add a host to NFS share permissions I'm receiving a very generic error with not much to go on.
Cannot set NFS permissions Failed to perform the requested operation.
The NFS server is a Windows 2012 R2 core server. I've tried doing this both via the UI (Server Manager tool) and directly from the box with powershell.
[server-name]: PS F:\Shares> Grant-NfsSharePermission -Name "<share-name>" -ClientName "<client-name>" -ClientType "host" -Permission "readwrite" -AllowRootAccess:$true
Grant-NfsSharePermission : Failed to perform the requested operation.
+ CategoryInfo : ObjectNotFound: (MSFT_NfsServerTasks:root/Microsoft/..._NfsServerTasks) [Grant-NfsShareP
ermission], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070490,Grant-NfsSharePermission
I've redacted the server/client names as I don't think that's really relevant. I'm getting the same error when trying to remove any of the existing hosts as well. The server itself hosts a number of shares and it's only this one that throws this issue. i.e I can add, remove or edit permissions on any other share on the server bar this one. If it's relevant the server is virtual(VmWare) and the Volumes for the shares are virtual disks.
I've found a very similar issue on SO with no answers but a comment from the poster himself saying he bypassed the issue by using the "FailOverClusterManager menu". In my case the shares are not clustered nor am I aware of any way to grant permissions from the cluster manager. Nothing related to this issue is coming up in the Event Viewer and a full server reboot didn't help.
I've been banging my head against the wall for a few days with this problem so any insights/pointers would be really appreciated.
Edit - adding the output of Get-NfsSharePermission
and Revoke-NfsSharePermission
commands as suggested in the comments.
[server-name]: PS F:\Shares> Get-NfsSharePermission <share-name>
Name ClientName Permission AllowRootAccess
---- ---------- ---------- ---------------
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> <client-name> READ, WRITE True
<share-name> All Machines DENY ACCESS False
[server-name]: PS F:\Shares> Revoke-NfsSharePermission -ClientName "client-name" -ClientType host -Name "<share-name>"
Revoke-NfsSharePermission : Failed to perform the requested operation.
+ CategoryInfo : ObjectNotFound: (MSFT_NfsServerTasks:root/Microsoft/..._NfsServerTasks) [Revoke-NfsShare
Permission], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070490,Revoke-NfsSharePermission
CategoryInfo
Attribute of the PowerShellCimException
:ObjectNotFound
. Something is definitely wrong with that share.ObjectNotFound
bit is strange to me asGet-NfsSharePermission
command works fine so the "object" mustn't be refferring to the share itself. I've tried comparing the permissions and setup with working shares across a few servers but can't see anything that stands out. Was hoping someone was in a similar situation who could advise so I could avoid having to recreate it.Get
is working, but theGrant
is not working. TheObjectNotFound
CimException
appears to be referring to theNfsServerTasks
Object. Maybe you could insert both yourGet
and yourGrant
in the body of your question so that other Network Administrators might see what you have done so far and further help you.Get
andRevoke
(since I had the output ofGet
in there before)