Saturday, December 24, 2011

Deleting the locked file in NFS

I was not able to power on one of the VM in the lab. The error message was shown below. So a file was locked.

 

Luckily it is an NFS datastore, not VMFS, so removing the lock is a matter of deleting the lock file.

But the lock file is a hidden file, so we can’t delete from the Datastore browser.

 

So it’s a matter of using ssh. Just connect to the ESXi, then traverse the /vmfs directory. Yes, NFS datastore is also stored in /VMFS directory.

As the file is hidden, I need to use the ls –la command to show the hidden file.

 

No comments:

Post a Comment