VMware Cloud Community
nisammanjeri
Contributor
Contributor

Automatically MigrateVMs back to their original host once it has recovered from a failure.

 

Hi,
I am Working on a VSAN 2-Node Cluster Project for one of my client.
Client requiremet are

1- Run a set of VMs on a Specific Host (Don't Migrate the VMs in case that host fails)
2- Automatically Migrate another set of VMs back to their original host once it has recovered from a failure. (VMs need High Availability and failback
to recovered Host )

Are these can be achived ?
What Licenses are required to Achive these ?

Reply
0 Kudos
6 Replies
BivasM
Enthusiast
Enthusiast

vsan 2 node cluster with ftt 1 will keep the same object on both host. 

your point 1 and 2 is confusing .can you clarify?

1. dont migrate the vms, do you mean to keep them down when the host fails. (HA should automatically restart them on the other host)

2. this seems to contradict your requirement in point 1.

if you want to keep specific vm in specific host then you can create host/vm affinity rule.

Reply
0 Kudos
pashnal
Enthusiast
Enthusiast

Hi , 

Below can be achieved as below . 

1- Run a set of VMs on a Specific Host (Don't Migrate the VMs in case that host fails)

You can create VM-Host affinity rules to specify whether or not the members of a selected virtual machine DRS group can run on the members of a specific host DRS group. (MUST Rule)

2- Automatically Migrate another set of VMs back to their original host once it has recovered from a failure. (VMs need High Availability and failback
to recovered Host )
 
Create another rule  Should rule
 
 
DRS, vSphere HA, and vSphere DPM never take any action that results in the violation of required affinity rules (those where the virtual machine DRS group 'must run on' or 'must not run on' the host DRS group). 
 
Please read through these document and  give a thumbs up if this has resolved the issue . 
 
Thanks 
 
nisammanjeri
Contributor
Contributor

@BivasM 

Sorry for the confusion,

My two points was not related to VSAN. Its was About HA Cluster. 

We have 2 sets of VMs. 

First one Doesnt need HA (No need to Migrate VMs in case oh Host Failure).

Another Set of VMs need HA (In the event of Host failure thos VMs need to be restared in Availavle Host and Once the failed host recovered and back online , those VMs need to come back to that Host Automatically.)

Hope its Cleare now.

Reply
0 Kudos
nisammanjeri
Contributor
Contributor

@pashnal 

Will these scenarios work without DRS?
My Plan was to get vSphere Standard License.
vSphere Enterprise Pus License is required?

Thanks.

 

 

Reply
0 Kudos
BivasM
Enthusiast
Enthusiast

options are in : select cluster > configure

then your point 1 can be solved by vm/host rules. select the vms and select the host they should reside in . then go to vm overrides and select the vms that dont need to be rebooted in case of host failure.

for point 2 also go to vm/host rules . create a different host group. this time dont use vm overrides and HA will take care of it

Reply
0 Kudos
pashnal
Enthusiast
Enthusiast

Hi @nisammanjeri  

Yes your both scenarios can be dealt by DRS affinity Rules . 

1. Host and VM affinity -- Must Rule > where VMs will only run on the host you mention even HA will not failover 

2. Should Rule > Where only during HA Failure VMs will be powered on different hosts but once the host is back online then DRS will move the VMs back to the desired host . 

 

As per the Doc : https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/products/vsphere/vmware-vsphere-pr...

You may not have DRS option on standard license , Please check with VMware . 

Reference : https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-793013E2-0976-43B7... 

Hope this helps . Mark this as solution if it has resolved your issue .

Thanks 

Tags (1)
Reply
0 Kudos