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-devel

RE: Disk naming (Was Re: [Xen-devel] [PATCH] Guest boot loadersupport [1

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: RE: Disk naming (Was Re: [Xen-devel] [PATCH] Guest boot loadersupport [1/2])
From: Jeremy Katz <katzj@xxxxxxxxxx>
Date: Thu, 14 Apr 2005 16:52:34 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Apr 2005 20:52:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3B98@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3B98@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2005-04-14 at 21:43 +0100, Ian Pratt wrote:
> > On Thu, 2005-04-14 at 14:22 -0400, Philip R Auld wrote:
> > > As a slight but related digression, has any thought been given to 
> > > using something other than /dev/[hs]d* names for specifying block 
> > > devices? The name /dev/sdb only has meaning for the current 
> > state of 
> > > the running dom0 OS. It may not mean the same device on a different 
> > > dom0. This can lead to problems in say migration.
> > > In fact, it may not be the same when the domain is restored locally.
> > 
> > To be even slightly more radical, I don't think that for the 
> > guests, the vbds should be being exposed as SCSI or IDE since 
> > they're not.  By being presented as such, there's a set of 
> > assumptions about ioctls and behaviors which aren't the case 
> > for disks on blkfront.  Even with all of the pain using your 
> > own major/minor for a disk device is, I think it probably is 
> > the right thing to do.  And I've added the code to 
> > parted/lvm2/.../etc enough to be able to do it in my sleep 
> > this point if this route is taken :)
> 
> I don't think there's a huge problem with exposing vbd's as sdX/hdX
> within a guest. We used to have our own xdX device, but it just broke
> too much stuff, hence we hijacked had/sda. I haven't seen too many
> problems with ioctls.

Things start getting odd if you start mixing anything that natively
shows up as scsi with a vbd scsi, though, don't they?  And upstream has
been fairly resistant to other !scsi or !ide devices sitting on those
devices.  I've had this argument with Jeff Garzik before about a few of
the esoteric SATA drivers that don't even pretend to be scsi.  And
things like partitioning tools and hardware probing will start showing
more problems with ioctls not working as that starts to show up.

> I think the key issue is that in domain configs, you want to specify the
> source of the vbd in some high-level name and have the control tools do
> the necessary to map it to a local device and then export it. This
> already happens with file: disk paths. We just need something similar
> for iscsi.

Yeah, I can see this being useful.

Jeremy


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