From 9af963f81a44a8b54b6696faa143d3e04829728c Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Wed, 14 Aug 2024 01:20:33 -0600 Subject: [PATCH] Update Scripts/Powershell/Hyper-V/Failover Cluster/Collapse Differencing Disk Chains.md --- .../Failover Cluster/Collapse Differencing Disk Chains.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/Powershell/Hyper-V/Failover Cluster/Collapse Differencing Disk Chains.md b/Scripts/Powershell/Hyper-V/Failover Cluster/Collapse Differencing Disk Chains.md index b55bc01..68aa0b6 100644 --- a/Scripts/Powershell/Hyper-V/Failover Cluster/Collapse Differencing Disk Chains.md +++ b/Scripts/Powershell/Hyper-V/Failover Cluster/Collapse Differencing Disk Chains.md @@ -1,6 +1,8 @@ ## Purpose Sometimes things go awry with backup servers and Hyper-V and a bunch of extra `.avhdx` virtual differencing disks are created, taking up a ton of space. This can be problematic because if you run out of space, the virtual machines running on that underlying storage will stop working. Sometimes this can involve dozens or even hundreds of differencing disks in rare cases that need to be manually merged or "collapsed" down to reclaim the lost space. +This script automatically iterates through the entire differencing disk chain all the way back to the base disk / parent, and automatically collapses the chain downward from the newest checkpoint (provided as an argument to the script) to the original (non-differencing) base disk. This can automate a huge amount of work when this issue happens due to backup servers or other unexplainable anomalies. + ## Powershell Script You need to copy the contents of the following somewhere on your computer and save it as `Get-HyperVParentDisks.ps1`. ``` powershell