How to set Lookupcache=none on MS NFS Client

According to this article (https://support.microsoft.com/en-us/kb/894071) and other resources on the web the MS NFS Client cache option should be configured in the registry.

We tested it on our Azure account, and it works by following this step we can reproduce the equivalent lookupcache=none :

 

Open registry (regedit)

 

Navigate to : HKEY_LOCAL_MACHINE_SoftwareMicrosoftClientForNFSCurrentVersionUsersDefault

Right click -> New ->  Key

Type “Cache”

Right click on HKEY_LOCAL_MACHINE_SoftwareMicrosoftClientForNFSCurrentVersionUsersDefaultCache -> New -> DWORD

Type “FileAttributeCache” and set value to 0

Right click on HKEY_LOCAL_MACHINE_SoftwareMicrosoftClientForNFSCurrentVersionUsersDefaultCache -> New -> DWORD

Type RemoteWriteCache and set value to 0

Restart NFS Client Service

This operation has to be performed on each nodes.