Solved

MySQL Server 5.5 Live Backup without "Freezers" on Locktables

Posted on 2014-11-12
4
244 Views
Last Modified: 2014-11-27
Dear experts,

i have a Problem: i have installed a Debian wheezy x64 (current Version) with ext4 file System.
here i have running a mysql-server 5.5.

my database size is about 1gigabyte. my mainproblem is the follwing:
under the day we made backups every 30 minutes with the mysql dump command.
so if the Server made a mysql dump, the data freezes for about 20 seconds (i think mysql dump locking the tables).

so now how i can make a backup without this freezers? and without data loss..

any ideas?

thanks, many greets
0
Comment
Question by:M K
  • 3
4 Comments
 
LVL 19

Accepted Solution

by:
jools earned 500 total points
ID: 40439434
You can use the "--single-transaction" option for mysqldump to limit the locking.

With regards to "without data loss", if you really want to guarantee that then you may need to look at clustering and/or one of the supported enterprise versions and mysql backup solution.
0
 

Author Comment

by:M K
ID: 40439439
Hello Jools,

thank you!

okay, clustering. how i can do that? what is better? clustering for backing up live, or a good backup Software?
do you know a good backup solution / Software? clustering i Need 2 or 3 virutal Servers, right? i think its too bad only for backup?

how would you solve it if this is your Server?

thanks!
0
 
LVL 19

Expert Comment

by:jools
ID: 40439463
How I would do it entirely depends on how critical the server was and what budget I had.

If it was critical but I had no budget then I'd say 20 seconds hanging was acceptable and have a go at using the single-transaction option. We currently use this for a backup that takes about 12 hours and creates a 340G sql file, I in the middle of recovering this to a different server, so far its taken 7 days!

If I had budget then I'd look at this http://www.mysql.com/products/enterprise/backup.html and this http://www.mysql.com/products/cluster/
0
 
LVL 19

Expert Comment

by:jools
ID: 40439466
on the other hand, if I had a good budget I'd look at an Oracle offering and use archiving and rman backups like we use on other services but this really depends on support options, cost and application support.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now