vu pham
2009-Jan-14 21:44 UTC
[Xen-users] how to find the underlying device of an block-attached device
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 ? Thanks, Vu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2009-Jan-15 01:16 UTC
Re: [Xen-users] how to find the underlying device of an block-attached device
On Wed, Jan 14, 2009 at 4:44 PM, vu pham <vu@sivell.com> 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? Cheers, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
vu pham
2009-Jan-15 02:57 UTC
Re: [Xen-users] how to find the underlying device of an block-attached device
Todd Deshane wrote:> On Wed, Jan 14, 2009 at 4:44 PM, vu pham <vu@sivell.com> 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@lists.xensource.com http://lists.xensource.com/xen-users
Ferenc Wagner
2009-Jan-15 10:18 UTC
[Xen-users] Re: how to find the underlying device of an block-attached device
vu pham <vu@sivell.com> writes:> 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 ?Try ''xm list --long vtest5'' or ''xenstore-ls''. -- Feri. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
vu pham
2009-Jan-15 12:50 UTC
[Xen-users] Re: how to find the underlying device of an block-attached device
Ferenc Wagner wrote:> vu pham <vu@sivell.com> writes: > > >> 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 ? >> > > Try ''xm list --long vtest5'' or ''xenstore-ls''. >Thanks, Ferenc. Both commands give me the results that I need. Vu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users