MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 8th, 2012, 04:26 AM
azazel_bg azazel_bg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 151 azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 12 h 10 m 56 sec
Reputation Power: 39
MySQL Cluster backup

Hello guys,

I recently switch to MySQL Cluster before that I was using clean MySQL.

Now to the point.

Till now I was making my own backups manually. What I was doing was: stop MySQL daemon copy data folder to archive folder and start MySQL daemon.
But that is not the story for MySQL Cluster.

As I understand it if I loose the node folder and table scheme from the node folder, no matter I have the data folder I'm not able to see my databases and the information within.

Let us say that by accident I start the node with --initial and the ndbd folder is cleaned up and ready for fresh start and I already have a backup thru the ndb_mgm created.

How can I recreate the databases and recover the information from them?


Thank for your help in advance.

p.s.: I hope I will find my answers here because from the MySQL forums it turn out that no body cares or they don't have any idea about the backups and they can't give me a decent answer to my questions.

Reply With Quote
  #2  
Old February 10th, 2012, 08:56 AM
sr sr is offline
Problem Solver
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2001
Location: Stockholm, Sweden
Posts: 4,314 sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)sr User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 12 h 26 m 54 sec
Reputation Power: 448
I think you should be able to use the "ndb_restore -m ..." to restore the meta data for the tables.
And since a copy of the .ctl file (control information and meta data) is saved on each node in the cluster I think you should be pretty safe.

Quote:
Originally Posted by manual
The first time you run the ndb_restore restoration program, you also need to restore the metadata. In other words, you must re-create the database tables—this can be done by running it with the -m option. Note that the cluster should have an empty database when starting to restore a backup. (In other words, you should start ndbd with --initial prior to performing the restore. You should also remove manually any Disk Data files present in the data node's DataDir.)


Ref: ndb_restore
__________________
/Stefan

Reply With Quote
  #3  
Old February 13th, 2012, 01:59 AM
azazel_bg azazel_bg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 151 azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level)azazel_bg User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 12 h 10 m 56 sec
Reputation Power: 39
Quote:
Originally Posted by sr
I think you should be able to use the "ndb_restore -m ..." to restore the meta data for the tables.
And since a copy of the .ctl file (control information and meta data) is saved on each node in the cluster I think you should be pretty safe.


And I should keep only one backup because as I understand it, it is not an incremental backup... RIGHT?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > MySQL Cluster backup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 2 - Follow our Sitemap