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: "vu pham" <vu@xxxxxxxxxx>
Subject: Re: [Xen-users] how to find the underlying device of an block-attached device
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Wed, 14 Jan 2009 20:16:58 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 14 Jan 2009 17:17:43 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=LX6lnLdbYdfEZ38kkOpNR+cNEvF/qWwdM+AsnbiXh4Y=; b=P+ZoDJ3M8WQNZn6pwnSZfhpkvsjuNluRq3I9eYg9SxVVv7LQ+riC/vz3eBEDciDTn0 FG9vO18DQ4HkN3dDR4VEWQxbiZ11zT+L0p48cNTADDHogbLZ+RgkDRdVz23C+RTKIhMd 0cpsopMk7hhJCq2kC+oFDw4E5hpca6ADvDrRk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=OxW42qE8+a6mllzSAemjnrm1jkqgZQMUvyVvdsZ92NqUnyrrNsjC4N4FiCVVUayJlP w4ysWxQvfsrnZxYcENemK95qpy85jxXf6wi4X6TnpIV1X2jbO1WdhcQzfiSDKFMcIRqq g0D3KtcUEU9t7HY42uObgkyAWRi7lAEh5t67s=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <496E5CCC.2000908@xxxxxxxxxx>
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>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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?

Cheers,
Todd

-- 
Todd Deshane
http://todddeshane.net
http://runningxen.com

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