replicated vm

Xander

New Member
Apr 17, 2013
20
0
1
Hi ! How can i do replicating vm ? i have cluster with 2 nodes, if one node fall, up-to-date copy of vm on second node continued to work, how can i do this ?
 
i find out, now it works with rgmanager & fencing. But i have problem with fencing, it often destroy cluster, i don't understand why, can anyone help me about this ?
my config is:

<?xml version="1.0"?>
<cluster config_version="12" name="CLUSTER">
<cman expected_votes="1" keyfile="/var/lib/pve-cluster/corosync.authkey" two_node="1"/>
<clusternodes>
<clusternode name="balthazar" nodeid="1" votes="1">
<fence>
<method name="1">
<device name="bal-drac"/>
</method>
</fence>
</clusternode>
<clusternode name="fenix" nodeid="2" votes="1">
<fence>
<method name="1">
<device name="fenix-drac"/>
</method>
</fence>
</clusternode>
</clusternodes>
<rm>
<pvevm autostart="1" vmid="100"/>
</rm>
</cluster>


now i can't start vm - rgmanager is working on both nodes but i can't start vm.

Member trying to enable pvevm:100...Could not connect to resource group manager
 
Last edited:
I suggest you follow the recommended setup - at least 3 nodes.

two nodes are never recommended so I wonder why people use this and then get surprised if it does not work as expected.

there are reasons why 3 nodes are the minimum.
 
agree with you, i think about it too. Does it always happend when 2 nodes cluster?

it is very strange Fence working, i don't understand reason why it don't let join to fence. several hours ago everything was good, after reboot , it will disconnect one node.

#fence_tool ls

fence domain
member count 1
victim count 1
victim now 2
master nodeid 1
wait state fencing
members
 
How can i add quorum disk, to my 2 node cluster ?? , i have't storage, do i need use another server where will quorum disk ?