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

Re: [Xen-users] how to find the underlying device of an block-attached d

To: deshantm@xxxxxxxxx
Subject: Re: [Xen-users] how to find the underlying device of an block-attached device
From: vu pham <vu@xxxxxxxxxx>
Date: Wed, 14 Jan 2009 20:57:48 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 14 Jan 2009 18:59:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1e16a9ed0901141716h2e34e823x59715ce2dd835720@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <496E5CCC.2000908@xxxxxxxxxx> <1e16a9ed0901141716h2e34e823x59715ce2dd835720@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20090105)
Todd Deshane wrote:
On Wed, Jan 14, 2009 at 4:44 PM, vu pham <vu@xxxxxxxxxx> wrote:
I added several files as block devices to a domU. Now I am trying to list
which files I used for the attached devices.
xm block-list does not return the file names.

[root@xen2 xen]#  xm block-list vtest5
Vdev  BE handle state evt-ch ring-ref BE-path
51712    0    0     4      6      8     /local/domain/0/backend/tap/2/51712
51728    0    0     4      7      9     /local/domain/0/backend/tap/2/51728
51744    0    0     4      9      786   /local/domain/0/backend/tap/2/51744
51760    0    0     4      10     885   /local/domain/0/backend/tap/2/51760
51776    0    0     4      11     850   /local/domain/0/backend/tap/2/51776
51792    0    0     4      12     1004  /local/domain/0/backend/tap/2/51792

Where can I find those information ?


Does the lsof command help here?

I was not very clear in my qeustion, I guess. For example, I have the following commands in dom0:

 #xm block-attach vtest5 tap:aio://xen/images/vtest5_c.img /dev/xvdc w
 #xm block-attach vtest5 tap:aio://xen/images/vtest5_d.img /dev/xvdd w
 #xm block-attach vtest5 tap:aio://xen/images/vtest5_e.img /dev/xvde w
 #xm block-attach vtest5 tap:aio://xen/images/vtest5_f.img /dev/xvdf w

Later, I would like to check which files ( in dom0 ) are corresponding to which devices ( in domU vtest5 ).

I tried lsof but I cannot fint the connection between the two.

Thanks,

Vu


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users