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

Re: [Xen-API] [Project Kronos] SR_BACKEND_FAILURE_53 when creating SR

To: eneal@xxxxxxxxxxxxxxxxx, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-API] [Project Kronos] SR_BACKEND_FAILURE_53 when creating SR
From: Sébastien Riccio <sr@xxxxxxxxxxxxxxx>
Date: Tue, 23 Aug 2011 22:02:59 +0200
Cc:
Delivery-date: Tue, 23 Aug 2011 13:03:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E5401FD.2080900@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <1314126782132552500@xxxxxxxxxxxxxxxxx> <1314127294598988500@xxxxxxxxxxxxxxxxx> <4E5401FD.2080900@xxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0
On 23.08.2011 21:39, Sébastien Riccio wrote:


Sorry, didn't notice this before, but SMLog says this:

[3010] 2011-08-23 15:17:42.111948       SUCCESS
[3010] 2011-08-23 15:17:42.112201 ['/sbin/vgcreate', 'VG_XenStorage-c6ed11e9-8acf-3c48-93b9-10a7607f6035', '/dev/sda3']
[3010] 2011-08-23 15:17:42.209556       SUCCESS
[3010] 2011-08-23 15:17:42.209789 ['/sbin/vgchange', '-an', '--master', 'VG_XenStorage-c6ed11e9-8acf-3c48-93b9-10a7607f6035'] [3010] 2011-08-23 15:17:42.223883 FAILED: (rc 3) stdout: '', stderr: '/sbin/vgchange: unrecognized option '--master'
   Error during parsing of command line.

Obviously, --master is not a flag for vgchange..

Editing lvutil.pyc in /usr/lib/xen-common/xapi/sm gets me past this issue...

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api



I found again where I read this. Here is a copy/paste:
--
We use XAPI as the "Cluster lock manager"
essentially. There is a strict notion of ordering of events, and XAPI
always ensures that there is a single SRMaster for any shared SR. The SR
master is the only entity that modifies LVM metadata, and it
strategically refreshes slaves as necessary. Typically slaves only
operate in an LVM Read-only mode, so the LVM metadata is refreshed when
a slave needs to access a new logical volume, and the slave is only
allowed to create device-mapper nodes, never to modify the LVM metadata.

There are patches to LVM to add an explicit 'master' flag, this ensures
that non-masters never attempt to repair LVM metadata if ever it is read
and found to be inconsistent. In practice this would never happen due to
the way LVM updates its metadata and the fact that we do not allow
shared Volume Groups that span more than one LUN, however it's an
important safety catch.
--

So a patched lvm will need to be provided for debian too, for safely using
lvm on shared storage environnement ...

Sébastien

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api