Hyper-V snapshot merge or pause between jobs.

Discussions specific to Microsoft Hyper-V hypervisor

Re: Hyper-V snapshot merge or pause between jobs.

Veeam Logoby PenguinSSH » Wed Dec 09, 2015 1:41 pm 1 person likes this post

Marcin, all,

We're also doing job chaining for huge file servers to split one huge 12TB VBK into several smaller VBK/disk. The reason for this is we send them to tape and don't want to restore 12TB of VBKs when we can restore just a 500GB VBK.

We've been running in disk merge process being interrupted by the other backup. To do this, I've written a script that queries the status of the merge process.

Our file servers are on Hyper-V and use a powershell script to wait for the disk merge process. The user that runs the script, Veeam service account, needs to have admin permissions on your Hyper-V hosts.

Code: Select all
$node = Invoke-Command -ComputerName vhost-prod-hq {Get-ClusterGroup -Name "SCVMM NameOfClusterGroup"}
$test = Invoke-Command -ComputerName $node.OwnerNode {Get-VM -Name YourNameofVM}

while ($test.Status -eq "Merging disks") {
    write-host $node.OwnerNode | Out-File C:\scripts\test.txt
    write-host $test.Status | Out-File C:\scripts\test1.txt
    write-host "Waiting for disk merge to complete"
    sleep 10
$test = Invoke-Command -ComputerName $node.OwnerNode {Get-VM -Name YourNameofVM}


That should give you the expected behavior although for a different purpose.

Edit for code:
Posts: 28
Liked: 2 times
Joined: Thu Feb 26, 2015 7:19 pm
Full Name: PenguinSSH

Re: Hyper-V snapshot merge or pause between jobs.

Veeam Logoby marcinbojko » Thu Dec 10, 2015 11:07 am

Posts: 36
Liked: 10 times
Joined: Thu Mar 06, 2014 10:40 am
Location: Lublin/Poland
Full Name: Marcin Bojko


Return to Microsoft Hyper-V

Who is online

Users browsing this forum: No registered users and 1 guest