VMware Cloud Community
rndmun31
Contributor
Contributor

vmfsfilelockinfo script question

Hello all,

Hopefully this is a straight-forward question with an easy answer.

For the past couple of days, I've been troubleshooting some vmdk file lock issues with certain VMs.  I can resolve the issue(s) in our ESXi 6 environment really fast because of the vmfsfilelockinfo script but in our 5.1 environment, it's not there.

Question is this:  is it possible to just copy the script from an ESXi 6 host to a 5.1 host and have the 5.1 host use it without issue?

Thanks in advance!

0 Kudos
3 Replies
hussainbte
Expert
Expert

Its a python script. If python is not available on ESXi it will fail..

make sure you change the permission on the copied script to executable and then try

chmod 555  filename

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
TheBobkin
Champion
Champion

Hello rndmun31,

I'm not sure copying it over will work as there are likely numerous API calls in that script that don't exist in 5.1 (otherwise it probably would have been backported to 5.1).

I am aware this is not what you asked but there is always the alternative of using the commands that vmfsfilelockinfo is based on for the same result in 5.1:

https://kb.vmware.com/s/article/10051

It might also be a viable option to tie these commands together with a short script.

Bob

rndmun31
Contributor
Contributor

Okay, thanks to the both of you!  I have seen that article @TheBobkin and it helps but it doesn't.  I get a bit confused as to how to figure out how to see if a certain vmdk file is locked on another [5.1] host than the one the VM is on currently.  The only thing I can think of is to run it on each host in the cluster which is not ideal.  Maybe I'm missing something though.

0 Kudos