linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Some basic questions on udev usage
@ 2007-01-06 20:25 Allexio Ju
  2007-01-06 23:21 ` Bryan Kadzban
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Allexio Ju @ 2007-01-06 20:25 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I've got some basic question.
I've been reading udev related documents and playing with latest udev
source package for a while trying to undestand persistent device
binding.
Questions are,
1. Does all of storage vendors need to have their own .rules file
under /etc/udev/rules.d? Or 60-storage-persistent.rules file should be
good enough for them?
2. If I have following filter in my own 20-private.rules file, will it
replace default device file given by kernel with my-disk, or both of
them will be there in /dev directory?
    KERNEL=sda, NAME="my-disk"
3. I'm trying to find right way to implement persistent device
binding. Let's say, I have 3 disks connected to my SCSI controller.
Consider they are: a segate in ID 0, a quantum in ID 1, and a maxtor
in ID2.
If I use following filter in my 20-private.rules file, I believe it
should work and keep persistent device name across reboot (and
inter-changes SCSI IDs among them before each boot).
    KERNEL="sd*[0-9]", BUS="pci", SYSFS{driver}="qla1280",
PROGRAM="/sbin/scsi_id –p 0x83 –g –s /block/%k",
NAME="qlgc-disk-%c-part-%n"
Is this right approach?
I just want to make sure this is right approach and would like to know
if there is better way.

Thank you,

Allexio

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2007-01-07 21:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-06 20:25 Some basic questions on udev usage Allexio Ju
2007-01-06 23:21 ` Bryan Kadzban
2007-01-07 13:39 ` Bryan Kadzban
2007-01-07 15:18 ` Allexio Ju
2007-01-07 15:53 ` Andrey Borzenkov
2007-01-07 16:19 ` Alexander E. Patrakov
2007-01-07 21:56 ` Bryan Kadzban

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).