分类: 虚拟化
2015-04-23 23:00:08
If you have major problems with your Proxmox VE host, e.g. hardware issues, it could be helpful to just copy the pmxcfs database file /var/lib/pve-cluster/config.db and move it to a new Proxmox VE host. On the new host (with nothing running), you need to stop the pve-cluster service and replace the config.db file (needed permissions : 600). Second, adapt /etc/hostname and /etc/hosts according to the lost Proxmox VE host, then reboot and check. (And don?t forget your VM/CT data)
The recommended way is to reinstall the node after you removed it from your cluster. This makes sure that all secret cluster/ssh keys and any shared configuration data is destroyed.
I some cases, you might prefer to put a node back to local mode without reinstall, which is described here:
# service pve-cluster stop
# pmxcfs -l
# rm /etc/pve/cluster.conf # rm /etc/cluster/cluster.conf # rm /var/lib/pve-cluster/corosync.authkey
# service pve-cluster stop
# service pve-cluster start # service pvedaemon restart # service pveproxy restart # service pvestatd restart