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: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Subject: Re: [Xen-users] which disks/block device does Xen use at the moment?
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Mon, 19 Nov 2007 16:40:01 +0100
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 19 Nov 2007 07:41:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4741AC22.3000407@xxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 Mandriva/1.5.0.8-1mdv2007.1 (2007.1) Thunderbird/1.5.0.8 Mnenhy/0.7.4.666
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.


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

That's it, certainly I can grep through that output, thanks!


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/


--
Tomasz Chmielewski
http://wpkg.org

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