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