HP Serviceguard Extended Distance Cluster for Linux A.11.20.10 Deployment Guide, December 2012
Found duplicate PV 9w3TIxKZ6lFRqWUmQm9tlV5nsdUkTi4i: using/dev/sde not
/dev/sdf
where, /dev/sde and /dev/sdf are the two physical disks that form the mirror device.
The workaround for this problem is to create a filter for LVM.
To create the filter add the following line in the /etc/lvm/lvm.conf file:
filter = [ "a|/dev/./by-id/.|", "a|/dev/md0|",
"r|/dev/hpdev/md0_mirror0|" , "r|/dev/hpdev/md0_mirror1|" ]
where, /dev/md0 is the MD device that is specified in the package configuration file.
NOTE: For each MD device that you create in the package configuration file, you have to edit
the filter to add the MD name and to reject the persistent device names for it's mirror half.
For example, if /dev/md0 and /dev/md1 are the two MD devices that are specified in the
package configuration file, edit the filter in the /etc/lvm/lvm.conf file:
filter = [ "a|/dev/./by-id/.|", "a|/dev/md0|", "a|/dev/md1|",
"r|/dev/hpdev/md0_mirror0|" , "r|/dev/hpdev/md0_mirror1|" ,
"r|/dev/hpdev/md1_mirror0|" , "r|/dev/hpdev/md1_mirror1|" ]
where /dev/hpdev/md1_mirror0 and /dev/hpdev/md1_mirror1 are the persistent device
names for the physical disks that form the md device /dev/md1.
NOTE: When adding the filter, ensure that you use the persistent names of all the devices used
in the mirrors.
This prevents these mirror devices from being scanned or used for logical volumes.
Once you add the filter to the /etc/lvm/lvm.conf file, create the logical volume infrastructure
on the MD mirror device as you would on a single disk. For more information on creating volume
groups and logical volumes, see the latest edition of the Managing HP Serviceguard A.11.20.10
for Linux at http://www.hp.com/go/linux-serviceguard-docs.
NOTE: If you have added more than one filter in the /etc/lvm/lvm.conf file, the following
warning message will be displayed:
WARNING! Ignoring duplicate config node: filter (seeking filter)
The workaround is to edit the/etc/lvm/lvm.conf file to have only one filter as shown in the
example.
For example, let us assume/etc/lvm/lvm.conf file has two filters:
filter = [ "a|/dev/./by-id/.|", "a|/dev/md0|", "a|/dev/md1|",
"r|/dev/hpdev/md0_mirror0|" , "r|/dev/hpdev/md0_mirror1|" ,
"r|/dev/hpdev/md1_mirror0|" , "r|/dev/hpdev/md1_mirror1|" ] filter = [
"r|/dev/cdrom|" ]
Edit the filter in the/etc/lvm/lvm.conf file:
filter = [ "a|/dev/./by-id/.|", "a|/dev/md0|", "a|/dev/md1|",
"r|/dev/hpdev/md0_mirror0|" , "r|/dev/hpdev/md0_mirror1|" ,
"r|/dev/hpdev/md1_mirror0|" , "r|/dev/hpdev/md1_mirror1|" ,
"r|/dev/cdrom|" ]
Note: Edit /etc/lvm/lvm.conf file for every node that you add to the cluster.
To ensure the exclusive activation of a volume group on a node, you must create /etc/lvm/
lvm_<node_name>.conf file and add the following line:
activation { volume_list=["@[<Fully Qualified Domain Name>]"] }
3.3 Configuring the Storage Environment 25