* mapping names to sdx devices
@ 2006-06-13 14:34 uzoma nwosu
2006-06-14 8:42 ` Kay Sievers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: uzoma nwosu @ 2006-06-13 14:34 UTC (permalink / raw)
To: linux-hotplug
Is it possible to map a uuid to an existing device such as sdb or are
those names reserved? I don't have any problems when mapping devices
with unique names.
Regards,
uzoma
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: mapping names to sdx devices
2006-06-13 14:34 mapping names to sdx devices uzoma nwosu
@ 2006-06-14 8:42 ` Kay Sievers
2006-06-14 19:10 ` uzoma nwosu
2006-06-15 8:53 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2006-06-14 8:42 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2006-06-13 at 10:34 -0400, uzoma nwosu wrote:
> Is it possible to map a uuid to an existing device such as sdb or are
> those names reserved? I don't have any problems when mapping devices
> with unique names.
Care to explain your question or problem, I don't really understand what
you are looking for.
Kay
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mapping names to sdx devices
2006-06-13 14:34 mapping names to sdx devices uzoma nwosu
2006-06-14 8:42 ` Kay Sievers
@ 2006-06-14 19:10 ` uzoma nwosu
2006-06-15 8:53 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: uzoma nwosu @ 2006-06-14 19:10 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
>On Tue, 2006-06-13 at 10:34 -0400, uzoma nwosu wrote:
>
>
>>Is it possible to map a uuid to an existing device such as sdb or are
>>those names reserved? I don't have any problems when mapping devices
>>with unique names.
>>
>>
>
>Care to explain your question or problem, I don't really understand what
>you are looking for.
>
>Kay
>
>
>
Sure. What happens is I can not get udev to map an iscsi target to
'/dev/sdb'. However, when I write a rule for it to name the device
'/dev/drive1', it works. Are the names for scsi devices reserved so
that I can't use them?
thanks,
uzoma
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mapping names to sdx devices
2006-06-13 14:34 mapping names to sdx devices uzoma nwosu
2006-06-14 8:42 ` Kay Sievers
2006-06-14 19:10 ` uzoma nwosu
@ 2006-06-15 8:53 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2006-06-15 8:53 UTC (permalink / raw)
To: linux-hotplug
On Wed, 2006-06-14 at 15:10 -0400, uzoma nwosu wrote:
> Sure. What happens is I can not get udev to map an iscsi target to
> '/dev/sdb'. However, when I write a rule for it to name the device
> '/dev/drive1', it works. Are the names for scsi devices reserved so
> that I can't use them?
Did you look at the persistent device naming which comes with udev?
Almost everybody ships it these days:
http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=blob;f=etc/udev/60-persistent-storage.rules
It looks like this for a single device:
$ tree /dev/disk
/dev/disk
|-- by-id
| `-- scsi-SATA_HTS726060M9AT00_MRH453M4HWHG7B-part6 -> ../../sda6
|-- by-label
| `-- devel -> ../../sda6
|-- by-path
| `-- pci-0000:00:1f.2-scsi-0:0:0:0-part6 -> ../../sda6
`-- by-uuid
`-- 3e999973-00c9-4917-9442-b7633bd95b9e -> ../../sda6
You should be able to identify the devices persistently by using the
symlinks here instead of the kernel name, without the need for any custom
rule.
Kay
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-06-15 8:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-13 14:34 mapping names to sdx devices uzoma nwosu
2006-06-14 8:42 ` Kay Sievers
2006-06-14 19:10 ` uzoma nwosu
2006-06-15 8:53 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).