Solved

VMware ESXi 4.1 - Failed to lock the file

Posted on 2014-09-17
8
1,056 Views
Last Modified: 2016-02-25
Hello Experts - I am regularly having backup issues using Veeam and ESXi 4.1.  I replicate all of my backups offsite each evening using Veeam 7.  Every few weeks I start seeing errors that a replication has failed.  Checking the Veeam logs always shows its a problem with file locking.  If I attempt to "Revert to current snapshot" in VMware I get the following error:

A general system error occurred: Failed to lock the file

There are no .lck files in the datastore.  I'd like to understand why this happens and how I can unlock the file without restarting the physical host each time.
0
Comment
Question by:danbrown_
  • 5
  • 3
8 Comments
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
A process has locked the file.

The VM does not have a snapshot attached?

Or the virtual disk is attached to the Veeam VM.

The method of finding which process has locked the file is a difficult one and requires the use of the command

PS with grep in the console....

Also looking for the lock on the file....

It can often result in a waste of time!

And reboot host is quicker....

Is the Veeam job failing..?
0
 

Author Comment

by:danbrown_
Comment Utility
Hi Andrew!  Here is a screenshot of the VM that won't replicate with a couple of snapshots:

error1.jpg
The Veeam server does not have any of the virtual disks attached.  I get that rebooting the host may be the fastest way to unlock the file but I'd like to understand why this keeps happening.  Why would a process lock a file and refuse to unlock it without a reboot?  And what can I do to prevent it from happening?
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
Software Bugs are what cause the issue raise Support Request with Veeam.

Upgrade ESXi OS to latest nuild version.

I would also ensure VM is snapshot FREE before you start replication.
0
 

Author Comment

by:danbrown_
Comment Utility
I have an open ticket with Veeam but as it is in every case I've ever opened with them they refer me back to VMware since the core issue is there.  VMware provides no support for 4.1 any longer.
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
Are you on the latest and last builds of ESXi 4.1 ?

Locks still occur with 5.5 U2!

We've been working on one today, for 6-7 hours!
0
 

Author Comment

by:danbrown_
Comment Utility
Ouch, so even upgrading ESX won't really solve the locking problem.  Maybe its just my lack of understanding but I just don't get why an operating system can't be programmed to easily identify and unlock whatever process is locking a file.  Its a very common problem that you would think would have been addressed by now!  Thanks for your help Andrew, very much appreciated.
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
Its third party vendors which cause the issue!
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
And with any OS sometimes locks and processes cannot be killed or shutdown.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now