Solved

MySQL Server 5.5 Live Backup without "Freezers" on Locktables

Posted on 2014-11-12
4
239 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
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.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

771 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

12 Experts available now in Live!

Get 1:1 Help Now