From: Ian Campbell Subject: Re: xl: multiple domain with the same name allowed? Date: Wed, 15 Sep 2010 09:37:29 +0100 Message-ID: <1284539849.14311.18378.camel@zakaz.uk.xensource.com> References: <4C89E65C.20102@amd.com> <1284108345.14311.5513.camel@zakaz.uk.xensource.com> <1284114886.25428.55.camel@marc> <1284367338.14311.14264.camel@zakaz.uk.xensource.com> <1284373034.15133.78.camel@marc> <1284385202.14311.14591.camel@zakaz.uk.xensource.com> <19599.42156.623265.851003@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19599.42156.623265.851003@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: xen-devel , "Marc - A. Dahlhaus" List-Id: xen-devel@lists.xenproject.org On Tue, 2010-09-14 at 17:37 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] xl: multiple domain with the same name allowed?"): > > I htink xend has done this for a long time, I don't think it is a new > > can of worms. > > Yes, xend has. I'm not sure it even has a way of overriding it. > > How should we detect this situation ? Look for instances of blktap > and mounted filesystems and LVM having it open and ... ? (I'm not > even sure how it's possible to find out whether an LVM PV is "open" > according to the LVM system.) I don't really know the details but tools/hotplug/Linux/block contains functions such as check_{device,file}_sharing() which I always presumed was how xend ended up doing the right thing for shared devices. If sharing is happening it appears to write the hotplug-error and hotplug-status nodes in xenstore. Ian.