
13
Cluster LVM
When managing shared storage on a cluster, every node must be informed about changes
that are done to the storage subsystem. The Linux Volume Manager 2 (LVM2), which
is widely used to manage local storage, has been extended to support transparent man-
agement of volume groups across the whole cluster. Clustered volume groups can be
managed using the same commands as local storage.
To implement cLVM, a shared storage setup — such as provided by a Fibre Channel,
FCoE, SCSI or iSCSI SAN or DRBD — must be available.
Internally, cLVM uses the Distributed Lock Manager (DLM) component of the cluster
stack to coordinate access to the LVM2 metadata. As DLM in turn integrates with the
other components of the stack such as fencing, the integrity of the shared storage is
protected at all times.
cLVM does not coordinate access to the shared data itself; to do so, you must configure
OCFS2 or other cluster-aware applications on top of the cLVM-managed storage.
13.1 Configuration of cLVM
To setup a cluster-aware volume group, several tasks must be completed successfully:
1
Change the locking type of LVM2 to be cluster-aware.
Edit the file
/etc/lvm/lvm.conf
and locate the line:
locking_type = 1
Cluster LVM
117
Summary of Contents for LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Page 10: ......
Page 11: ...Part I Installation and Setup...
Page 12: ......
Page 28: ......
Page 38: ......
Page 39: ...Part II Configuration and Administration...
Page 40: ......
Page 68: ......
Page 108: ......
Page 114: ......
Page 115: ...Part III Storage and Data Replication...
Page 116: ......
Page 126: ......
Page 140: ......
Page 141: ...Part IV Troubleshooting and Reference...
Page 142: ......
Page 148: ......
Page 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Page 202: ......
Page 210: ......
Page 285: ...Part V Appendix...
Page 286: ......