Delete All Cluster config from Proxmox

llamprec

Member
Apr 2, 2022
23
3
8
Greetings,
I have run into an issue and I think it is because of my lack of experience with Proxmox, so would appreciate some input/guidance
I have a single server that I have installed Proxmox as the primary OS. Within my proxmox I created two more VMs called prox01 and prox02 because I wanted to test and learn a bit about clustering.
All went well and I managed to add all 3 machines to a cluster I called PROX. The first issue I had was that I did not allocate enough resources to the two proxmox VMs. Too little memory, too little diskspace, blah blah.
I decided that I would delete the two VMs and recreate them with sufficient resources. I ran the command "pvecm delnode prox01" and "pvecm delnode prox02" Both commands seemed to run without hassles, but after running the commands, some of the VMs on the dashboard started turning grey, and then when I refreshed the page I could no longer gain access. I kept getting the error login failed: try again.

Looking into the logs I see the following.
==> syslog <==
Apr 22 14:22:08 proxmox pvedaemon[1512]: authentication failure; rhost=::ffff:192.168.1.1 user=root@pam msg=cfs-lock 'file-priv_tfa_cfg' error: no quorum!

==> pveproxy/access.log <==
::ffff:192.168.1.1 - - [22/04/2022:14:22:08 +0200] "POST /api2/extjs/access/ticket HTTP/1.1" 200 77

I have tried to stop and restart the cluster but nothing seems to help.

How can I completely disable / remove cluster config from proxmox and start from a clean slate without reinstalling the proxmox os.

Thanks
Lawrence
 
the commands here should work: https://pve.proxmox.com/pve-docs/chapter-pvecm.html#pvecm_separate_node_without_reinstall

basically:

Code:
# stop pmxcfs and corosync
systemctl stop pve-cluster
systemctl stop corosync

# start pmxcfs in local mode
pmxcfs -l

# remove corosync files
rm /etc/pve/corosync.conf
rm -r /etc/corosync/*
rm /var/lib/corosync/*

# kill local-mode pmxcfs
killall pmxcfs
# start pmxcfs as service
systemctl start pve-cluster

the parts after that are not important for you since you don't want to preserve the rest of the cluster anyway, although you might want to remove the directories referring to the other, no longer existing nodes in /etc/pve/nodes/
 
the commands here should work: https://pve.proxmox.com/pve-docs/chapter-pvecm.html#pvecm_separate_node_without_reinstall

basically:

Code:
# stop pmxcfs and corosync
systemctl stop pve-cluster
systemctl stop corosync

# start pmxcfs in local mode
pmxcfs -l

# remove corosync files
rm /etc/pve/corosync.conf
rm -r /etc/corosync/*
rm /var/lib/corosync/*

# kill local-mode pmxcfs
killall pmxcfs
# start pmxcfs as service
systemctl start pve-cluster

the parts after that are not important for you since you don't want to preserve the rest of the cluster anyway, although you might want to remove the directories referring to the other, no longer existing nodes in /etc/pve/nodes/
Thank you very much for the advice. I am back to square one now.
I will try again.

Thanks
Lawrence
 
  • Like
Reactions: SilicaStorm

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!