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

Re: [Xen-users] problem on cloing guest (SOLVED)


  • To: "Antoine Benkemoun" <antoine.benkemoun@xxxxxx>
  • From: "Grant McWilliams" <grantmasterflash@xxxxxxxxx>
  • Date: Tue, 16 Sep 2008 10:14:48 -0700
  • Cc: Stephen Liu <satimis@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 16 Sep 2008 10:15:25 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=YixJR3crersdHkwvM41jplAGG7BkctQiGFrZ6BI/gjPsRGBFZGxeuxbU6tFbVCWW65 Ir+Rh02CHICC7/1cG3BT1wFwG8v9kbCGkxzCSlbvZfN2OjsswtCO/udfkz7pz1lGJJQ1 dtpRvsNHRiK4uSEkQiduG90PDqH/ufPHAvMIg=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>


On Mon, Sep 15, 2008 at 11:43 PM, Antoine Benkemoun <antoine.benkemoun@xxxxxx> wrote:
Hello,

Fantastic that you found the answer ! I still think that it may possible to do this using cp... unless cp doesn't make a bit by bit copy but I would hope that it does.

Antoine


I think it depends on how you want it to handle sparse files. DD will make a copy of everything even if half the file is zeros. CP can copy sparse files but you need to tell it when to do that (sparse=).

Also a note to the original poster, you may want to mess with bs= to find a better value. I generally use dd_rescue or ddrescue to clone images as it's about twice as fast as dd but if you mess with some of the parameters of dd (namely bs=) you can get dd to run almost as fast as the other two. If you're creating 100 images it's probably worth spending a couple minutes running some tests. Optimized dd is probably a better choice than dd_rescue as it's more predictable.

Grant
_______________________________________________
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®.