Restore cluster

S

seveiven

Guest
I try return a quorum on cluster with two nodes and then all configuration of cluster has gone. In "/var/lib/pve-cluster/backup" have a file "config-1375938032.sql.gz". How can i restore configuration from this file?
 
Last edited by a moderator:
not sure if I understand what you are doing, but maybe this link helps:
http://pve.proxmox.com/wiki/Proxmox_Cluster_file_system_(pmxcfs)#Recovery


No, this link no helps.

Ok, i need to know how can i restore a previous version of cluster config?

I make "pvecm add 192.168.0.151" on master host, and i have a new clean config for cluster. But pvecm make a buckup of config in "/var/lib/pve-cluster/backup/config-1375938032.sql.gz" file, how can i restore my config from this file?
This file contains:

PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE tree ( inode INTEGER PRIMARY KEY NOT NULL, parent INTEGER NOT NULL CHECK(typeof(parent)=='integer'), version INTEGER NOT NULL CHECK(typeof(version)=='integer'), writer INTEGER NOT NULL CHECK(typeof(writer)=='integer'), mtime INTEGER NOT NULL CHECK(typeof(mtime)=='integer'), type INTEGER NOT NULL CHECK(typeof(type)=='integer'), name TEXT NOT NULL, data BLOB);
INSERT INTO "tree" VALUES(0,0,1321,1,1375937982,8,'__version__',NULL);
INSERT INTO "tree" VALUES(2,0,2,0,1326696128,4,'priv',NULL);
INSERT INTO "tree" VALUES(3,0,3,0,1326696128,4,'nodes',NULL);
INSERT INTO "tree" VALUES(4,3,4,0,1326696128,4,'VMFarm1',NULL);
INSERT INTO "tree" VALUES(5,4,5,0,1326696128,4,'qemu-server',NULL);
INSERT INTO "tree" VALUES(6,4,6,0,1326696128,4,'openvz',NULL);
INSERT INTO "tree" VALUES(7,4,7,0,1326696128,4,'priv',NULL);

.......
.......

 
Last edited by a moderator:

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!