Настройка восстановление и удаление кластера Proxmox¶
Установка¶
root@pve1# pvecm create -votes 2 cluster
root@pve2 ~ # pvecm add pve1
Удаленине кластера Proxmox¶
pvecm delnode nombreNodo
Остановка кластера¶
systemctl stop pvestatd.service
systemctl stop pvedaemon.service
systemctl stop pve-cluster.service
systemctl stop corosync
systemctl stop pve-cluster
~~~
~~~sql
# edit through sqlite, check, delete, verify
sqlite3 /var/lib/pve-cluster/config.db
select * from tree where name = 'corosync.conf';
254327|0|254329|0|1480944811|8|corosync.conf|totem {
version: 2
[...]
delete from tree where name = 'corosync.conf';
select * from tree where name = 'corosync.conf';
.quit
~~~
#### Удаление директорий:
~~~
pmxcfs -l
rm /etc/pve/corosync.conf
rm /etc/corosync/*
rm /var/lib/corosync/*
rm -rf /etc/pve/nodes/*
~~~
Затем перезапускаем, применяем на каждом узле в кластере.
Перезапуск Proxmox-кластера
На главном сервере:
~~~
systemctl start pvestatd.service
systemctl start pvedaemon.service
systemctl start pve-cluster.service
systemctl start corosync
systemctl start pve-cluster
~~~
на нодах:
~~~
service pve-cluster stop
service cman stop
rm /etc/cluster/cluster.conf
rm -rf /var/lib/pve-cluster
#rm -rf /var/lib/corosync
service pve-cluster start
service cman start
~~~
После перезагрузки ноды и vpn коннекта
~~~
systemctl restart pvestatd.service
systemctl restart pvedaemon.service
systemctl restart pve-cluster.service
systemctl restart corosync
systemctl restart pve-cluster
~~~