Cluster with Slave thinking its Master

cwhortn

New Member
Feb 17, 2009
5
0
1
I setup a 2 machine cluster normally and experimented with what would happen if the Master became unavailable.

I had backups of the VMs on the slave which I successfully restored via the command line (vzdump --restore vzdump-101.tar 201). Then, I was able to log into the slave's web control panel, but when I tried to start the VMs I got "You don't have write permissions." So, via the command line I made the slave a master (pveca -m) and was able to start the VMs.

When I brought the Master back up it still saw the Slave as a slave node. The slave sees only itself in the cluster. I could still stop/start VMs but now I could do it from either one's control panel, which I like.

So, my question is... is this a bad setup? Will I break something? How should I have gotten the VMs on the master running again on the slave while the master had an outage and when the master came back the slaves are still slaves in the node?

Great product!

Bests,
Carl Horton
 
So, my question is... is this a bad setup? Will I break something?

You have 2 masters when you restart the old master - so I consider that a very bad idea. If the master fails remove it from the network before enabling another master.

Even worse, you also have duplicated VMs in your case (when we have shared stroage this is a fundamental error leading to data loss).

- Dietmar