?
Solved

MySQL Server 5.5 Live Backup without "Freezers" on Locktables

Posted on 2014-11-12
4
Medium Priority
?
257 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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 article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
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 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…
Suggested Courses

762 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