VMware Cloud Community
locky2bme
Contributor
Contributor

Unable to access a file since it is locked

When attempting to power on a VM I received the error " unable to access a file since it is locked" I believe the VM was shut down before the storage from the SAN was unassigned. Help Mr. Wizzard!:8}

0 Kudos
3 Replies
athlon_crazy
Virtuoso
Virtuoso

Double check if the VM configuration file still in use with $ps auxfww | grep vm-name

If it's still in use, can try to Kill the PID, then restart your VM

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Chamon
Commander
Commander

If you have clustered ESX hosts you will need to do the above on the host that has the lock. To see this you can run vmware-cmd -l to determine which host has the .vmx file registered to it (this is assuming that the ESX hosts are using shared storage). If kill PID# does not work then try kill -9 PID#.

0 Kudos
petedr
Virtuoso
Virtuoso

As everyone is saying probably a hung process out there holding the log

As was suggested look for a process running for the VM with the issue ( ps -efw | grep vm-name )

www.phdvirtual.com, makers of esXpress

www.thevirtualheadline.com www.liquidwarelabs.com
0 Kudos