Virtual machines on an NFS 4.1 datastore fail after the NFS 4.1 share recovers from an APD state with the error: The lock protecting VM.vmdk has been lost
search cancel

Virtual machines on an NFS 4.1 datastore fail after the NFS 4.1 share recovers from an APD state with the error: The lock protecting VM.vmdk has been lost

book

Article ID: 305042

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
When the Network File System(NFS) 4.1 storage enters an All Paths Down (APD) state and then exits it after a grace period, you experience these symptoms:
Note: The grace period depends on the array vendor.
  • powered on virtual machines that run on the NFS 4.1 datastore fail.

  • After the NFS 4.1 share recovers from the APD condition, you see this message on the virtual machine summary page for virutal machine VM in the vSphere Web Client:

    The lock protecting VM.vmdk has been lost, possibly due to underlying storage issues. If this virtual machine is configured to be highly available, ensure that the virtual machine is running on some other host before clicking OK.

  • After you click OK, crash files will be generated and the virtual machine will power off


Environment

VMware vSphere ESXi 6.0

Cause

This issue occurs because NFSv3 and v4 are different protocols with different behaviors. After the grace period (grace period differs depending on vendor), the NFS server flushes the client state.

Resolution

This is expected behavior in NFSv4 servers. Currently, there is no resolution or work around.


Additional Information

NFS 4.1 共有が APD 状態から復帰した後、NFS 4.1 データストア上の仮想マシンが次のエラーで停止する: The lock protecting VM.vmdk has been lost
当 NFS 4.1 共享从 APD 状态中恢复后,NFS 4.1 数据存储上的虚拟机失败并显示错误:用于保护 VM.vmdk 的锁定已丢失 (The lock protecting VM.vmdk has been lost)