Skip to content

Commit d8761d0

Browse files
committed
Add a script for purging Proxmox cluster sync configuration
1 parent 59c2ca7 commit d8761d0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

proxmox/purge_cluster_node.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# This is a very preliminary script. Use with caution.
5+
6+
systemctl stop pve-cluster
7+
systemctl stop corosync
8+
pmxcfs -systemctl
9+
10+
rm /etc/pve/corosync.conf
11+
rm -r /etc/corosync/*
12+
13+
killall pmxcfs
14+
systemctl start pve-cluster
15+
16+
rm /var/lib/corosync/*

0 commit comments

Comments
 (0)