[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] what to backup Xen partition with?


  • To: "JHJE (Jan Holst Jensen)" <jhje@xxxxxxxxxxxxxxx>
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.