PVE 删除节点

正常删除集群节点方法

首先在待隔离节点上停止 pve-cluster 服务:

systemctl stop pve-cluster.service

systemctl stop corosync.service

然后将待隔离节点的集群文件系统设置为本地模式:

pmxcfs -l

接下来删除 corosync 配置文件:

rm /etc/pve/corosync.conf

rm -rf /etc/corosync/*

最后重新启动集群文件系统服务:

killall pmxcfs

systemctl start pve-cluster.service

去另外两个节点删除

pvecm delnode pve2

官方步骤

删除节点之前需要删除节点中的所有虚拟机、确保该节点已经关机。

在存在节点中运行 pvecm delnode 节点名称

更新ssh 指纹 pvecm updatecerts

用命令查看集群状态: pvecm status

清理残留信息

cd /etc/pve/nodes
删除节点名称

rm -rf 节点名称

清除 authorized_keys 和 known_hosts

cd /etc/pve/priv

清理authorized_keys 删除节点信息

清理 know_hosts 删除节点信息

清除其他信息

查找其他位置可能存在的节点信息:

grep 删除节点名称 /etc -r  

排除 /etc/pve/.clusterlog 之外,比如这个文件:

/etc/pve/storage.cfg:	nodes 

打开后删除 skyaio 即可

https://www.virtualizationhowto.com/2024/04/proxmox-remove-node-from-cluster-including-ceph/#:~:text=Use%20the%20pvecm%20delnode%20command%20to%20remove%20the,Removing%20the%20host%20from%20the%20proxmox%20cluster%204.

https://lihaijing.gitbooks.io/ceph-handbook/content/Troubleshooting/troubleshooting_single_lost_power.html?q=

Index