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] Just some (probably useless) information

To: Brandon Lamb <brandonlamb@xxxxxxxxx>
Subject: Re: [Xen-users] Just some (probably useless) information
From: Grant McWilliams <grantmasterflash@xxxxxxxxx>
Date: Sun, 21 Mar 2010 04:03:17 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 21 Mar 2010 04:05:24 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=fLxKxo8rGREAPaLn/Xr0Ft9cxqA/T1hCN9rQL30+UN4=; b=QGSmXCBFVgGpK6d7ondeX2upYjjGqCufiakDg+e15ZRkv7KbQXDKBELwNJ7zIywQfV zpTwabGMpYbtRweTbjhiHSNIs9UOFwVHfGXdCIRPS+CCYB0+TK6+p/uHqKIR+2Ha88Ld 6uM4nRI+LUm3AiRL8glPhmgaVkWl5d/GnEuSo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=OirxZGxLOoBkN8xJ1scXnT0k5CJFwuevBAhgAFrAc1ZDECwlMszsDM3TP/fbCZLDvE bs0xmLP54Xd8/GXS7cEBsNNq19HMfWIdplMgllmkeXyy92R6Hv620P5ZojwgqI03YIlg jzUIg7dRMBomxt0YwPwp1t3jxXBfXc1qt+WNs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f25c44611003200037r335dc5c6ma9efa74ac498f75b@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>
References: <f25c44611003200037r335dc5c6ma9efa74ac498f75b@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Mar 20, 2010 at 12:37 AM, Brandon Lamb <brandonlamb@xxxxxxxxx> wrote:
I did a very non scientific test for speeds of backing up disk/file
images to disk/file backups

I used lvm for both the disk based and to put the files onto during
the test. I used four 640gig sata 3.0gbps drives in a raid 10. There
was 2083 megabytes used on the filesystem, a windows xp install.

dd disk -> disk = 36 minutes

ntfsclone disk -> disk = 4 minutes

ntfsclone disk -> file = 2 minutes

cp file -> file = 11 seconds

So now I am left with the question of do I use file based images which
will have slower performance but super fast backup times, or go with a
lvm -> disk/file for the backup.

My particular use case will be a user gets a 20 gig drive for xp,
their it guy will do manual image backup creation. If they blow up
their windows box we will have a "click click" ok now they are running
againback up using the backup disk/file image. If I use all disk based
images then I will have to also create a file backup of the backup
disk for my remote backup box to save in case the host dies.

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



How big was the actual LV because it definitely shouldn't take dd 40 minute to copy 2 GB! Without optimizations that size disk should take 1 minute. If you go with ddrescue or tune dd with large blocks etc.. and depending on the speed of your RAID 10 you should be able to get that down to 30 seconds or less. If your volume is a lot larger than 2GB then you need to play with the sparse options but I think that only works with output files. Still when dding from one 80 GB drive to another 80GB drive it takes me 40 minutes or roughly 2/3 the maximum speed of the drive.

The other option would be to dd the LV to a backup LV and then have it mounted on another DomU (a backup VM) and just rsync to it often. This would keep an up to date LV which you could detatch and use in a hurry on the other VM. Of course you'd still want to follow the normal backup process anyway so you have more than one level of backup.


Grant McWilliams

Some people, when confronted with a problem, think "I know, I'll use Windows."
Now they have two problems.





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