HP Serviceguard Extended Distance Cluster for Linux A.01.01 Deployment Guide, Third Edition, May 2008

Configuring your Environment for Software RAID
Creating Volume Groups and Configuring VG Exclusive Activation on the MD Mirror
Chapter 3 73
With this error, you cannot create a new volume group on /dev/md0. As a
result, you must create a filter for LVM. To create a filter, add the
following line in the /etc/lvm/lvm.conf file:
filter = [ "r|/dev/cdrom|","r|/dev/hpdev/md0_mirror0|",
"r|/dev/hpdev/md0_mirror1|" ]
where /dev/hpdev/md0_mirror0 and /dev/hpdev/md0_mirror1 are the
persistent device names of the devices /dev/sde and /dev/sdf
respectively.
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. You have to reload LVM with /etc/init.d/lvm
force-reload.
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 for
Linux Seventh Edition, at
http://docs.hp.com/en/ha.html#Serviceguard for Linux