Using udev to simplify HP Serviceguard for Linux configuration, March 2014

Technical white paper | Using udev to simplify HP Serviceguard for Linux configuration
Sign up for updates
hp.com/go/getupdated
Share with colleagues
Rate this document
© Copyright
20122013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only
warranties for HP products and services are set forth in the express warranty statements accompanying such products and servi
ces. Nothing herein should
be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions co
ntained herein.
4AA4
-4880ENW, May 2013, Rev. 1
For Red Hat 6, Novell SLES 11 SP1 and Novell SLES 11 SP2:
# udevadm trigger
In some cases, it may also be necessary to reboot the system.
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:
Red Hat 5:
SUBSYSTEM==”block”, KERNEL==”sd*”, PROGRAM=”/sbin/scsi_id –g
-u –s %p”, RESULT==”360060e80042747000000274700000315”,
SYMLINK=”hpdev/mylink-sda%n myanotherlink-sda%n”
Red Hat 6:
SUBSYSTEM==”block”, KERNEL==”sd*”, PROGRAM=”/lib/udev/scsi_id
--page=0x83 --whitelisted --replace-whitespace
--device=/dev/%k”,
RESULT==”360060e80042747000000274700000315”,
SYMLINK=”hpdev/mylink-sda myanotherlink-sda”
Novell SLES 11 SP1 or Novell SLES 11 SP2:
SUBSYSTEM==”block”, KERNEL==”sd*”, PROGRAM=”/lib/udev/scsi_id
--page=0x83 --whitelisted --replace-whitespace
--device=/dev/%k”,
RESULT==”360060e80042747000000274700000315”,
SYMLINK=”hpdev/mylink-sda%n myanotherlink-sda%n”
In this case, myanotherlink-sda would be in the /dev directory.
Conclusion
The Linux functionality udev provides a way to configure persistent names for the disks. This white paper describes the
steps to write udev rules and create persistent links on Serviceguard A.11.20.xx supported Linux platforms.
Learn more at
kernel.org