Restore cluster

  • Thread starter Thread starter seveiven
  • Start date Start date
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: