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/
Home Products Support Community News


Re: [Xen-users] A simple backup

To: Steve Spencer <sspencer@xxxxxxxx>
Subject: Re: [Xen-users] A simple backup
From: Nick Anderson <nick@xxxxxxxxxxxx>
Date: Wed, 07 May 2008 16:37:41 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 07 May 2008 14:38:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <48221AEF.50009@xxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <48221AEF.50009@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20080227)
Steve Spencer wrote:
My question is, if I just want to backup the currently running vm's can I just backup the disk images and config files or do I need to do as the article suggests and also backup machine states and memory images?

If you only need to be able to replace a few files then you dont need the machine states and memory image. If you want a "warm" backup of the full OS then you would want that memory state.

So if you want warm backup (think full point in time restore ... running point in time) and if you are using lvm backed domU.
xm save
lvcreate snapshot (of both disk and swap)
xm restore
dd the snapshots you created out to files
grab the xm save checkpoint, the images you created by dding the disk and swap, and grab the domU config
tar it up

Then you can if you needed to dd the image back to the lvms, put the domU config in place and run xm restore on the checkpoint,

It would put your machine back to the way it was when you first ran xm save.

Does that make sense?

Nick Anderson <nick@xxxxxxxxxxxx>

Attachment: nick.vcf
Description: Vcard

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>