iT邦幫忙

1

排錯報告 Hyper-V VM因磁碟空間耗盡處於Paused-Critical狀態

  • 分享至 

  • xImage
  •  

今天去幫客戶排除某架 Hyper-V VM 處於 Paused-Critical 的問題

VM FT01 運作於 HYPERV01 上, 且該 VM 每 5 分鐘複寫到 HYPERV02

首先我先查看硬碟與硬碟陣列或者是 Storage Space 是否有任何異常,經查看後認為硬體應該目前無異常

在 Hyper-V 管理員畫面中看到該 VM 呈現 Paused-Critical
查看其複寫狀態,發現複寫失敗
而複寫功能會仰賴差異快照的傳送
若差異快照未能傳送
則會一直存放在 Storage 中
直到複寫成功後,系統才會將差異快照合併入 VHD/VHDX 中,並刪除差異快照
而此案由於該 VM 自 09-04 起未能複寫成功,導致其中一組磁碟空間耗盡

首先嘗試手動重新啟動複寫,失敗
接著取消複寫功能,取消複寫時,系統會將差異快照合併入 VHD/VHDX,但發生合併中斷
接著再手動重啟合併,經過 10 分鐘左右合併成功了。
接著讓該 VM 繼續運作。

最後設定該 VM 於指定時刻重新啟動複寫功能。


Log 節錄

首先要知道 Log 的名稱
顯示名稱與實際名稱可能會不同
Event Viewer 中的 Log 顯示名稱是: Microsoft-Windows-Hyper-V-VMMS/Admin
但實際 LogName 是 Microsoft-Windows-Hyper-V-VMMS-Admin

用以下指令可以撈出 LogName:

PS >(Get-WinEvent -ListLog * -ErrorAction SilentlyContinue).LogName | Where-Object { $_ -like "*VMMS*" }
Microsoft-Windows-Hyper-V-VMMS-Storage
Microsoft-Windows-Hyper-V-VMMS-Operational
Microsoft-Windows-Hyper-V-VMMS-Networking
Microsoft-Windows-Hyper-V-VMMS-Admin

使用以下指令撈出自 09-04 後 Microsoft-Windows-Hyper-V-VMMS-Admin 的所有 Log 到 CSV 檔案並節錄部分 Log 於後方:

1. 設定你想篩選的時間點(請依需求修改日期與時間)

$TargetTime = Get-Date "2026-09-04 00:00:00"

2. 透過 Hashtable 建立篩選條件並執行

$Filter = @{
    LogName   = 'Microsoft-Windows-Hyper-V-VMMS-Admin'
    StartTime = $TargetTime
}

3. 指定出 TimeCreated, Id, Message 三個欄位匯到 CSV 檔案

Get-WinEvent -FilterHashtable $Filter -ErrorAction SilentlyContinue | 
    Select-Object TimeCreated, Id, Message | 
    Export-Csv -Path "C:\HyperV_VMMS_Logs.csv" -NoTypeInformation -Encoding UTF8

Log 表格

