Solved

MySQL Server 5.5 Live Backup without "Freezers" on Locktables

Posted on 2014-11-12
4
252 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

724 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