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 mount one volume to 2 guests

To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] how to mount one volume to 2 guests
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Mon, 1 Jun 2009 22:37:00 +0700
Delivery-date: Mon, 01 Jun 2009 08:37:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090601175757.r8qa7fdkqb00ow0s@xxxxxxx>
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: <20090601175757.r8qa7fdkqb00ow0s@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
009/6/1  <nikolanikov@xxxxxxx>:
> I want to ask how to mount one storage device to 2 guests?
> When I try to create vm handle everything is fine I can create one vdi and
> vbds for every guest. When I start first machine everything is ok, but when
> I try to start second one it says that
>
> ERROR: 2 INTERNAL_ERROR Device 2051 (vbd) could not be connected.
> Device /dev/mapper/test_vg-test64_454 is mounted in a guest domain,
> and so cannot be mounted now.
>
> any Ideas how I can share one device to two or more virtual machines? I
> don't want network solution like nfs,iscsi ... etc

First of all, you DO realize that sharing a block device without some
kind of cluster file system could lead to data corruption?

If you want to share it anyway, you can try changing the mode to "r"
(for read only) or "w!" (to force read-write multiple mount).

-- 
Fajar

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