Howto recreate cluster configuration?

linum

Renowned Member
Sep 25, 2011
100
3
83
Back in the good old days of proxmox 1.x recreating a cluster configuration was really easy. Yesterday I start playing with proxmox 2.1 and start creating a cluster on host A. This works without any problems and I tried to add host B to the cluster. But host B has already some VM running and I can't add host B to the cluster. I thought I could remove the cluster configuration from A and start with B as "master" but I get a couple of errors (remember, I'm just playing). Now B has a cluster config that seems to be ok again and I can use the webgui on B. But I can't connect to host A using the webgui (connection refused and apache is not running on A). I start looking around but now I'm stuck. How can I recreate the cluster configuration or check why apache won't start (there's nothing in apache error.log).

Code:
root@B:/etc# pvecm status
Version: 6.2.0
Config Version: 4
Cluster Name: linum
Cluster Id: 3351
Cluster Member: Yes
Cluster Generation: 68
Membership state: Cluster-Member
Nodes: 2
Expected votes: 2
Total votes: 2
Node votes: 1
Quorum: 2
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: horst
Node ID: 1
Multicast addresses: 239.192.13.36
Node addresses: 192.168.83.20

root@B:/etc# pvecm nodes
Node  Sts   Inc   Joined               Name
   1   M      4   2012-06-06 21:26:51  B
   2   M     68   2012-06-07 09:59:40  A

Code:
root@A:/var/log/pve# pvecm status
Version: 6.2.0
Config Version: 4
Cluster Name: linum
Cluster Id: 3351
Cluster Member: Yes
Cluster Generation: 68
Membership state: Cluster-Member
Nodes: 2
Expected votes: 2
Total votes: 2
Node votes: 1
Quorum: 2
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: trox
Node ID: 2
Multicast addresses: 239.192.13.36
Node addresses: 192.168.83.21

root@A:/var/log/pve# pvecm nodes
Node  Sts   Inc   Joined               Name
   1   M     68   2012-06-07 09:59:40  B
   2   M     32   2012-06-07 09:59:09  A
 
On A:

# pvecm updatecerts

Then try to restart apache (or reboot the node).

BTW, there is no Master in pve 2 cluster.
 
I've just reinstalled the system today morning. But I will note the tipp with the certs update. And yes, I know there's no master anymore, that why I've added quotes around master in the first post.

Are there some other hints about what to do when there's a problem with the cluster configuration? The old "remove everything and restart from scratch" approch doesn't seem to work anymore.