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] sles 10 lvm install clone/copy

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] sles 10 lvm install clone/copy
From: "Tijl Van den Broeck" <subspawn@xxxxxxxxx>
Date: Tue, 21 Nov 2006 08:08:43 +0100
Cc: Alex Bagehot <abagehot@xxxxxxxxxx>
Delivery-date: Mon, 20 Nov 2006 23:09:06 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gXWwlq9x8LjQGbN8eMaj5xvHyFaJ7ZCtQpk5mdHfWWjth/OZkY0BwQvkgPHLEkye1pP2RFxIqA7M9yAnSDOylQXXsQSl/kf+8kl9T/vYRCglfFyuIcXZcLDoBO1qP+nwkjcMjYSLZlhiH+0SBlCWHxzX6CunUGzx6NUZYQ5XNck=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <5AC19B5C084C754D82F23EA55ECF2EF601048A60@xxxxxxxxxxxxxxxxxxxxxx>
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: <5AC19B5C084C754D82F23EA55ECF2EF601048A60@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
You probably have an vgdomu-pool with lvmachine1, lvmachine2,... as
lvm backends for your DomU's right? These lv's all have a partition
table for their domU, you can check that with "sfdisk -l
/dev/mapper/lvmachine1"

Only if they are equally sized you can use "dd
if=/dev/mapper/lvmachine1 of=/dev/mapper/lvmachine2 bs=1M". If they
are not equally sized (which is mostly the case), those lv's need to
be -so called- loop mounted in your dom0 if you want to copy their
contents and manually adjust. There's a tool called "losetup" for
that, it allows you to loop-mount a partition within another
partition/lv/file. I can't give the direct syntax for it, since it has
been a while since I used it. Someone else on the list can help
perhaps?

I also believe SLES10 has a special "cloop" package for such situations?

greets

Tijl Van den Broeck

On 11/17/06, Alex Bagehot <abagehot@xxxxxxxxxx> wrote:




Hi,



I have installed sles 10 on a logical volume without problem using the yast
installer.



However, can anyone help me clone that installation onto other lv's, I can't
seem to mount the lv in dom0 and can't find any help on copying/cloning
lv's?



I want to install once then clone the install 5 times say to make a server
cluster (Websphere), changing the ip addresses etc. If there's a better way
to do it then feel free to suggest.



Thanks in advance,

Alex



This message has been scanned for viruses by BlackSpider MailControl
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users



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

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