首先停止相关服务:
systemctl stop pve-cluster
systemctl stop corosync
pmxcfs -l
killall pmxcfs
修改节点名称
# 修改系统主机名
hostnamectl set-hostname 新主机名
# 修改hosts文件
nano /etc/hosts
# 删除旧的cluster配置
rm -rf /etc/corosync/*
rm -rf /etc/pve/corosync.conf
rm -rf /var/lib/corosync/*
rm -rf /var/lib/pve-cluster/*
重启服务
systemctl start pve-cluster
重启系统
reboot