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: Fwd: [Xen-users] differencing disks

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: Fwd: [Xen-users] differencing disks
From: Alex Edwards <edwards.alex@xxxxxxxxx>
Date: Fri, 9 Jul 2010 11:05:30 +0100
Delivery-date: Fri, 09 Jul 2010 03:19:01 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=M9tNbJs89f1TlFyEjVd1abUS9G6Qhc27pVMvI5Omnck=; b=EE8Fbc6KXmKiXgqSNaGCXhQYUoFfLB4xzy/ein2wKidC7dqv4bWIFScjRlqwQLX1Fy zK2Ag+xFq5wLzaz9Uh46+hEg4ilpMTcPF8B7R1ylvuMWZG/ZDPsUEFuSzFYfUqOFakqz RNvxpxOiBWt5dUwZjI6P5jtP0WruJ3X6my2wA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kVItDaNJbxMuQICBto87oPVsDfwX/C3fbcNor8DJCcvmQZdNK0PrUNdWQ2cppabanI /B31ip4A0t15Kz4MDtrBQnBvOW+U25h6lGrEHH3SRwubyUwId25nXordIk2Xjdg58X8L vJ9siwZCTFQ0aDKaMIfH8fTw2Z6hc/1FQkYl8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201007091157.13864.bart.coninckx@xxxxxxxxxx>
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: <AANLkTilZLwaNBEhqVG3ddbEEB1dOhYFkJSImPFGe5AE0@xxxxxxxxxxxxxx> <AANLkTimYbe0V9B-K8Xw605iBvCdYmv_NjjNP4bx6kfMw@xxxxxxxxxxxxxx> <AANLkTimdTT8DTnbaw2uY6Yd2HELnNwnIgFV5d-iKUeLr@xxxxxxxxxxxxxx> <201007091157.13864.bart.coninckx@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Yeah thanks Bart thats what im after. Would i be potentially be able to run running1.img and running2.img at the same time? And i can build something in that will prevent it from trying to start an img thats being copied but i dont forsee it being that unstable that it breaks that often.

thankyou very much
Alex

On Fri, Jul 9, 2010 at 10:57 AM, Bart Coninckx <bart.coninckx@xxxxxxxxxx> wrote:
On Friday 09 July 2010 10:42:41 Alex Edwards wrote:
> ---------- Forwarded message ----------
> From: Alex Edwards <edwards.alex@xxxxxxxxx>
> Date: Fri, Jul 9, 2010 at 9:40 AM
> Subject: Re: [Xen-users] differencing disks
> To: Bart Coninckx <bart.coninckx@xxxxxxxxxx>
>
>
> yes I do believe that it is snapshoting, Differencing disks appears to be a
> msoft term given to their VHD tech. I could use snapshots but its more than
> I need. I want 1 point that i always go back to. Could I create a system
> image that can just be remounted when I want to go back? If i had an image
> of my system at a point in time, how fast could I remount it in a different
> VM?
>
> thanks
> Alex
>
> On Fri, Jul 9, 2010 at 9:03 AM, Bart Coninckx
<bart.coninckx@xxxxxxxxxx>wrote:
> > On Friday 09 July 2010 09:29:09 Alex Edwards wrote:
> > > hello all,
> > >
> > > I have little experience of virtualisation only what i have read in the
> > >  past couple of days! but i think it can offer me what i need. I would
> > > be grateful for your input.
> > >
> > > I have 3 systems I need to demo, I want to deploy these systems to a
> > > base state where i know that they will be working. At this point I want
> > > to
> >
> > lock
> >
> > > them. I want to be able to give it at this point to somebody and say
> > > "do want you want" when/if they break it i want to be able to return it
> > > to
> >
> > its
> >
> > > known stable state. This return to a stable state needs to happen
> >
> > quickly,
> >
> > > seconds would be great but minutes would be acceptable.
> > >
> > > I have been reading about differencing disks and believe that these
> > > would be the right solution?
> > >
> > > thanks
> > > Alex
> >
> > I believe that is a sort of snapshotting you are referring to; AFAIK Xen
> > does
> > not have such a feature, but LVM does. You need to install your root file
> > system on LVM as well, don't know what the effect would be of restoring a
> > root
> > file system snapshot however. Also don't know if this can be done in
> > "seconds"
> > - you need to try this I think. Another way could be to make a RAID1,
> > disconnect it after your initial install, then after changes swap the
> > main disk and mirror it again to the first one to get to the original
> > state. This
> > answers the "in seconds" part.
> >
> > B.
>

Forget about my remark about the root file system and the RAID1, was thinking
of a physical machine. For Xen, I would do it like this:

- create a master image file
- copy this to in three versions: orginal.img, running1.img and running2.img
- boot the Xen machine with running1.img, have people change stuff
- stop the Xen machine, change the image file in the Xen config to
running2.img
- start the machine again
- copy orginal.img to running1.img
- stop the machine, change config to running1.img
- copy orginal.img to running2.img
- repeat ...

scripted this will only take you seconds. It does suppose however that the
guests are running long anough to have the original image copied in
background.

B.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>