nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Alternative way for mysqldump

This is a discussion on Alternative way for mysqldump within the Databases servers forums, part of the Mastering Servers category; Hello, I knew mysqldump is the safest way to backup data, but it uses lot my system resources and the ...


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-22-2008, 12:06 PM
Junior Member
User
 
Join Date: Nov 2007
My distro: RedHat Linux 4
Posts: 10
Rep Power: 0
ephdia is on a distinguished road
Lightbulb Alternative way for mysqldump

Hello,
I knew mysqldump is the safest way to backup data, but it uses lot my system resources and the system goes ideal at the time mysqldump.So i need to get alternative solutions for mysqldump.I am heard of mysqlhotcopy and direct copy of mysql(/var/lib/mysql).But i want to know redundant solution for this.
Please kindly advise me on this...

Thanks,
Ephdia
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-28-2008, 12:24 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 967
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

How big is your database? mysqldump works very nicely.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 07-12-2008, 12:08 PM
Junior Member
User
 
Join Date: Jul 2008
Location: Washington, US
My distro: CentOS, Ubuntu
Posts: 6
Rep Power: 0
memnoch_proxy is on a distinguished road
Default plan for performance

Chances are your database dumps are competing for resources. One of the awesome things about mysql is that it comes with replication. I suggest setting up a slave server for DR and backups duty.

Depending on which engine or engines you want to use, you can skip the mysql dumps and just backup the filesystem, however, that's not without it's gotchas:
. innodb table files are not stable unless you do a clean shutdown
. mysql tables need to flushed before copying

If you are using LVM to manage your partitions, you could consider just using brief downtime to take snapshots of your data partition. This is, IME, a 30 second interruption with the possibility of a large load penatly during restart. I've watched 8-core systems get a restart on a snapshotted volume "rebound" spike up to load 100 - 120. This typically means your application will suffer, drop connects, etc, while all tables that are commonly written to, copy the extents they own as part of the copy-on-write snapshot process. Remeber, you have to shut down mysql in order to get a clean copy of those datafiles, esp if you're running innodb.

Please think about how fast your application is being adopted (getting more popular?) and how fast your data-set is growing. If your app is suffering when you do mysql dumps, chances are you're facing the need to scale out.

I perform site replication and do backups from a server in my office that mirrors my production system.

Good luck, I hope you have a budget.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Open Source alternative for every MS application Ashish Pathak The Hangout 2 04-18-2005 06:37 AM


All times are GMT +5.5. The time now is 05:50 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36