WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Xen backups using LVM Snapshots

To: Javier Guerra <javier@xxxxxxxxxxx>
Subject: Re: [Xen-users] Xen backups using LVM Snapshots
From: Lists <lists@xxxxxxxxxxxxx>
Date: Wed, 15 Oct 2008 14:31:44 +0000 (UTC)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 15 Oct 2008 07:32:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <90eb1dc70810150655h1ede08e8x32766e26a07b898d@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks Javier.  I might end up installing an online backup client on each DomU. 
 I'll also have a good look at rsnapshot.  I used rsync extensively a few years 
back to make online backups.

Thanks for your advice.
 -eco


----- Original Message -----
From: "Javier Guerra" <javier@xxxxxxxxxxx>
To: lists@xxxxxxxxxxxxx
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Sent: Wednesday, October 15, 2008 3:55:13 PM GMT +01:00 Amsterdam / Berlin / 
Bern / Rome / Stockholm / Vienna
Subject: Re: [Xen-users] Xen backups using LVM Snapshots

On Wed, Oct 15, 2008 at 2:17 AM,  <lists@xxxxxxxxxxxxx> wrote:
> Each DomU with a database has a cron that dumps the db with mysqldump.  Later 
> on, Dom0 will do an LVM Snapshot of all DomUs and then do a file system 
> backup of the Snapshots.  I do no actions on the DomUs.  No shutdown or 'xm 
> pause/save/...'


as you must have seen already, those snapshots mount as 'dirty'
filesystems, since they're exact copies of an already mounted
filesystem.  therefore, you have to run fsck on mount (usually
automatic on journalling filesystems).  depending on the journalling
algorithm, you risk having non-written data.

much safer, and easier IMHO, is to do a regular network backup.
something as simple as pulling via rsync the files you need.  (i
really like rsnapshot)

-- 
Javier

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users