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] Cloning domUs

Stephen Shaw wrote:
Nico Kadel-Garcia <nkadel@xxxxxxxxx> 08/06/07 1:41 PM >>>
Geoff Kirk wrote:
shacky wrote:
What storage method are you using for the domU?
I'm using LVM for most domUs...


Using LVM i create a new volume mount the domU i want to copy and the new volume, format the new volume and cp -dpR the files over, then edit the network/hostname config. Don't forget swap space too.

It maybe you can just snapshot the domU and edit the network but i don't know if thats wise.

Geoff.
I use 'rsync -avH' instead of 'cp -a', since it handles being re-run better and handles exclusions better, too.

rsync is great.  Are you creating sparse files?  If so, can rsync handle that

I've used cp --sparse=always when I copy domUs

And don't forget the --numeric-ids on rsync.



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

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