Solved

VMware ESXi 4.1 - Failed to lock the file

Posted on 2014-09-17
8
1,167 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 120
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 120

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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

738 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