首页 > 其他分享 >PVE(Proxmox VE)解除集群

PVE(Proxmox VE)解除集群

时间:2023-04-17 22:13:22浏览次数:42  
标签:node VE 集群 cluster pve Proxmox PVE corosync

  

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>

   

   

标签:node,VE,集群,cluster,pve,Proxmox,PVE,corosync
From: https://www.cnblogs.com/st2021/p/17327577.html

相关文章

  • jumpserver 4A认证(安全审计)
    @目录一、会话管理二、日志审计一、会话管理1.会话管理//会话管理是指使当前正在连接的资产webTerminal:使用jumpserver默认自带的web连接。sshTerminal:使用xshell等工具登入。admin管理员可以针对用会话管理进行监控、终端操作!当终端后会在历史会话中显示、如下://......
  • jumpserver 4A认证(权限控制)
    一、命令过滤如图所示理解当我们创建一个过滤器就要和系统用户进行关联,目的就是禁止系统用户使用一些危险的命令如rmreboot等。//创建命令过滤//添加过滤规则禁止使用rm和reboot命令//添加系统用户系统用户加上之后相对于的系统用户就不能使用对应的命令了。//......
  • HAProxy + Keepalived实现mycat高可用方案
    在实际项目中,Mycat服务也需要考虑高可用性,如果Mycat所在服务器出现宕机,或Mycat服务故障,需要有备机提供服务,需要考虑Mycat集群。高可用方案我们可以使用HAProxy+Keepalived配合两台Mycat搭起Mycat集群,实现高可用性。HAProxy实现了MyCat多节点的集群高可用和负......
  • 论文解读《Automatically discovering and learning new visual categories with rank
    论文信息论文标题:Automaticallydiscoveringandlearningnewvisualcategorieswithrankingstatistics论文作者:K.Han, Sylvestre-AlviseRebuffi, SébastienEhrhardt, A.Vedaldi, AndrewZisserman论文来源:ICLR2020论文地址:download 论文代码:download视屏讲解:clic......
  • MySQL高可用-双主(keepalived)
    生产环境中一台mysql主机存在单点故障,所以我们要确保mysql的高可用性,即两台MySQL服务器如果其中有一台MySQL服务器挂掉后,另外一台能立马接替其进行工作。MySQL的高可用方案一般有如下几种:keepalived+双主,MHA,PXC,MMM,Heartbeat+DRBD等,比较常用的是keepalived+双主,MHA和PXC。本节主......
  • event.button
    event.x鼠标横轴event.y鼠标纵轴event.keycode键盘值events.button==0默认。没有按任何按钮。events.button==1鼠标左键events.button==2鼠标右键events.button==3鼠标左右键同时按下events.button==4鼠标中键events.button==5鼠标左键和中键同时按下events.button==6鼠......
  • webstorm Can't use Subversion command line client: svn
    https://www.visualsvn.com/downloads/下载: ApacheSubversioncommandlinetools解压,安装,webstrorm里面点击fix,设置svn.exe的绝对路径就可以了。......
  • moveto(100,100);linerel(200,0);moverel(200,200);getx(),gety()
    #include<graphics.h>#include<stdio.h>intmain(){inti;intgraphdriver=DETECT;intgraphmode;initgraph(&graphdriver,&graphmode,"");cleardevice();moveto(100,100);linerel(200,......
  • IDEA 配置Serializable的快捷键快速生成serialVersionUID
    IDEA配置Serializable的快捷键快速生成serialVersionUID原文链接:https://blog.csdn.net/GyaoG/article/details/119911851一、引言    在Java的序列化机制中是通过判断类的serialVersionUID来验证版本的一致性的,JVM会将接到的Java对象字节流中的serialVersionUID和本......
  • 慎用std::move
    编译arm版本成功,空跑正常,跑业务崩溃在了如下函数:deliverPacket_internal_(std::move(video_packet),false,video_packet->big)x86机器运行正常. 怀疑点: 1、依赖库问题?所有的lib都copy到了运行环境,大概率不是.2、libc问题?编译环境和运行环境libc版本相同...3......