[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] which disks/block device does Xen use at the moment?


  • To: Tomasz Chmielewski <mangoo@xxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.