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] what to backup Xen partition with?

To: "JHJE (Jan Holst Jensen)" <jhje@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] what to backup Xen partition with?
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Fri, 02 Feb 2007 08:23:41 +0000
Cc: "Rakotomandimby \(R12y\) Mihamina" <mihamina.rakotomandimby@xxxxxxxxxxxxxxxxxxx>, Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 02 Feb 2007 00:23:20 -0800
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=P8/5x/TBoYy0AVMEPSDzjC8kvBmO+Xml9igTY8yt1h/UVGpSteF4Ka2ILaLLtSIaLLhuGH/1/jY/H3QSJaMVUM1X1O82RSAv8k6myXfdiFZs5plciMglkn9TXKLAI+iJmdbd1VZAx1zsj/LWvPHaygzxm2IcupzRLhgkx83YKGY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <40726A9415C7FA4E985717142CA98064011E1EFF@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <40726A9415C7FA4E985717142CA98064011E1EFF@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
JHJE (Jan Holst Jensen) wrote:
I have 4 x 10GB to backup. Of course, the backup is done while the domains are down.
The domains are 4 different Linux distributions I make tests on.
[...]
But it's still too slow (dd+bzip2). Would you know another way to make partition backups?

Hi.

Since these are all Linux distros, AND you are backing up while the
domains are down, I would suggest that you simply mount the partitions
and do a tarball of the file system - or do an rsync of the whole thing
for even better performance.
dd will always be slow and oversized! You have to read every single byte, and if you're writing to a file on the same disk, the disk is going to be chugging back and forth even worse. Even on another disk, it's hardly efficient. And if it's a live file system, you're in danger because it's possible, even likely that blocks will not yet be written to disk and you can have an extremely corrupt filesystem recorded without the information to fix it.

So don't do partition backups. Store a note about the size and location of the partition, a note about the type of file system, then mount it and do a tarball of the files. There are techniques to make a file-system snapshot and a "paused" copy of the Xen domain that may also help: snapshot it and build a new domaiun frm the copy, then shut the copy down and make a tarball from *that*. It'll also restore to a new partition a lot faster than a dd copy, and you can use a different sized partition for the newly restored domain if desired.

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

<Prev in Thread] Current Thread [Next in Thread>