Score:0

How to find out why a specific File is locked on my ESXI Server

st flag

I have a broken VM on my ESXi Server, after looking for the reason the VM isn't starting I found 4 files locked for some reason even when the VM isn't powered on. When I try to use "vmfsfilelockinfo" on one of the Files, it gives me this message:

Looking for lock owners on "vmx-abuvm2-3022981746-2.vswp" Failed to get the lock owners for /vmfs/volumes/8a04aeb3-af12c6c2/abuvm2/vmx-abuvm2-3022981746-2.vswp Reason : Could not get the dump information for '/vmfs/volumes/8a04aeb3-af12c6c2/abuvm2/vmx-abuvm2-3022981746-2.vswp' (rv -1) Error: Inappropriate ioctl for device Could not dump metadata for '/vmfs/volumes/8a04aeb3-af12c6c2/abuvm2/vmx-abuvm2-3022981746-2.vswp': Inappropriate ioctl for device

I'm not so such what exactly the problem is, so maybe some could help me with that

Alex von B avatar
st flag
Version: 6.5.0 Update 3 (Build 19092475)
in flag
ESXi 6.5 has reached it's end of life. Upgrade to a supported release.
Peter Zhabin avatar
cn flag
Do an `lsof` and look for these files there with `grep`. If nothing shows up, you should reboot the host.
Alex von B avatar
st flag
[root@esxi4:/vmfs/volumes/8a04aeb3-af12c6c2/abuvm2] lsof | grep /vmfs/volumes/8a04aeb3-af12c6c2/abuvm2/abuvm2-000008-delta.vmdk 134243 vmx FILE 75 /vmfs/volumes/8a04aeb3-af12c6c2/abuvm2/abuvm2-000008-delta.vmdk
Peter Zhabin avatar
cn flag
Now do a `esxcli vm process list` and look for `VMX Cartel ID: 134243`, it should tell you what VM currently holds a lock. If you're running a backup agent proxy (such as Veeam), it can be that proxy having this snapshot open..
Alex von B avatar
st flag
Ok thank you very much, that really helped. At least I know where to lock :)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.