[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-users] XEN : Is there any way for sharing base virtual image.?
- To: "Christian Horn" <chorn@xxxxxxxxxxxx>, ashifsyed@xxxxxxxxx, arunain@xxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx, "Anand Gupta" <xen.mails@xxxxxxxxx>
- From: "Arun Sharma" <arunain@xxxxxxxxx>
- Date: Sat, 3 Nov 2007 14:50:10 +0530
- Delivery-date: Sat, 03 Nov 2007 02:20:58 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mkJ7o+5fSG+xtGExMtln80Pw3e8nAWW+5njyTx5FdszzwCIEF/iDJeSF5JpuIUyPNTtlL6IUR4F/LVxCg/jXnS8mFa+SbSF4IOlpFwI1tGoNz2/Y6CVA915h1YMWADXkzCi7bwQNZGMkjdz1Mhe2bLtngTJ84w6n9cDwSijw1BY=
- List-id: Xen user discussion <xen-users.lists.xensource.com>
Hi Christian ,
Its good to know the concept given by you.I found one more thing to work the same like stuf.. even you will feel nice about it.
UnionFS based snapshotting Or having a Read only based virtual machines.
Just give a try and give the feedback. Since i found this concept interesting.
http://flaviostechnotalk.com/wordpress/index.php/2005/06/28/filesystem-snapshots-with-unionfs/
Regards Arun Sharma
On 11/2/07, Christian Horn <chorn@xxxxxxxxxxxx> wrote:
On Fri, Nov 02, 2007 at 07:01:35PM +0530, Arun Sharma wrote: > > So can you give me the steps by step doc on how to implemnent the same you > are talking about. So that i can have a try.
The basic steps using usual lvm2 are:
- create a pv, i.e. if /dev/sdc is a disc you want to use: pvcreate /dev/sdc
- create a volumegroup containing the created pv: vgcreate vg_xen /dev/sdc
- create your master-volme:
lvcreate -L 7G -n lv_master vg_xen
- create the master-domU: create a xen-domU using phy:/dev/vg_xen/lv_master as disc and install your OS
- shutdown the master-domU
- create the first snapshot:
lvcreate -s -L 2G -n lv_snap01 /dev/vg_xen/lv_master The above leaves 2G storage for changes that the slave-domU can make in the snapshot.
- create the first slave-domU: create a xen-configfile mostly
similiar to the master-domU config, change domU name, and use phy:/dev/vg_xen/lv_snap01 as disc
Christian
--
Regards Arun Sharma 0-934-829-3810
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|