TimeCreated Id Message
9/15/2026 4:19:03 PM 32074 Hyper-V successfully enabled replication for primary virtual machine 'FT01' (Virtual machine ID FT01id)
9/15/2026 3:46:44 PM 19080 FT01' background disk merge has been finished successfully. (Virtual machine ID FT01id)
9/15/2026 3:36:50 PM 16060 FT01' has been paused because it has run out of disk space on 'D:\Hyper-V\Virtual Hard Disks'. (Virtual machine ID FT01id)
9/15/2026 3:36:50 PM 19070 FT01' background disk merge has been started. (Virtual machine ID FT01id)
9/15/2026 3:36:50 PM 19090 FT01' background disk merge has been interrupted. (Virtual machine ID FT01id)
9/15/2026 3:36:14 PM 19070 FT01' background disk merge has been started. (Virtual machine ID FT01id)
9/15/2026 3:36:14 PM 19090 FT01' background disk merge has been interrupted. (Virtual machine ID FT01id)
9/15/2026 3:35:52 PM 16060 FT01' has been paused because it has run out of disk space on 'D:\Hyper-V\Virtual Hard Disks'. (Virtual machine ID FT01id)
9/15/2026 3:35:51 PM 19070 FT01' background disk merge has been started. (Virtual machine ID FT01id)
9/15/2026 3:35:51 PM 19090 FT01' background disk merge has been interrupted. (Virtual machine ID FT01id)
9/15/2026 3:34:58 PM 19070 FT01' background disk merge has been started. (Virtual machine ID FT01id)
9/15/2026 3:34:58 PM 32080 Hyper-V successfully removed replication for virtual machine 'FT01' (Virtual machine ID FT01id)
9/15/2026 3:34:51 PM 19090 FT01' background disk merge has been interrupted. (Virtual machine ID FT01id)
9/15/2026 3:34:51 PM 32340 FT01' requires resynchronization because it is about to run out of disk space on 'D:\Hyper-V\Virtual Hard Disks' available space is less than 3072 MB.(Virtual machine ID FT01id)
9/15/2026 3:34:51 PM 33680 Replication operation for virtual machine 'FT01' failed. (Virtual machine ID FT01id) (Primary server: 'HYPERV01', Replica server: 'HYPERV02')
9/15/2026 3:34:51 PM 19070 FT01' background disk merge has been started. (Virtual machine ID FT01id)
9/15/2026 3:34:50 PM 32315 Hyper-V failed to replicate changes for virtual machine 'FT01' (Virtual machine ID FT01id). Hyper-V will retry replication after 5 minute(s).
9/15/2026 3:34:50 PM 32082 Hyper-V could not replicate changes for virtual machine 'FT01' because the operation was cancelled. (Virtual machine ID FT01id)
9/15/2026 3:34:50 PM 29244 Finished resynchronization operation on VHD = 'C:\Hyper-V\Virtual Hard Disks\FT01_c_2F3187E0-D76C-4135-959A-E47866B610FA.avhd' of VM 'FT01'. Blocks sent = 0. Duration = 20 seconds. Result 0x80042001. (Virtual machine ID FT01id)
9/15/2026 3:34:30 PM 29242 Starting resynchronization operation on VHD 'C:\Hyper-V\Virtual Hard Disks\FT01_c_2F3187E0-D76C-4135-959A-E47866B610FA.avhd' of VM 'FT01'. Starting Block = '0'. Total blocks = '6553600'. (Virtual machine ID FT01id)
9/15/2026 3:34:26 PM 32325 Resynchronization was successfully initiated for the primary virtual machine 'FT01'. (Virtual machine ID FT01id)
- - -
9/4/2026 9:49:20 PM 19090 FT01' background disk merge has been interrupted. (Virtual machine ID FT01id)
9/4/2026 9:49:16 PM 19070 FT01' background disk merge has been started. (Virtual machine ID FT01id)
9/4/2026 9:34:42 PM 32086 Hyper-V suspended replication for virtual machine 'FT01' due to a non-recoverable failure. Resume replication after correcting the failure. (Virtual machine ID FT01id)
9/4/2026 9:34:42 PM 33680 Replication operation for virtual machine 'FT01' failed. (Virtual machine ID FT01id) (Primary server: 'HYPERV01', Replica server: 'HYPERV02')
9/4/2026 9:34:41 PM 32026
9/4/2026 9:34:41 PM 33676

Event ID 32026 & 33676 細節

Event ID 33676

LogName: Microsoft-Windows-Hyper-V-VMMS-Admin
TimeCreated: 9/4/2026 9:34:41 PM
EventID: 33676
The description for Event ID 33676 from source Microsoft-Windows-Hyper-V-VMMS cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

FT01
FT01id
%%2147942432
0x80070020
HYPERV01
HYPERV02

The locale specific resource for the desired message is not present

Event ID 32026

LogName: Microsoft-Windows-Hyper-V-VMMS-Admin
TimeCreated: 9/4/2026 9:34:41 PM
EventID: 32026
The description for Event ID 33676 from source Microsoft-Windows-Hyper-V-VMMS cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

FT01
FT01id
%%2147942432
0x80070020
HYPERV01
HYPERV02

The locale specific resource for the desired message is not present

圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言