How to Configure lookupcache=none on an MS NFS Client

Vignesh Surendrababu
2023-01-22 11:05

According to several sources, thecacheoption for Microsoft’sNetwork File System(NFS) client should be configured in theregistry. We’ve tested this in ourAzure account and recommend the following steps to produce alookupcache=noneoutput:

  1. Open the registry (regedit) and navigate to:

HKEY_LOCAL_MACHINE_SoftwareMicrosoftClientForNFSCurrentVersionUsersDefault

  1. Navigate toNew > select Key, and type: cache
  2. Right click on:

HKEY_LOCAL_MACHINE_SoftwareMicrosoftClientForNFSCurrentVersionUsersDefaultCache -> New -> DWORD

  1. TypeFileAttributeCacheand set value to0
  2. Right click on:

HKEY_LOCAL_MACHINE_SoftwareMicrosoftClientForNFSCurrentVersionUsersDefaultCache -> New -> DWORD

  1. TypeRemoteWriteCacheand set the value to0
  2. Restart theNFS client servicefor these changes to take effect

Note: This operation must be performed on each of your Artifactory nodes.