Hi all,
I'm having problems restoring a backup with ndb_restore command. The backup is made as shown:
ndb_mgm> start backup 1
Waiting for completed, this may take several minutes
Node 3: Backup 1 started from node 2
Node 3: Backup 1 started from node 2 completed
StartGCP: 1535 StopGCP: 1538
#Records: 2053 #LogRecords: 0
Data: 50312 bytes Log: 0 bytes
To restore it, I put the cluster in single user mode, granting access to the same node ID where I will run ndb_restore.
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=3 @10.180.243.73 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0, Master)
id=4 @10.180.243.74 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0)
[ndb_mgmd(MGM)] 2 node(s)
id=1 @10.180.243.75 (mysql-5.1.47 ndb-7.1.5)
id=2 @10.180.243.151 (mysql-5.1.47 ndb-7.1.5)
[mysqld(API)] 5 node(s)
id=10 @10.180.243.149 (mysql-5.1.47 ndb-7.1.5)
id=11 @10.180.243.149 (mysql-5.1.47 ndb-7.1.5)
id=16 @10.180.243.150 (mysql-5.1.47 ndb-7.1.5)
id=17 @10.180.243.150 (mysql-5.1.47 ndb-7.1.5)
id=22 @10.180.243.151 (mysql-5.1.47 ndb-7.1.5)
ndb_mgm> enter single user mode 22
Single user mode entered
Access is granted for API node 22 only.
After, I stop the mysqld daemon in this machine, and finally I run ndb_restore.
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=3 @10.180.243.73 (mysql-5.1.47 ndb-7.1.5, single user mode, Nodegroup: 0, Master)
id=4 @10.180.243.74 (mysql-5.1.47 ndb-7.1.5, single user mode, Nodegroup: 0)
[ndb_mgmd(MGM)] 2 node(s)
id=1 @10.180.243.75 (mysql-5.1.47 ndb-7.1.5)
id=2 @10.180.243.151 (mysql-5.1.47 ndb-7.1.5)
[mysqld(API)] 5 node(s)
id=10 @10.180.243.149 (mysql-5.1.47 ndb-7.1.5)
id=11 @10.180.243.149 (mysql-5.1.47 ndb-7.1.5)
id=16 @10.180.243.150 (mysql-5.1.47 ndb-7.1.5)
id=17 @10.180.243.150 (mysql-5.1.47 ndb-7.1.5)
id=22 (not connected, accepting connect from 10.180.243.151)
# ndb_restore -n 3 -b 1 --backup_path=/var/lib/mysql-cluster/ -m
Nodeid = 3
Backup Id = 1
backup path = /var/lib/mysql-cluster/
Opening file '/var/lib/mysql-cluster/BACKUP-1.3.ctl'
readDataFileHeader: Error reading header
Failed to read /var/lib/mysql-cluster/BACKUP-1.3.ctl
NDBT_ProgramExit: 1 - Failed
I can't find many information about this error. Any idea about what's going wrong??
Thanks in advance, David.
I'm having problems restoring a backup with ndb_restore command. The backup is made as shown:
ndb_mgm> start backup 1
Waiting for completed, this may take several minutes
Node 3: Backup 1 started from node 2
Node 3: Backup 1 started from node 2 completed
StartGCP: 1535 StopGCP: 1538
#Records: 2053 #LogRecords: 0
Data: 50312 bytes Log: 0 bytes
To restore it, I put the cluster in single user mode, granting access to the same node ID where I will run ndb_restore.
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=3 @10.180.243.73 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0, Master)
id=4 @10.180.243.74 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0)
[ndb_mgmd(MGM)] 2 node(s)
id=1 @10.180.243.75 (mysql-5.1.47 ndb-7.1.5)
id=2 @10.180.243.151 (mysql-5.1.47 ndb-7.1.5)
[mysqld(API)] 5 node(s)
id=10 @10.180.243.149 (mysql-5.1.47 ndb-7.1.5)
id=11 @10.180.243.149 (mysql-5.1.47 ndb-7.1.5)
id=16 @10.180.243.150 (mysql-5.1.47 ndb-7.1.5)
id=17 @10.180.243.150 (mysql-5.1.47 ndb-7.1.5)
id=22 @10.180.243.151 (mysql-5.1.47 ndb-7.1.5)
ndb_mgm> enter single user mode 22
Single user mode entered
Access is granted for API node 22 only.
After, I stop the mysqld daemon in this machine, and finally I run ndb_restore.
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=3 @10.180.243.73 (mysql-5.1.47 ndb-7.1.5, single user mode, Nodegroup: 0, Master)
id=4 @10.180.243.74 (mysql-5.1.47 ndb-7.1.5, single user mode, Nodegroup: 0)
[ndb_mgmd(MGM)] 2 node(s)
id=1 @10.180.243.75 (mysql-5.1.47 ndb-7.1.5)
id=2 @10.180.243.151 (mysql-5.1.47 ndb-7.1.5)
[mysqld(API)] 5 node(s)
id=10 @10.180.243.149 (mysql-5.1.47 ndb-7.1.5)
id=11 @10.180.243.149 (mysql-5.1.47 ndb-7.1.5)
id=16 @10.180.243.150 (mysql-5.1.47 ndb-7.1.5)
id=17 @10.180.243.150 (mysql-5.1.47 ndb-7.1.5)
id=22 (not connected, accepting connect from 10.180.243.151)
# ndb_restore -n 3 -b 1 --backup_path=/var/lib/mysql-cluster/ -m
Nodeid = 3
Backup Id = 1
backup path = /var/lib/mysql-cluster/
Opening file '/var/lib/mysql-cluster/BACKUP-1.3.ctl'
readDataFileHeader: Error reading header
Failed to read /var/lib/mysql-cluster/BACKUP-1.3.ctl
NDBT_ProgramExit: 1 - Failed
I can't find many information about this error. Any idea about what's going wrong??
Thanks in advance, David.