To resolve the issue of the cluster not being ready and the “no quorum” or “Cannot initialize CMAP service” errors, you can follow the steps below:
-
Stop the corosync and pve-cluster services on the node:
systemctl stop pve-cluster systemctl stop corosync -
Start the cluster filesystem in local mode:
pmxcfs -l -
Delete the corosync configuration files:
rm /etc/pve/corosync.conf rm /etc/corosync/* -
Start the filesystem as a normal service:
killall pmxcfs systemctl start pve-cluster -
Remove the separated node from the remaining node in the cluster using the
pvecm delnodecommand. Replaceoldnodewith the name of the node you want to remove:pvecm delnode oldnodeIf the command fails because the remaining node lost quorum when the separated node exited, you can set the expected votes to 1 as a workaround:
pvecm expected 1Then repeat the
pvecm delnodecommand. -
Switch back to the separated node and delete any remaining files from the old cluster:
rm /var/lib/corosync/* -
If there are configuration files from other nodes in the cluster filesystem, you may want to clean those up as well. Delete the entire directory recursively from
/etc/pve/nodes/NODENAME, where NODENAME is the name of the node you separated. Make sure to double-check and confirm the correct directory before deleting it. -
Remove the SSH keys of the nodes from the
authorized_keysfile to prevent further connections:vi /etc/pve/priv/authorized_keysInside the file, remove the respective public keys of the nodes that were separated.
By following these steps, you should be able to separate the node from the cluster and ensure clean separation of shared resources.