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

xen-users

[Top] [All Lists]

RE: [Xen-users] Cloning domUs

To: "'Nico Kadel-Garcia'" <nkadel@xxxxxxxxx>, "'Steve Wray'" <steve.wray@xxxxxxxxx>
Subject: RE: [Xen-users] Cloning domUs
From: "Artur Linhart - Linux communication" <AL.LINUX@xxxxxxxxxxx>
Date: Tue, 7 Aug 2007 12:10:09 +0200
Cc: 'Stephen Shaw' <stshaw@xxxxxxxxxx>, 'Geoff Kirk' <geoff.k@xxxxxxxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2007年8月07日 03:08:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46B7A9E7.40306@xxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <7fedbc910708060456k418441b0k53fd7f6a0cd720e6@xxxxxxxxxxxxxx> <46B70CF6.5090607@xxxxxxxxxxxxxxxx> <7fedbc910708060507i2b8e54b2mab73f358e66e80da@xxxxxxxxxxxxxx> <46B72C73.9090806@xxxxxxxxxxxxxxxxxxx><46B72C73.9090806@xxxxxxxxxxxxxxxxxxx> <46B77957.8040403@xxxxxxxxx><46B73569.DCE9.00A8.0@xxxxxxxxxx> <46B790D5.6010203@xxxxxxxxx> <46B7A9E7.40306@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcfYfleRGCBmhEXOSy62TKD9V9o0+AAW5b4g
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
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-users] Problem installing Windows2003 Server on Xen Server 30day trial , Artur Linhart - Linux communication
Next by Date: RE: [Xen-users] Ref: Windows 2k3 Guest: boot problem from ISO , Artur Linhart - Linux communication
Previous by Thread: Re: [Xen-users] Cloning domUs , Nico Kadel-Garcia
Next by Thread: Re: [Xen-users] Cloning domUs , Geoff Kirk
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /