Using udev to Simplify HP Serviceguard for Linux Configuration, October 2006

6
2. Edit the /etc/udev/rules.d/10-HP-Local.rules file by appending the output
of step 1 at the end of the file. Each rule should be entered as a single line. To have
the partitions represented, add “%n” to the SYMLINK string:
SYMLINK="hpdev/mylink-sda%n”
NOTE: If you add the line by redirecting the output of hp_gen_rule to
10-HP-Local.rules you must edit that file and delete the line that has the
“Note:” and all
blank lines that were added. The blank lines have non-printing
characters that cannot be interpreted by udev. Blank lines and comment lines
beginning with ‘#’ can then be added.
Creating Links for Persistence
You can create a single link or multiple links for persistence.
To create a single persistence link, enter the following command:
For RedHat 4 and SLES9:
# udevstart
For SLES10:
# udevtrigger
In some cases it may also be necessary to reboot the system running SLES10.
The links are created under the directory mentioned in the udev_root path variable that is
configured in the /etc/udev/udev.conf file. For example the link shown in step 1
(Creating rules for a device) is created as $udev_root/hpdev/mylink-sda. The
default value for $udev_root is /dev.
To create multiple links for any device, add space separated names on the corresponding
rule in the /etc/udev/rules.d/10-HP-Local.rules file. For example:
BUS="scsi", KERNEL="sd*",
RESULT="360060e80042747000000274700000315",
NAME="%k",SYMLINK="hpdev/mylink-sda%n myanotherlink-sda%n"
In this case,
myanotherlink-sda would be in the /dev directory.
Additional information about udev can be found at
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html