Skip to contentSkip to conversation

Where do xenstore entries get removed during "xm block-detach"?

DISCUSSION Jan Beulich 2 participants 2 messages Nov 18, 2010 – Nov 19, 2010

lore
Share & tools
lore
#0 lore raw

In trying to find out why, other than for file/tap, tap2 detaches leave /vm/<id>/device/tap2/* around (which I assume is [part of] the reason one can't later run block-attach again for the same device), I tried to locate where these get removed for file/tap devices, and I can only see them getting removed once during block-attach (presumably for cleanup purposes) in xstransact._remove.

xl, as far as I was able to see, doesn't properly attach/detach altogether, and mixing xl and xm doesn't seem to work either (based on a seemingly successful "xl block-attach" followed by a seemingly successful "xl block.detach", which left the device visible, followed by an unsuccessful "xm block-detach"). Shouldn't that all be more consistent?

Thanks for pointers, Jan

#1 lore raw

Jan Beulich writes ("[Xen-devel] Where do xenstore entries get removed during "xm block-detach"?"):

Quoted 1 line

and mixing xl and xm doesn't seem to work either

Yes, if mixing xl and xm works then it's by luck rather than design. (Although it can be a very useful piece of luck.)

I think we need to keep it working at least roughly as well as it does right now, because there is a potential xend to libxl migration path which involves stopping xend and then using "xl migrate".

Ian.