how to set up "preferred" Host for a VM

timetraxx

New Member
Feb 3, 2014
7
0
1
Hi All,

I need to configure a "preferred" Host for a VM in HA mode.

It's possible to do that?

scenario:

I have a 3 Node Cluster (HA). On Node 3, I set up a new virtual machine within HA mode. If Node3 goes down then normally the virtual machine will be moved to another Node (1or2), so far so good .
If Node3 are after maintenance or solving of the problem back on the cluster, then the VM must live migrate automatically back to Node3.

hmm, I had a look on the rhel cluster stack as well on the proxmox wiki but found no information.

Have anybody ideas or tipps to do that?


Regards

Martin
 
Hi there -> RTFM :-)

found my answer in man rgmanager :-)


Failover Domain Configuration:
<rm>
<failoverdomains>
<failoverdomain name="NAME" ordered="[0|1]" restricted="[0|1]" nofailback="[0|1" >
<failoverdomainnode name="node1" priority="[1..100]" />
...
</failoverdomain>
</failoverdomains>
...
</rm>

I'll test this in my lab environment

regards

Martin