HP Serviceguard Extended Distance Cluster for Linux A.12.00.00 Deployment Guide, March 2014

in the device name prevents the MD mirror from starting. To avoid this problem, HP requires that
you make the device names persistent.
When there is a disk related failure and subsequent reboot, there is a possibility that the devices
are renamed. Linux names disks in the order they are found. The device that was /dev/sdf may
be renamed to /dev/sde if any “lower device is failed or removed. As a result, you cannot
activate the MD device with the original name.
HP requires that the device names be persistent to avoid reorientation after a failure and reboot.
For more information on creating persistent device names, see the Using udev to Simplify HP
Serviceguard for Linux Configuration white paper that is available at the following location:
http://www.hp.com/go/linux-serviceguard-docs
When creating persistent device names, ensure that the same udev rules file exists in all the nodes.
This is necessary for the symlinks to appear and point to the correct device. Use these persistent
device names wherever there is a need to specify the devices for extended cluster configuration
or during recovery process after a failure. A persistent device created based on the instructions in
the document mentioned earlier will have a device name that starts with/dev/hpdev/.
NOTE: The name of the MD device must be unique across all packages in the cluster. Also, the
names of each of their component udev devices must also be unique across all nodes in the cluster.
udev rule files are stored in the /etc/udev/rules.d directory.
Alternatively, you can also create persistent device in the multipath environment. To do so:
1. Set the user_friendly_names parameter to yes in the /etc/multipath.conf file on
all the systems in the cluster.
2. Disable all the multipath devices on the system:
#service multipathd stop
#multipath -F
3. Ensure that the system-defined user-friendly names are consistent across the nodes. Then, copy
the /etc/multipath/bindings file on all the systems in the cluster.
4. Enable the multipathd daemon on all the systems in the cluster:
#service multipathd start
3.3.3 Creating a Multiple Disk Device
To enable Software RAID in your environment, you need to first create the mirror setup. This implies
that you specify two disks to create a Multiple Device (MD). When configuring disks in RAID 1
level, use a disk or LUN from each datacenter as one mirror half. Be sure to create disk sets of the
same size as they need to store data that are of identical sizes. Differences in disk set size results
in a mirror being created of a size equal to the smaller of the two disks. Be sure to create the mirror
using the persistent device names of the component devices.
As mentioned earlier, the first step for enabling Software RAID in your environment is to create the
Multiple Disk (MD) device using two underlying component disks. This MD device is a virtual device
which ensures that any data written to it is written to both component disks. As a result, the data
is identical on both disks that make up the MD device.
This section describes how to create an MD device. This is the only step that you must complete
before you enable Software RAID for a package. The other RAID operations are needed only
during maintenance or during recovery process after a failure has occurred.
NOTE: For all the steps in the subsequent sections, all the persistent device names, and not the
actual device names, must be used for the two component disks of the MD mirror.
Do not create partitions on MD devices. Use of partitioned MD device is not supported.
3.3 Configuring the Storage Environment 23