Avamar:VMware 映像还原运行数小时,以 GB 或 TB 为单位显示进度,但失败并显示“等待生成的 avtar 进程完成超时”

Summary: VMware 映像还原运行数小时,以 GB 或 TB 为单位显示进度,但失败并显示“等待生成的 avtar 进程完成超时”。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

VMware 映像还原运行数小时,显示 GB 或 TB 进度,但失败并显示:
avvcbimage Error <0000>: [IMG0011] Timeout on wait for spawned avtar process to complete
在还原日志中,请注意,在还原其中一个虚拟磁盘后,VMware 插件程序已与虚拟机断开连接:
 avvcbimage Info <9679>: Virtual disk connection to '[datastore] testvm-Restore_1714653538862/testvm-Restore_4.vmdk' has been closed
 avvcbimage Info <40654>: isExitOK()=0
 avvcbimage Info <40654>: isExitOK()=0
 avvcbimage Info <12060>: Getting next pax element in VMFile directory
 avvcbimage Info <16041>: VDDK:VixDiskLib: VixDiskLib_Disconnect: Disconnect.
 avvcbimage Info <42222>: Using vSphere revertSnapshotTask snapshot moref (snapshot-414916)
 avvcbimage Info <14629>: Snapshot (snapshot-414916) removal for VM '[datastore] testvm-Restore1714653538862/Testvm-Restore.vmx' task queued, sleep for 1 sec
300 秒后,请注意 avtar 进程仍在运行,需要更多时间。默认情况下,子进程超时为 5 分钟或 300 秒。
avvcbimage Error <0000>: [IMG0011] Timeout on wait for spawned avtar process to complete
例如,在以下日志中,映像插件已等待 5 分钟:
2024-05-03 12:53:04 avvcbimage Error <0000>: [IMG0011] Timeout on wait for spawned avtar process to complete
稍后,在日志中,请注意 avtar 进程已成功完成(代码 0),但它需要 1 小时 32 分 23 秒:
2024-05-03 14:25:27 avvcbimage Info <6688>: Process 16763 (/usr/local/avamarclient/bin/avtar) finished (code 0: success)
在 avtar 日志中,状态行(默认每 15 分钟打印一次)显示在此期间,avtar 仍在恢复虚拟磁盘。但是,由于映像插件已断开连接,因此此数据不会写入虚拟机。
2024-05-03 13:00:20 avtar Info <8688>: Status 2024-05-03 13:00:20, 24 files, 6 directories, 2,404 GB (24 files, 4,807 GB, 100.00% new) 1250MB  82% CPU  VMFiles/5/virtdisk-flat.vmdk

Cause

确切的根本原因正在调查中。但是,每种情况下的常见触发因素是虚拟磁盘大小不是 8192 KB 或 1,048,576 KB 的倍数。

Resolution

临时解决方法:
  • 执行即时访问恢复,而不是映像恢复。这种类型的还原不受此问题的影响。
或者
  • 从 Avamar 下载并安装最新版本的 GoAV 工具。A validate-size 功能已在 GoAV 版本 1.72 中添加。

有关 validate-size 功能,请参阅本文的“其他信息”部分或 GoAV 文档。 
  1. 使用 GoAV,运行以下命令: 
./goav vm validate-size 
  1. 要调整虚拟机大小,请执行以下操作:
    1. vSphere 客户端中,找到虚拟机。
    2. 编辑 虚拟机 ,然后使用工具选择 标识的磁盘
    3. 单位更改为 MB,然后从 GoAV 工具中将大小设置为 RESIZE TO。
  2. 在 Avamar 中启动 新备份 。备份完成后,在最新备份上执行 新的映像还原 ,以确认问题已解决。 

Additional Information

有关 GoAV 验证大小功能的详细信息:
此功能可检测虚拟磁盘大小不是 8192 KB 或 1,048,576 KB (1 MB) 倍数的虚拟机。如果找到,则建议使用更新、更大的大小来增加虚拟磁盘。 
./goav vm  validate-size --help
Validate Virtual Machine disk size by checking each disk for the VM on vcenter.
Verifies that disk sizes are properly divisible by 1MB and 8KB.

Usage:
  goav vm validate-size [flags]

Examples:
./goav vm validate-size --name testing8kb-invalidlength --vc myvcenter.fqdn.tld


DEVICE KEY |                                VMDK                                 | DISK SIZE |  8KB  |  1MB  | RESIZE TO
-------------+---------------------------------------------------------------------+-----------+-------+-------+------------
  2001       | [localDatastore] testing8kb-invalidlength/invalidSize.vmdk | 1536000   | false | false | 2 MB


Flags:
  -h, --help          help for validate-size
      --hide-valid    Set output to hide valid VMs
      --name string   VM Name
      --prompt        Prompts to select vCenters
      --vc string     Vcenter Name

Global Flags:
  -d, --debug      debug output
  -f, --force      Ignore Configuration
  -n, --noheader   Do not display header

命令说明:

goav vm validate-size 
  • 从 Avamar 检索虚拟机 (VM) 的列表
  • 建立与每个相应虚拟机的 vCenter 的连接
  • 获取虚拟磁盘大小并检查大小是 8 KB 还是 1 MB 的倍数
  • 如果磁盘大小无效,它会建议增加 VMware 中的磁盘大小。

 可选标记:

--hide-valid  -  Does print the VM names that have valid disk sizes  
--name   The virtual machine name to check  
--vc   The virtual center server to checks
--prompts Prompts to select vCenters


示例输出: 

admin@ave:~/>: ./goav vm  validate-size --name 1mb-clone 

========================= vc.example.com  =========================


1mb-clone                                                                INVALID

  DEVICE KEY |                   VMDK                    |   DISK SIZE   | 8KB  |  1MB  | RESIZE TO
-------------+-------------------------------------------+---------------+------+-------+------------
  2000       | [Datastore] 1mb-clone/1mb-clone.vmdk | 1572864 Bytes | true | false | 2 MB

Affected Products

Avamar
Article Properties
Article Number: 000225926
Article Type: Solution
Last Modified: 27 Aug 2024
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.