整合与备份快照关联的磁盘失败并显示以下错误:文件已在使用中
search cancel

整合与备份快照关联的磁盘失败并显示以下错误:文件已在使用中

book

Article ID: 301393

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
免责声明:本文为 Consolidating disks associated with a backup snapshot fails with the error: The file is already in use (2040846) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。


  • 整合与备份快照关联的磁盘时,您接收到以下错误:

    文件已在使用中 (The file is already in use)

  • 启用增加的日志记录后,您会在 hostd.log 文件中看到类似以下内容的消息:

    • [2C581B90 info 'BlklistsvcPlugin' opID=9e67f392-59] Block list built for [] /vmfs/volumes/50194e8a-f6a02118-9f78-90e2ba0fa95c/example_vm/example_vm.vmdk; lease is 528d29b7-c357-8fd8-1c38-9ed9746a0dcc

    • [4B6B3B90 verbose 'vm:/vmfs/volumes/50648696-74a99014-b76f-14feb58c727a/example_vm/example_vm.vmx'] Done disk consolidation.
      [4B6B3B90 info 'vm:/vmfs/volumes/50648696-74a99014-b76f-14feb58c727a/example_vm/example_vm.vmx'] Failed to consolidate disks in Foundry: Error: (15) The file is already in use


    • [4B6B3B90 verbose 'vm:/vmfs/volumes/50648696-74a99014-b76f-14feb58c727a/example_vm/example_vm.vmx'] Done disk consolidation.
      [4B6B3B90 info 'vm:/vmfs/volumes/50648696-74a99014-b76f-14feb58c727a/example_vm/example_vm.vmx'] Failed to consolidate disks in Foundry: Error: (15) The file is already in use


Environment

VMware Virtual Disk Development 1.2
Virtual Disk Development Kit 5.1
Virtual Disk Development Kit 5.0

Cause

出现此问题的原因是在清除备份代理租约之前尝试整合。

一系列事件顺序应一致:

  1. 备份开始
  2. 为备份创建快照
  3. 建立租约
  4. SAN 模式失败,然后回滚到 NBD 模式
  5. 备份完成
  6. 整合尝试(失败)
  7. 释放租约
注意:备份代理必须是单独的物理机才会触发该问题;基于虚拟机的代理无法访问 SAN 模式备份。

Resolution

这是一个影响虚拟磁盘开发套件 (VDDK) 5.0 和 5.1 的已知问题。此问题在 VDDK 5.1.2、5.5 和 5.0 Update 3 中已得到解决。

释放租约后,可以正常整合。有关清除虚拟机状态的详细信息,请参见 Consolidating snapshots in vSphere 5.x (2003638)

要解决此问题,不要将备份软件配置为先尝试 SAN 备份,而是直接尝试 NBD 备份,或在尝试 SAN 备份之前确保备份代理服务器中存在正确的块设备

注意:自动模式先尝试 SAN 备份,如果失败,再回滚到 NBD 备份。这种情况也会触发该问题。

Additional Information

Consolidating disks associated with a backup snapshot fails with the error: The file is already in use