Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Virtual machine powers off while creating or deleting snapshots with the error: Failed to lock the file (1033571)

Last Updated: 3/20/2024Categories: How toTotal Views: 73394Language:
Chinese (Simplified)Portuguese (European)JapaneseEnglish

2 like this article

Subscribe to get an email
newsletter with new updates

2 people found this helpful Please provide article feedback:

Symptoms

While creating or deleting snapshots, the virtual machine is abruptly powered off with these symptoms:

The create or delete snapshot task fails.

The virtual machine is powered off with the error

You see the error:

Cannot open the disk '/vmfs/volumes/UUID/VMName/VMName-000001.vmdk' or one of the snapshot disks it depends on. Reason: Failed to lock the file.

In the vmware.log file, for the virtual machine contains messages similar to:

vmx| [msg.disk.configureDiskError] Reason: Failed to lock the file.----------------------------------------
vmx| Msg_Post: Error
vmx| [msg.checkpoint.continuesync.fail] Error encountered while restarting virtual machine after taking snapshot. The virtual machine will be powered off.

The hostd.log file, you see entries similar to:

info 'ha-eventmgr'] Event 78390 : Message on VMNAME on ESXHOSTNAME in ha-datacenter: Cannot open the disk '/vmfs/volumes/UUID/VMName/VMName-000001.vmdk' or one of the snapshot disks it depends on. Reason: Failed to lock the file.

When you have a corrupted descriptor file, you may see errors similar to:

10T04:40:30.093Z| vcpu-0| DISK: Cannot open disk "/vmfs/volumes/4a96b658-f4566303-6459-0024e86324cf/<vm-name>/<vm-name>-000003.vmdk": The capacity of the parent virtual disk and the capacity of the child disk are different (67).
10T04:40:30.093Z| vcpu-0| Msg_Post: Error
10T04:40:30.093Z| vcpu-0| [msg.disk.noBackEnd] Cannot open the disk '/vmfs/volumes/4a96b658-f4566303-6459-0024e86324cf/<vm-name>/<vm-name>-000003.vmdk' or one of the snapshot disks it depends on.
10T04:40:30.093Z| vcpu-0| [msg.disk.configureDiskError] Reason: The capacity of the parent virtual disk and the capacity of the child disk are different.
10T04:40:30.093Z| vcpu-0| ----------------------------------------
10T04:40:30.102Z| vcpu-0| CPT current = 6, requesting 0
10T04:40:30.109Z| vcpu-0| Msg_Post: Error
10T04:40:30.109Z| vcpu-0| [msg.checkpoint.continuesync.fail] An error occurred while restarting virtual machine after taking a snapshot. The virtual machine will be powered off.

Cause

This issue occurs when one of the files required by the virtual machine has been opened by another application.

During a Create or Delete Snapshot operation while a virtual machine is running, all the disk files are momentarily closed and reopened. During this window, the files could be opened by another virtual machine, management process, or third-party utility. If that application creates and maintains a lock on the required disk files, the virtual machine cannot reopen the file and resume running.

Resolution

If the file is no longer locked, try to power on the virtual machine again. This should succeed. To determine the cause of the previously locked file, review the VMkernel, hostd, and vpxa log files and attempt to determine:

When the hostd and vpxa management agents open VMDK descriptor files, they log messages similar to:

info 'DiskLib'] DISKLIB-VMFS : "/vmfs/volumes/UUID/VMName/VMName-000001.vmdk" : open successful (21) size = 32227695616, hd = 0. Type 8
info 'DiskLib'] DISKLIB-VMFS : "/vmfs/volumes/UUID/VMName/VMName-000001.vmdk" : closed.

When the VMkernel attempts to open a locked file, it reports:

31:16:46:55.498 cpu7:8715)FS3: 2928: [Requested mode: 2] Lock [type 10c00001 offset 11401216 v 2035, hb offset 3178496
gen 26643, mode 1, owner 4ca72d14-84dc8dd4-0da3-0017a4770038 mtime 2213195] is not free on volume 'norr_prod_vmfs_data08'

The file may have been locked by third-party software running on an ESXi/ESX host or externally. Review the logs of any third-party software that may have acted on the virtual machine's VMDK files at the time.

If the virtual machine cannot be powered on again because the file remains locked, or to determine which ESX host held the lock previously, see Investigating virtual machine file locks on ESX/ESXi (10051).

For additional steps to try, see Unable to delete the virtual machine snapshot due to locked files (2017072).

Related Information

Investigating virtual machine file locks on ESXi
VMware ESX 4.0, Patch ESX400-201105201-UG: Updates the VMware ESX 4.0 Core and CIM components
Unable to delete the virtual machine snapshots
在创建或删除快照时虚拟机电源关闭，并出现以下错误：无法锁定文件
スナップショットの作成または削除時に「Failed to lock the file」というエラーが表示されて仮想マシンがパワーオフされる
A máquina virtual desliga durante a criação ou a exclusão de instantâneos e apresenta o erro: falha ao bloquear o arquivo

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)Portuguese (European)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
Download and Install VMware Fusion (2014097)

KB
•
ESXi/ESX ホストでテープ デバイスが間違って ALUA デバイスとして検出される (1026157)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware ESX Server

Related Versions:

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

VMware vSphere ESXi 5.5

VMware vSphere ESXi 5.1

VMware vSphere ESXi 5.0

VMware ESXi 4.1.x Installable

VMware ESXi 4.1.x Embedded

VMware ESXi 4.0.x Installable

VMware ESXi 4.0.x Embedded

VMware ESXi 3.5.x Installable

VMware ESXi 3.5.x Embedded

VMware ESX Server 3.5.x

VMware ESX Server 3.0.x

VMware ESX 4.1.x

VMware ESX 4.0.x

view all

Take Our Survey

Support Assistant