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

5
Console output:
Welcome to the Linux Lun Migration and Lun Persistence installer
Version 1.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ 1. Lun Migration with Lun Persistency ~
~ 2. Lun Persistency Only (2.4 Linux Kernel) ~
~ 3. Lun Persistency Only (2.6 Linux Kernel) ~
~ 4. Exit ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter your Choice (1/2/3/4): 3
Installing Lun Persistence utility (hpudev-cfg)for 2.6 Kernel
Please Wait...
Preparing... ########################################### [100%]
1:hpudev-cfg ########################################### [100%]
Installation Completed Successfully
NOTE: One of the files extracted from LMPutils.tar.gz is an application note that contains
instructions. Please do not use the instructions in the application note but use
these instructions for Serviceguard for Linux instead.
Creating Rules for a Device
You must create a rule for a LUN to add persistence to that LUN. You need to create and
edit the rules file /etc/udev/rules.d/10-HP-Local.rules to create a rule for the
LUN. To create a rule for a LUN, complete the steps below:
NOTE: In SUSE 9 distributions, the rules file 10-HP-Local.rules must be located under the
/etc/udev/ directory.
1. Generate a rule for a device using the hp_gen_rules script that came with the
hpudev-cfg package.
For example, generate a rule for the device /sys/block/sda with mylink as the
name of the link and enter the following command:
# hp_gen_rules sda mylink-sda
The following output appears:
Note: Append the following rule to the /etc/udev/rules.d/10-HP-
Local.rules file
BUS="scsi", KERNEL="sd*", PROGRAM=”scsi_id”,
RESULT="360060e80042747000000274700000315",
NAME="%k",SYMLINK="hpdev/mylink-sda”