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: [Xen-devel] [PATCH 0/3] domUloader

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0/3] domUloader
From: "Philip R. Auld" <pauld@xxxxxxxxxxx>
Date: Thu, 26 Jan 2006 09:20:40 -0500
Cc: "Edwards, Nigel \(Nigel Edwards\)" <nigel.edwards@xxxxxx>, Jeremy Katz <katzj@xxxxxxxxxx>, Xen development list <xen-devel@xxxxxxxxxxxxxxxxxxx>, Kurt Garloff <garloff@xxxxxxx>
Delivery-date: Thu, 26 Jan 2006 14:30:30 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1138284098.4309.44.camel@xxxxxxxxxxxxxxxxxxxxx>
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: <DF5E364A470421429AE6DC96979A4F6F56D9DC@xxxxxxxxxxxxxxxxxxxxxxxxx> <20060126133715.GB6369@xxxxxxxxxxxxxxxxxx> <1138284098.4309.44.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
Rumor has it that on Thu, Jan 26, 2006 at 02:01:38PM +0000 Ian Campbell said:
> On Thu, 2006-01-26 at 08:37 -0500, Philip R. Auld wrote:
> > It should be possible to use udev to assign a specific unique name
> > to each disk based
> 
> It already does this to some degree. From a handy Debian box:
> 
>         $ tree /dev/disk/
>         /dev/disk/
>         |-- by-id
>         |   |-- scsi-0ATA_ST3200826AS_Linux_ATA-SCSI_simulator -> ../../sda
>         |   |-- scsi-0ATA_ST3200826AS_Linux_ATA-SCSI_simulator-part1 -> 
> ../../sda1
>         |   |-- scsi-0ATA_ST3200826AS_Linux_ATA-SCSI_simulator-part2 -> 
> ../../sda2
>         |   `-- scsi-0ATA_ST3200826AS_Linux_ATA-SCSI_simulator-part3 -> 
> ../../sda3
>         |-- by-label
>         |   `-- boot -> ../../sda1
>         |-- by-path
>         |   |-- pci-0000:00:1f.1-ide-0:0 -> ../../hda
>         |   |-- pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sda
>         |   |-- pci-0000:00:1f.2-scsi-0:0:0:0-part1 -> ../../sda1
>         |   |-- pci-0000:00:1f.2-scsi-0:0:0:0-part2 -> ../../sda2
>         |   `-- pci-0000:00:1f.2-scsi-0:0:0:0-part3 -> ../../sda3
>         `-- by-uuid
>             `-- 8312472d-e311-4e0d-837c-6c4eb646a5e3 -> ../../sda1
> 
> The logic is in /etc/udev/persistent.rules. It might need updating with
> some iSCSI knowledge I suppose.

Right, but this is just showing which UID it mapped to sda. My point
was you can configure it to give a specific name to a specific UID: 

scsi-0ATA_ST3200826AS_Linux_ATA-SCSI_simulator -> ../../my_domU_disk

Then you use my_domU_disk in the xen domain configuration.
You can do this manually as well by looking up which sdX name the
deivce got and making a link it or device node with the same
major/minor. But I think udev can be configured to to it for you.
I don't know the details of how to make it do that, but that's part
of what it's for.

Cheers,

Phil

> 
> Ian.
> 

-- 
Philip R. Auld, Ph.D.                          Egenera, Inc.    
Software Architect                            165 Forest St.
(508) 858-2628                            Marlboro, MA 01752

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