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] How to force xm create to allow same disk mounted to mor

To: <mghofran@xxxxxxxxxxxxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] How to force xm create to allow same disk mounted to more than one quest
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Wed, 30 Sep 2009 22:49:17 +1000
Cc:
Delivery-date: Wed, 30 Sep 2009 05:50:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1BA553C5537DA74194724A82D9595CCB01DEF197@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/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: <1BA553C5537DA74194724A82D9595CCB01DEF197@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpByAaNY1EPfAcaRiWOpfu29N5BrAABDUzA
Thread-topic: [Xen-users] How to force xm create to allow same disk mounted to more than one quest
> 
> In my system I'd like to be able to share one disk among multiple xen
quests
> and boot them up using this shared disk. Is it possible to set a flag
> somewhere to avoid the following error.
> 
> # xm create guest2 kernel="/TMP/vmlinuz" ramdisk=/TMP/initrd.img
bootloader=""
> extra=rescue
> Using config file "./guest2".
> Error: The uname "/dev/sdz" is already used by another domain
> 
> What I am trying to do is to have one disk which it's boot partition
would
> show a menu to choose different OS from it while the logical volumes
in that
> one disk would point to different OS.
> 
> Any help is appreciated.
> 
> # uname -r
> 2.6.18-164.el5xen
> 

I think you append a '!' to the end of the mode, eg:

'phy:/dev/vg00/virt-devsql01-0,hda,r!'

(or w! if you are _really_ sure that you know what you are doing)

James


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

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