Solved

MySQL Server 5.5 Live Backup without "Freezers" on Locktables

Posted on 2014-11-12
4
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Suggested Solutions

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

749 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