14
2024
05
00:13:05

PVE(Proxmox VE)解除集群

PVE(Proxmox VE)解除集群

  

PVE的集群创建很容易,但怎么把PVE集群解除,变成独立运行的单机并且保留虚拟机的?

查了一下资料,找到官网文档里面有详细的资料,实测如下:

   

First, stop the corosync and pve-cluster services on the node:

systemctl stop pve-cluster
systemctl stop corosync

   

Start the cluster file system again in local mode:

pmxcfs -l

   

Delete the corosync configuration files:

rm /etc/pve/corosync.conf
rm -r /etc/corosync/*

   

You can now start the file system again as a normal service:

killall pmxcfs
systemctl start pve-cluster

   

   

 

The node is now separated from the cluster. You can deleted it from any remaining node of the cluster with:

pvecm delnode oldnode

   

我的环境只有两台PVE(PVE和PVE2)。PVE2损坏后,只有PVE可用,将PVE从集群解除后整个集群没有任何节点了,故pvecm delnode pve2命令无效。

 

If the command fails due to a loss of quorum in the remaining node, you can set the expected votes to 1 as a workaround:

pvecm expected 1

And then repeat the pvecm delnode command.

   

   

   

Now switch back to the separated node and delete all the remaining cluster files on it. This ensures that the node can be added to another cluster again without problems.

rm /var/lib/corosync/*

   

As the configuration files from the other nodes are still in the cluster file system, you may want to clean those up too. After making absolutely sure that you have the correct node name, you can simply remove the entire directory recursively from /etc/pve/nodes/NODENAME.

   

来自 <https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_quorum>

   




推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://hqyman.cn/post/6071.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: