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-devel

[Xen-devel] xenapi: can't share vbds in r/w mode

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xenapi: can't share vbds in r/w mode
From: Luciano Rocha <strange@xxxxxxxxxxxxx>
Date: Tue, 6 Nov 2007 11:52:44 +0000
Delivery-date: Tue, 06 Nov 2007 03:53:15 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.15 (2007-04-06)
(Again, this was previously posted to xen-api, but I got no answer. Are
any developers lurking there?)

Hello,

I can't create a new VM with a common vbd in R/W mode with another VM
using the XenAPI. I always get:
VmError: Device 769 (vbd) could not be connected.
Device /dev/bit/xentmp2 is mounted in a guest domain,
and so cannot be mounted now.

I make sure to have the device sharable when creating the VDI. And it
works as long as I only attach in mode RO. Is there anything I might be
missing?

xm also can't create a rw share, the vbd ends up ro in both vbds, if I
define the vbd as:
phy:bit/xentmp,hda1,w!

The VDI is configured as follows (I even tried creating a different VDI
for each VBD):
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><struct>
<member>
<name>Status</name>
<value><string>Success</string></value>
</member>
<member>
<name>Value</name>
<value><struct>
<member>
<name>read_only</name>
<value><boolean>0</boolean></value>
</member>
<member>
<name>VBDs</name>
<value><array><data>
<value><string>d954bfae-a878-3f65-4a73-b71aebc1c434</string></value>
</data></array></value>
</member>
<member>
<name>sharable</name>
<value><boolean>1</boolean></value>
</member>
<member>
<name>uuid</name>
<value><string>9fd3fcd1-0fe9-c872-f7a4-3be3069017b4</string></value>
</member>
<member>
<name>SR</name>
<value><string>2b793262-cc99-ded9-42ba-6fe4683eeeb1</string></value>
</member>
<member>
<name>other_config</name>
<value><struct>
<member>
<name>location</name>
<value><string>phy:bit/xentmp2</string></value>
</member>
</struct></value>
</member>
<member>
<name>name_label</name>
<value><string>phy:bit/xentmp2</string></value>
</member>
<member>
<name>physical_utilisation</name>
<value><string>0</string></value>
</member>
<member>
<name>name_description</name>
<value><string> </string></value>
</member>
<member>
<name>virtual_size</name>
<value><string>0</string></value>
</member>
<member>
<name>type</name>
<value><string>system</string></value>
</member>
</struct></value>
</member>
</struct></value>
</param>
</params>
</methodResponse>

-- 
lfr
0/0

Attachment: pgpmwxKVVsASI.pgp
Description: PGP signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] xenapi: can't share vbds in r/w mode, Luciano Rocha <=