
7
If you want the volume group to only be activated exclusively on one node, use
the following example; in this case, cLVM will protect all logical volumes
within the VG from being activated on multiple nodes, as an additional measure
of protection for non-clustered applications:
primitive vg1 ocf:heartbeat:LVM \
params volgrpname="<volume group name>" exclusive="yes"
colocation colo-vg1 inf: vg1 clvm-clone
order order-vg1 inf: clvm-clone vg1
8
The logical volumes within the VG are now available as file system mounts or
raw usage. Ensure that services using them must have proper dependencies to
collocate them with and order them after the VG has been activated.
After finishing these configuration steps, the LVM2 configuration can be done just like
on any standalone workstation.
13.2 Configuring Eligible LVM2
Devices Explicitly
When several devices seemingly share the same physical volume signature (as can be
the case for multipath devices or drbd), it is recommended to explicitly configure the
devices which LVM2 scans for PVs.
For example, if the command
vgcreate
uses the physical device instead of using the
mirrored block device, DRBD will be confused which may result in a split brain condi-
tion for DRBD.
To deactivate a single device for LVM2, do the following:
1
Edit the file
/etc/lvm/lvm.conf
and search for the line starting with
filter
.
2
The patterns there are handled as regular expressions. A leading “a” means to
accept a device pattern to the scan, a leading “r” rejects the devices that follow
the device pattern.
Cluster LVM
119
Содержание LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Страница 10: ......
Страница 11: ...Part I Installation and Setup...
Страница 12: ......
Страница 28: ......
Страница 38: ......
Страница 39: ...Part II Configuration and Administration...
Страница 40: ......
Страница 68: ......
Страница 108: ......
Страница 114: ......
Страница 115: ...Part III Storage and Data Replication...
Страница 116: ......
Страница 126: ......
Страница 140: ......
Страница 141: ...Part IV Troubleshooting and Reference...
Страница 142: ......
Страница 148: ......
Страница 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Страница 202: ......
Страница 210: ......
Страница 231: ...OCF_RESKEY_arp_mac ARP MAC MAC address to send the ARP packets to For advanced users only HA OCF Agents 221...
Страница 246: ...OCF_RESKEY_nfs_ip IP address The floating IP address used to access the the nfs service 236 High Availability Guide...
Страница 285: ...Part V Appendix...
Страница 286: ......