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] which disks/block device does Xen use at the moment?

To: Tomasz Chmielewski <mangoo@xxxxxxxx>
Subject: Re: [Xen-users] which disks/block device does Xen use at the moment?
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Mon, 19 Nov 2007 16:11:51 +0000
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 19 Nov 2007 08:10:44 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=sJn15G/U0zl8QL1HlALpAbkUdyCabOv6sGqGR+4pbb8=; b=jO5EpRkXrbqbdPA45lSEWjSpMoQL2Up82f3W+6xpZ9IBuNYkoGx5HlJTK+2ZXJ+PWHDASkA7knlScAM3oXSBhSYIOclcisWMpygwlxtyamq3arjt921FBG1gqFMFEwILbtcHCYEmxUjUM/oIHjCo/5e5BmV5zdCzMFULItEP+Jc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=cn4ntnuc+Ot8pYGn1wsayWFadDiDkEoYjwVxGNt3P7iZf2tgTvRhgjUHe7t4cFhbja/UsAkWyofox1g351NPvuJ5+FrhFQQW2uYFyC0bC4TVDf9lDJEs77IG/FuwV7lXgAkVWfuXsM6GMMn+70aEBOyoV0/RZFCgAQKkVQ5972M=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4741AE51.7050806@xxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <47419CE6.9010603@xxxxxxxx> <4741AC22.3000407@xxxxxxxxx> <4741AE51.7050806@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
Tomasz Chmielewski wrote:
Nico Kadel-Garcia schrieb:
Tomasz Chmielewski wrote:
I'm sending it again, as the message sent on 16.11.2007 didn't get to the list.


Is there a way to guess which block devices / disk does Xen use at the moment?

I use Xen with iSCSI.
I connect to 50 iSCSI targets or more on each Xen server - and I get "virtual disks" ranging from /dev/sda to /dev/sdbl etc. - it's a lot.

Sometimes, I want to log out a given iSCSI connection (parameters changed on a target etc.) - but before I actually do it, I would like to know if that iSCSI drive is not used by Xen.

In other word - is there a way to check if Xen uses block device /dev/sda, /dev/sdu or /dev/sdbb etc.?


Well, what does "mount" say from the DomU

mount from domU would always say its "local" disk, that is, /dev/sda1 or such. And good luck if domU is Windows.
Well, yes. I'm sorry if I was unclear: if you have multiple partitions mounted for whatever reason, this gives you a set of references for what the "xm list --long" says is available to the domain.

and what does "xm list [DOMAIN] --long" say on the Dom0?

That's it, certainly I can grep through that output, thanks!
Happy to oblige.

Would be great if Xen registered some "holders" in /sys/block for a device it uses - like LVM or RAID does in /sys/block/<device>/holders/

Hmm. Interesting idea.

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