From: Daniel Stodden Subject: Re: XenStore management with driver domains. Date: Mon, 18 Jan 2010 15:39:18 -0800 Message-ID: <1263857958.8961.468.camel@agari.van.xensource.com> References: <4B54DF8B.9030609@scsiguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B54DF8B.9030609@scsiguy.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: "gibbs@scsiguy.com" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2010-01-18 at 17:24 -0500, Justin T. Gibbs wrote: > I've been experimenting with serving block storage between DomUs. > I can dynamically attach storage, transfer data to my hearts content, > but dynamic detach is providing some trouble. Both the front and > backend drivers detach cleanly, but the XenStore data for the > attachment persists, preventing the same storage object from > being attached again. > > After tracing through Xend and the hotplug scripts, it seems that > the current framework assumes backend teardown will occur in Dom0. > For example, xen-hotplug-cleanup, which is invoked when the backend > device instance is removed, removes the following paths from the > xenstore: > > /local/domain//device// > /local/domain//backend/// > /local/domain//error/backend/// > /vm//device// While you're cleaning up: Do you consider relative paths? I think fully qualified names such /local/domain/%d/device/vbd/%d/%d is always wrong. Try using "device/vbd/%d/%d" instead. I also think it I've seen this make an unwelcome difference in permission checks for updates issued by domUs in the past. But this information may be outdated. Daniel