proxmox use auto backup to recovery config.db
root@proxmox2:~# ls -la /var/lib/pve-cluster/backup/
total 40
drwxr-xr-x 2 root root 4096 Jan 17 12:04 .
drwxr-xr-x 3 root root 4096 Jan 18 07:34 ..
-rw-r--r-- 1 root root 12645 Nov 11 09:42 config-1478853733.sql.gz
-rw-r--r-- 1 root root 15188 Jan 17 12:04 config-1484651064.sql.gz
I stopped the cluster service
Code:
systemctl stop pve-cluster
systemctl stop corosync
pmxcfs -l
This way I’m working in local mode. Then I restored the backup from /var/lib/pve-cluster/backup like this:
First untar the config backup to get an sql file (e.g. config-1546119386.sql.gz)
Code:
cd /var/lib/pve-cluster
mv config.db config.db.bak
cp /var/lib/pve-cluster/backup/config-1546119386.sql.gz /var/lib/pve-cluster/
gzip -d config-1546119386.sql.gz
sqlite3 config.db < config-1546119386.sql
After a reboot I can access to my VM’s.
My VM’s did not autostart therefore:
Code:
systemctl stop pve-cluster
systemctl stop corosync
pmxcfs -l
rm /etc/pve/corosync.conf
rm /etc/corosync/*
killall pmxcfs
systemctl start pve-cluster
corosync still fail —> but VM are up again
corosync I will try to repair.
还没有评论,来说两句吧...