Discussions specific to the Microsoft Hyper-V hypervisor
Post Reply
mdiver
Service Provider
Posts: 106
Liked: 16 times
Joined: Nov 04, 2009 2:08 pm
Location: Heidelberg, Germany
Contact:

VMGroup with failover clusters - anyone using it successfully?

Post by mdiver »

Adding Hyper-V "VMGroups" to backup jobs has been available in VBR for a while.
https://horstmann.in/grouping-hyper-v-v ... eeam-jobs/

Is anyone using it successfully with failover clusters? Goal would be to have the have a VM remain in a backup job while being live migrated around the cluster nodes.

It does not seem to be possible. From my experience the whole concept - which is only available within PowerShell anyways - was implemented by Microsoft only half way or even less.

First of all, you have to create the group on every single node of the cluster always specifying the same ID. Otherwise those groups do not relate despite the identical name.
https://docs.microsoft.com/en-us/powers ... ver2019-ps

Then you end up with a group on every node and in addion one on the managing node inherited by the node underneath.
The clusters VMGroup would be the one you want to include into the job, as the others always only contain the VM as long as this very host is carrying it.

But even then, the cluster VMGroup only contains all your VMs of the cluster, once they have visited the cluster owning node at least once.
So before your VMs will be in their backup jobs they need to be live migrated criss-cross throughout your cluster. Useless in my opinion.

On top - removing VMs from groups is even more hazzle as they have to be present on a node to do it.

Any thoughts would be welcome. How do you federate your backup jobs in larger Hyper-V environments?

Thanks and regards,
Mike

tomhps
Lurker
Posts: 1
Liked: 2 times
Joined: May 14, 2021 2:25 pm
Full Name: Thomas SAVATIER
Contact:

Re: VMGroup with failover clusters - anyone using it successfully?

Post by tomhps » 2 people like this post

Hello Mdiver,

We use VMgroups for almost two years from now. It's working like a charm.

First, you need to set your ConfigStoreRootPath wich will store VMgroups for your nodes on a shared disk (CSV).
Link : https://www.veeam.com/kb2194

Code: Select all

Get-ClusterResource "Virtual Machine Cluster WMI" | Set-ClusterParameter -Name ConfigStoreRootPath -Value "C:\ClusterStorage\ConfigStoreRootPath\Hyper-V\Shared"
Then you can create your groups on one node, the configstore will make theme available on all nodes :

Code: Select all

New-VMGroup -ComputerName HV01.domain.lan -Name "Gold" -GroupType VMCollectionType
New-VMGroup -ComputerName HV01.domain.lan -Name "Platinum" -GroupType VMCollectionType
Finaly, on the node where the VM is started :

Code: Select all

$Vm = "mybigserver.domain.lan"
$VmGroup = "Gold"
Add-VMGroupMember -Name $VmGroup -VM (Get-VM $Vm)

After that, you can create a job using your VM groups.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 13 guests