VM 的 Hyper-V 備份失敗,並顯示「Virtual machine does not have valid vhd chains and will not be backed up with image level backup」

Summary: 本文提供使用 Microsoft PowerShell 命令修復導致備份錯誤和故障的 Hyper-VM 組態詳細指示。

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

特定 VM 的 Hyper-V 備份可能會失敗,並出現類似以下的訊息:
avhypervvss Warning <42496>: Virtual machine 'EMC <GUID>' has one or more virtual disks with same ID and will not be backed up with image level backup. ... avhypervvss Error <43105>: Virtual machine 'EMC' does not have valid vhd chains and will not be backed up with image level backup avhypervvss Warning <41605>: The following Virtual Machines have failed: avhypervvss Warning <41604>: [1] EMC <GUID>


Cause

當連接至虛擬機器的其中一個虛擬硬碟是透過複製實體硬碟內容所建立時,就會發生此問題。在這種情況下,新的虛擬硬碟在父磁碟分割中擁有與實體磁碟機相同的磁碟簽名。在涉及 Hyper-V VSS 寫入器的備份程序中,虛擬硬碟會掛接在父磁碟分割中。因為磁碟簽名衝突,受影響的虛擬機器會導致此程序失敗。

Resolution

1.關閉受影響的 VM 電源。

2.針對每個連接至 VM 的 VHDX 檔案,請使用 PowerShell 命令提示執行此 cmdlet (以系統管理員身分執行):
Get-VHD -path "<<VHD 檔案目錄>>"

範例:  Get-VHD -path "D:\Hyper-V\EMC.vhdx"
                 Get-VHD -path "D:\Hyper-V\EMC1.vhdx"

3. 檢查每個 VHD 的「DiskIdentifier」欄位。如果它們不是唯一的,請變更磁碟 ID,使其彼此不同。
Set-VHD -ResetDiskIdentifier -Path "VHDX 檔案位置"

這會變更 VHDX 檔案上的磁碟識別符屬性。為其他連接至受影響 VM 的 VHDX 檔案執行此操作。

4.重新開啟 VM 電源。

5.開啟 PowerShell 提示字元,並執行下列命令:
Get-VHD -path "<<VHD 檔案目錄>>"

針對每個受影響 VM 的 VHDX 檔案執行此操作,並確認每個檔案的磁碟識別符值不同。

Affected Products

Avamar Plug-in for Hyper-V VSS
Article Properties
Article Number: 000184898
Article Type: Solution
Last Modified: 07 Jan 2022
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.