Hello,
I have set up a 3 node cluster:
- node1 : for quorum
- node2 : hoster
- node3 : hoster
I have created a failover domain between node2 and node3, here is the clusters.conf:
I don't want the VM going to node1 so I have not declared node1 in the failoverdomain.
When the VM is on node2, and I crash node2, the VM goes on node3 ==> OK
When the VM is on node3, and I crash node3, the VM goes on node1 ==>NOK, it should goes on node2
Do you have any ideas ?
Thank you
I have set up a 3 node cluster:
- node1 : for quorum
- node2 : hoster
- node3 : hoster
I have created a failover domain between node2 and node3, here is the clusters.conf:
Code:
<?xml version="1.0"?>
<cluster config_version="11" name="local">
<cman keyfile="/var/lib/pve-cluster/corosync.authkey" transport="udpu"/>
<clusternodes>
<clusternode name="node1" nodeid="1" votes="1">
</clusternode>
<clusternode name="node2" nodeid="2" votes="1">
<fence>
<method name="1">
<device name="fence2"/>
</method>
</fence>
</clusternode>
<clusternode name="node3" nodeid="3" votes="1">
<fence>
<method name="1">
<device name="fence3"/>
</method>
</fence>
</clusternode>
</clusternodes>
<fencedevices>
<fencedevice agent="test" ipaddr="192.168.48.202" login="root" name="fence2" passwd="root"/>
<fencedevice agent="test" ipaddr="192.168.48.203" login="root" name="fence3" passwd="root"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="Node2-Node3" nofailback="1" ordered="1" restricted="1">
<failoverdomainnode name="node2" priority="2"/>
<failoverdomainnode name="node3" priority="1"/>
</failoverdomain>
</failoverdomains>
<pvevm autostart="1" vmid="100"/>
</rm>
</cluster>
I don't want the VM going to node1 so I have not declared node1 in the failoverdomain.
When the VM is on node2, and I crash node2, the VM goes on node3 ==> OK
When the VM is on node3, and I crash node3, the VM goes on node1 ==>NOK, it should goes on node2
Do you have any ideas ?
Thank you