From: Daniel Stodden Subject: Re: What happen to blktap2 in Xen 4.1 ?? Date: Mon, 4 Apr 2011 13:00:13 -0700 Message-ID: <1301947213.25476.7.camel@agari.van.xensource.com> References: <20BA4C7F44E243298DE5D0C0FF5AD870@rw764> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20BA4C7F44E243298DE5D0C0FF5AD870@rw764> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Sarge I <3sarge3@gmail.com> Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2011-04-04 at 13:35 -0400, Sarge I wrote: > Good day. > Im having problems with xen 4.1 in blktap2 operation.=20 > 1) can`t attach vhd image with tapdisk2 =E2=80=93n vhd:/path/to/file , > application respond with =E2=80=9Cusage: tapdisk2 <-u uuid> <-c control > socket>=E2=80=9D, in previous version it was =E2=80=9Cusage: tapdisk2 <= -n file>=E2=80=9D. > Question is, how to attach image file in xen 4.1 , please ? Never. Try tap-ctl -n <..> > 2) after stopping domU with tap2:vhd images, tapdisk2 processes > remain in memory as well as devices in /sys/class/blktap2. Yeah, this is normal at least by xl right now. Normally the toolstacks are supposed to keep a refcount on the device usage, I don't think that presently happens. > On other hand, there are no longer possibility to list attached images > in /sys/class/blktap2/devices: > sarge@kxen pts/2: cat /sys/class/blktap2/devices > 0 =E2=82=ACL=C2=A9=01=7F > 1 =E2=82=AC=E2=80=94=CB=9C4=7F > 2 =E2=82=ACw=C3=B8=C3=A3=7F > 3 =E2=82=AC=C3=B79=18=7F Interesting. It's not used by xl or tap-ctl, actually it was just left around for backward compat with older toolstacks. That said, it should work nonetheless, and this looks broken indeed. I'll check it out. > instead of expected (from previous 4.0.1) : > 0 vhd:/etc/xen/images/webserver.vhd > how to read currently attached disks please ? There's a tap-ctl list command, which performs a scan through all spawned tapdisk processes and the set of allocated disk nodes, and which connects to which. Daniel