From: Kip Macy <kip.macy@gmail.com>
To: Philip R Auld <pauld@egenera.com>
Cc: Mike Wray <mike.wray@hpl.hp.com>,
Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
xen-devel@lists.xensource.com,
Mark Williamson <mark.williamson@cl.cam.ac.uk>
Subject: Re: [PATCH] Guest boot loader support [1/2]
Date: Thu, 14 Apr 2005 13:09:01 -0700 [thread overview]
Message-ID: <b1fa291705041413095884b1ea@mail.gmail.com> (raw)
In-Reply-To: <20050414194316.GG1350@vienna.egenera.com>
> > You could work round this currently using the block config scripts. I.e.
> > similar to the file: syntax now, you could easily hack up nbd:, iscsi:, etc.
> > Then network block devices can be connected up at create / migrate / restore
> > time, without relying on a particular device node.
>
> Thanks. I'm not really looking for a work around though :) I think
> this is an issue that we should look at in more depth.
>
I don't think this is necessarily a "workaround". On filers (and
presumably everyone else's boxes) iSCSI and FCP LUNs have full path
names. The device number is purely a function of the local machine.
Adding some logic to xend so that it thinks in terms of LUNs instead
of device nodes would be highly useful to some of us.
> My concern is for SAN attached devices primarily. These will
> show up as scsi devices with /dev/sdXX names (barring custom
> udev configs).
>
> I suppose though that if xen doesn't care about the actual names. Then
> making a link in /dev/ could work. Maybe this is not really an issue after
> all. e.g. /dev/my_domU_1_disk -> /dev/sdb. Then as long as something
> on the other end can tell where the disk showed up it can make the
> appropriate link -- /dev/my_domU_1_disk -> /dev/sdq.
I have a script that takes as an argument the number of LUNs, the size
of the LUNs, and the name of the VM. These LUNs are all mapped in a
probe and creation dependent order. I have a script that iterates
through all the scsi generic devices (passthrough), sends them an
inquiry - if they're LUNs it sends the device a vendor specific mode
page to get the full pathname. The pathname contains the VM the LUN
belongs to allowing the script to create a device node corresponding
to the sd<n> device in /dev/vm/<vmname>. I've added the following
snippet for mapping the LUNs in at VM creation time:
globstr = "/dev/vm/%s/*"%name
disknamelist = glob.glob(globstr)
count = 1
for diskname in disknamelist:
disk.append('phy:%s,loop%s,w'%(diskname,count))
count += 1
I'm not entirely thrilled with SAN management in this model. If I
delete LUNs on the server all the mappings get shifted down due to the
1-dimensional nature of the device node namespace.
>
> What is a physical device number in this context? The name it
> ends up with is often detection order dependent. /dev/sdb has little
> relation to physical device numbers. Also, with the better support
> for hotplug in 2.6 devices can come and go.
Yep. There are some open issues here. major / minor numbers that are a
function of probe order are clumsy at best.
-Kip
next prev parent reply other threads:[~2005-04-14 20:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 17:54 [PATCH] Guest boot loader support [1/2] Ian Pratt
2005-04-14 18:22 ` Philip R Auld
2005-04-14 19:11 ` Mark Williamson
2005-04-14 19:43 ` Philip R Auld
2005-04-14 19:49 ` Mark Williamson
2005-04-14 20:09 ` Kip Macy [this message]
2005-04-14 20:33 ` Disk naming (Was Re: [PATCH] Guest boot loader support [1/2]) Jeremy Katz
2005-04-14 18:49 ` [PATCH] Guest boot loader support [1/2] Jeremy Katz
-- strict thread matches above, loose matches on Subject: below --
2005-04-14 19:45 Ian Pratt
2005-04-14 21:29 ` Gerd Knorr
2005-04-14 19:21 Ian Pratt
2005-04-14 19:37 ` Rik van Riel
2005-04-14 20:56 ` Jeremy Katz
2005-04-14 3:12 Jeremy Katz
2005-04-14 12:20 ` Mike Wray
2005-04-14 13:04 ` Jeremy Katz
2005-04-14 17:12 ` Jeremy Katz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1fa291705041413095884b1ea@mail.gmail.com \
--to=kip.macy@gmail.com \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=mark.williamson@cl.cam.ac.uk \
--cc=mike.wray@hpl.hp.com \
--cc=pauld@egenera.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.