Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1560

Mysql Cluster datanode backup (1 reply)

$
0
0
Hi,
This is my cluster:

Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @10.9.40.58 (mysql-5.6.21 ndb-7.3.7, single user mode, Nodegroup: 0, *)
id=10 @10.9.40.66 (mysql-5.6.21 ndb-7.3.7, single user mode, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @10.9.40.34 (mysql-5.6.21 ndb-7.3.7)

[mysqld(API)] 2 node(s)
id=3 @10.9.40.42 (mysql-5.6.21 ndb-7.3.7)
id=11 @10.9.40.50 (mysql-5.6.21 ndb-7.3.7)

I want to run a test-backup.
1.ndb_mgm -e "START BACKUP" from mgmt-node.
Connected to Management Server at: localhost:1186
Waiting for completed, this may take several minutes
Node 2: Backup 1 started from node 1
Node 2: Backup 1 started from node 1 completed
StartGCP: 2088 StopGCP: 2091
#Records: 2053 #LogRecords: 0
Data: 50312 bytes Log: 0 bytes

2. I kill the ndbd processes on the datanodes, and then on both datanodes I ran the command: ndbd --initial.

3. Info from datanode:
/usr/local/mysql/data/BACKUP# ls -al
totalt 24
drwxr-x--- 6 root root 4096 nov. 12 14:18 .
drwxr-xr-x 4 root root 4096 nov. 11 12:15 ..
drwxr-x--- 2 root root 4096 nov. 12 14:18 BACKUP-1
drwxr-x--- 2 root root 4096 nov. 12 12:40 BACKUP-3
drwxr-x--- 2 root root 4096 nov. 12 12:41 BACKUP-4
drwxr-x--- 2 root root 4096 nov. 12 12:53 BACKUP-5

/usr/local/mysql/data/BACKUP/BACKUP-1# ls -al
totalt 56
drwxr-x--- 2 root root 4096 nov. 12 14:18 .
drwxr-x--- 7 root root 4096 nov. 12 14:24 ..
-rw-r--r-- 1 root root 25808 nov. 12 14:18 BACKUP-1-0.2.Data
-rw-r--r-- 1 root root 15360 nov. 12 14:18 BACKUP-1.2.ctl
-rw-r--r-- 1 root root 52 nov. 12 14:18 BACKUP-1.2.log


4. Now I want to go back to my backup, but how do I do that?
I've tried, from mgmt-node:

cd /usr/src/mysql-mgm/mysql-cluster-gpl-7.3.7-linux-glibc2.5-x86_64/
/usr/src/mysql-mgm/mysql-cluster-gpl-7.3.7-linux-glibc2.5-x86_64/bin# ./ndb_restore -c voip-datanode-el -m -n2 -b2 -r --backup_path=/usr/local/mysql/data/BACKUP/BACKUP-1/
Nodeid = 2
Backup Id = 2
backup path = /usr/local/mysql/data/BACKUP/BACKUP-1/
Opening file '/usr/local/mysql/data/BACKUP/BACKUP-1/BACKUP-2.2.ctl'
Failed to read /usr/local/mysql/data/BACKUP/BACKUP-1/BACKUP-2.2.ctl


NDBT_ProgramExit: 1 - Failed


please help :)
Can someone give me a easy tutorial on this case?

Viewing all articles
Browse latest Browse all 1560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>