reinstall a cluster with backup informations

informant

Renowned Member
Jan 31, 2012
762
10
83
Hi all, we would create a new cluster and would remove our old cluster (reinstall). we have only found a information/tutorial to reinstall a node here https://pve.proxmox.com/wiki/Proxmox_VE_2.0_Cluster , but not for a complete cluster.

do you have informations about reinstall a cluster with backup and restore of all informations about users, configurations, vms, nodes ...

very thanks and best regards
 
Hi,

we have done this, but it does not work.

We have done following steps:

1. cp -a /etc/pve /root/pve_backup (on old Cluster)
2. /etc/init.d/pve-cluster stop (on old + new Cluster)
3. umount /etc/pve (on old + new Cluster)
4. /etc/init.d/cman stop (on old + new Cluster)
5. rm /etc/cluster/cluster.conf (on new Cluster)
6. rm -rf /var/lib/pve-cluster/* (on new Cluster)
7. /etc/init.d/pve-cluster start (on new Cluster)
8. pvecm create oldclustername (on new cluster)
9. cp /root/pve_backup/*.cfg /etc/pve/ (on new cluster)
10. cp .ssh Keys (from old to new cluster)
11. /etc/init.d/pve-cluster stop ( on new cluster)
12. /var/lib/pve-cluster/config.db (from old to new cluster)
13. reboot

Effect is, all configruations are back, but if we would connect, no nodes are connected and we have the message:
Code:
Starting cluster:    Checking if cluster has been disabled at boot... [  OK  ]
   Checking Network Manager... [  OK  ]
   Global setup... [  OK  ]
   Loading kernel modules... [  OK  ]
   Mounting configfs... [  OK  ]
   [B]Starting cman...  waiting for quorum, timeout
[FAILED][/B]

Manually start of cman does not help and give us the same error message!
pvecm nodes said, only cluster is connected, all other nodes are not connected. What can we do here? Any Ideas? Thanks and best regards.
 
Last edited:
Hi dietmar,

you mean, only reinstall a new cluster and copy only user.conf to new cluster and after all nodes new adding with pvecm add? Or copy /var/lib/pve-cluster/config.db to new cluster, too?

regards
 
you mean, only reinstall a new cluster and copy only user.conf to new cluster

Yes, only copy necessary files.

But the approach above should also work. I guess there are several nodes in cluster.conf, so you do not get
quorum when only one node is running. But you can try to force quorum with

# pvecm expected 1

(after starting cman)

Then you can edit /etc/pve/cluster.conf and remove old nodes.
 
Hi dietmar,

we have remove cluster. conf and readd nodes again, after it works fine.

thanks and best regards.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!