Home > Archive > MySQL ODBC Connector > September 2005 > Re: LVM-snapshot + mysqldump -- is this a reasonable backup









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: LVM-snapshot + mysqldump -- is this a reasonable backup
William R. Mussatto

2005-09-29, 8:23 pm

George Herson said:

> James G. Sack (jim) wrote:
>
> <snip>
>
> Jim,
>
> I didn't word my question quite right because I was only guessing at
> what a LVM snapshot was. Moreover, what you're saying is all correct.
> However, I was not suggesting that the snapshot be kept around once the
> backup is made.
>
> Let's go to article "What is a Logical Volume Manager (LVM) snapshot and
> how do I use it?
> <http://kbase.redhat.com/faq/dml_fet...cname=AS/ES/WS%

20Basics&Id=&Instance=&Shared=>"
> in the RedHat k'base
> <http://www.redhat.com/apps/support/knowledgebase/>. It says "After
> performing the backup of the snapshot partition we release the
> snapshot". This implies, at least to me, that one doesn't need a 2nd
> database server or to do a mysqldump (your steps 5-7). Instead, we just
> tar cv /mnt/ops/dbbackup (to use the article's example name for the
> mounted snapshot), save the tape, and dispense with the snapshot.
> Wouldn't that work? MySQL keeps its data in files already, so why is it
> necessary to mysqldump it? Are you only trying to avoid having to also
> backup the mysqld version that wrote the data files to ensure that
> these can be read later?
>
> George

The LVM snapshot will hold the state of the database as it is written to
the disk. However, the database engine may have to write several things
to the disk to ensure consistency (e.g, main table and index). If you take
the snapshot between these two operations the database will be in an
inconsistent state. Mysqldump locks the tables before performing a dump
to prevent this.



-------

William R. Mussatto, Senior Systems Engineer
http://www.csz.com
Ph. 909-920-9154 ext. 27
FAX. 909-608-7061



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql? unsub...sie.nctu.edu.tw

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com