Solved

VMware ESXi 4.1 - Failed to lock the file

Posted on 2014-09-17
8
1,149 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 119
ID: 40328870
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_
ID: 40328902
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 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40328942
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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:danbrown_
ID: 40328952
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
 
LVL 119
ID: 40328987
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_
ID: 40328995
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 119
ID: 40329067
Its third party vendors which cause the issue!
0
 
LVL 119
ID: 40329075
And with any OS sometimes locks and processes cannot be killed or shutdown.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

856 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