[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [Xen-users] Cloning domUs
If LVM are used, what are Your opinions about the way simply to create the snapshot volume to existing DomU and modify the configuration files on the new volume only? I tried it and it works OK, as far as I tested it till now... The advantage is, You can save a lot of disk space because the data are shared by both logical volumes till not modified... Also the snapshot creation takes1 second, so it is much more faster than copy the whole partition... Sure, for swap I created brand new volumes, there is no reason to share the data. Has this way some performance problems? With best regards, Archie -----Original Message----- From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Nico Kadel-Garcia Sent: Tuesday, August 07, 2007 1:08 AM To: Steve Wray Cc: Stephen Shaw; Geoff Kirk; xen-users@xxxxxxxxxxxxxxxxxxx Subject: Re: [Xen-users] Cloning domUs Steve Wray wrote: > 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. Not relevant here: the Dom0's /etc/passwd and associated uid's is the one in charge of both the source and target uid's. Very useful for other circumstances, though! _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users __________ Informace od NOD32 2440 (20070806) __________ Tato zprava byla proverena antivirovym systemem NOD32. http://www.nod32.cz _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |