Veritas-bu

[Veritas-bu] Udev rules for Linux distros prior to 5.3...

2009-08-04 14:36:41
Subject: [Veritas-bu] Udev rules for Linux distros prior to 5.3...
From: "Jonathan Dyck" <jdyck AT bank-banque-canada DOT ca>
To: <VERITAS-BU AT mailman.eng.auburn DOT edu>
Date: Tue, 4 Aug 2009 14:33:26 -0400
Linux gurus,

I'm flailing away here trying to get some udev rules in place on RedHat
release 4, Nahant Update 5. I'm basically trying to accomplish this:

http://kbase.redhat.com/faq/docs/DOC-4202

But with an earlier version of RedHat.  Anyone have experience with udev
rules out there?  I've posted prior to this with very few bites, but
there doesn't seem to be a lot of admins out there creating these (I'm
guessing people just recreate their device database after every
reboot?).

Here are the rules I've created:

[root@<> ~]# more /etc/udev/rules.d/10-local.rules
KERNEL="nst[0-9]*", SYSFS{dev}="9:128", NAME="nst100"
KERNEL="nst[0-9]*", SYSFS{dev}="9:224", NAME="nst100a"
KERNEL="nst[0-9]*", SYSFS{dev}="9:160", NAME="nst100l"
KERNEL="nst[0-9]*", SYSFS{dev}="9:192", NAME="nst100m"

KERNEL="st[0-9]*", SYSFS{dev}="9:0", NAME="st100"
KERNEL="st[0-9]*", SYSFS{dev}="9:96", NAME="st100a"
KERNEL="st[0-9]*", SYSFS{dev}="9:32", NAME="st100l"
KERNEL="st[0-9]*", SYSFS{dev}="9:64", NAME="st100m"

And the udevtest's I run seem to work (for example):

[root@<> ~]# udevtest /class/scsi_tape/nst0
version 039
looking at '/class/scsi_tape/nst0'
configured rule in '/etc/udev/rules.d/10-local.rules' at line 1 applied,
'nst0' becomes 'nst100'
creating device node '/dev/nst100', major = '9', minor = '128', mode =
'020660', uid = '0', gid = '6'

And my /etc/rc.local file to make it automatic after each reboot has the
lines right at the end:

/sbin/start_udev
/dev/MAKEDEV sg

From what I can tell, my nst and st files get created ok (do I even need
st devices with Netbackup 6.5 MP3.1?).  Running the following fails
however, without finding the /dev/nst100 device path:
/usr/openv/volmgr/bin/scan

Any thoughts?

Thanks,
Jon
====================================================================================

La version française suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential information, and the Bank 
of
Canada does not waive any related rights. Any distribution, use, or copying of 
this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately 
from
your system and notify the sender promptly by email that you have done so. 

------------------------------------------------------------------------------------

Le présent courriel peut contenir de l'information privilégiée ou 
confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite. Si vous 
recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans 
délai à
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de 
votre
ordinateur toute copie du courriel reçu.
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<Prev in Thread] Current Thread [Next in Thread>