Snapshot consolidation after backing up a virtual machine fails with the error: Failed to consolidate disks in Foundry: Error: (15) The file is already in use
search cancel

Snapshot consolidation after backing up a virtual machine fails with the error: Failed to consolidate disks in Foundry: Error: (15) The file is already in use

book

Article ID: 310547

calendar_today

Updated On:

Products

VMware VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • After backing up virtual machines, you see a virtual machine is left with orphan snapshots (the snapshot exists, but it is not referenced by the virtual machine or its .vmx file).
  • The backup solution is running on a virtual machine or a virtual appliance.
  • In the hostd log, you see the error:

    Failed to consolidate disks in Foundry: Error: (15) The file is already in use

  • In the vmware.log file of the virtual machine, you see errors similar to:

    failed to open (Failed to lock the file): AIOMgr_Open failed. Type 8
    failed to open (Failed to lock the file).
    SNAPSHOT: SnapshotConsolidateOpenDisks failed: Failed to lock the file.
    SNAPSHOT: Snapshot_ConsolidateWorkItemOpenDisks failed: Failed to lock the file


  • This issue occurs irrespective of whether the backup succeeds or fails.


Environment

VMware Virtual Disk Development 1.2
Virtual Disk Development Kit 1.1.1
VMware vSphere ESXi 5.0
VMware Data Recovery 1.x
VMware Consolidated Backup 1.5.x
VMware ESXi 4.1.x Embedded
Virtual Disk Development Kit 1.1.0
VMware ESX 4.0.x
VMware ESXi 4.1.x Installable
VMware Data Recovery 2.x
VMware Consolidated Backup 1.1.x
VMware ESXi 4.0.x Embedded
VMware Consolidated Backup 1.0.x
VMware ESX 4.1.x
Virtual Disk Development Kit 1.2
Virtual Disk Development Kit 5.0
VMware ESXi 4.0.x Installable
Virtual Disk Development Kit 1.0.1

Cause

When you back up a virtual machine, a SCSI hot-add snapshot is created to perform a backup. However, when reconfiguring the virtual machine that is running the backup software, the hot-add snapshot is not removed, even when the backup completes successfully. When the hot-add disk is open, future consolidation attempts (hot-remove) fail and redo logs build on the source virtual machine.

Resolution

This issue has been resolved in:
  • ESXi 5.0 Update 1
  • ESXi/ESX 4.1 Update 3
  • Virtual Disk Development Kit (VDDK) 5.0 Update 1
  • Virtual Disk Development Kit (VDDK) 1.2.2
Note: Both the ESXi/ESX host and the VDDK version being used by your backup software must be updated for this issue to be resolved.

To determine which version of VDDK your backup product is using, locate and right-click the vixdisklib.dll file to view the version and build number. The vixdisklib.dll file is normally located on your backup server.
  • If your backup software is using VDDK version 5.0, the GA version shows 5.0 build 427917, while the 5.0 Update 1 version shows 5.0 build 614080. For more information, see the VDDK 5.0 U1 Release Notes.
  • If your backup software is using VDDK version 1.2.1, it must be updated to use VDDK version 1.2.2 build 702422. For more information, see the VDDK 1.2.2 Release Notes.
Please contact your backup software vendor to determine the best approach to update the VDDK version in use.



Additional Information

Unable to delete the virtual machine snapshots
仮想マシンをバックアップした後のスナップショットの統合が次のエラーで失敗する:Failed to consolidate disks in Foundry: Error: (15) The file is already in use
备份虚拟机后整合快照失败并显示以下错误:在 Foundry 中整合磁盘失败:错误:(15) 文件已在使用中