2.4. 群集逻辑卷管理器(CLVM)


The Clustered Logical Volume Manager (CLVM) is a set of clustering extensions to LVM. These extensions allow a cluster of computers to manage shared storage (for example, on a SAN) using LVM. CLVM is part of the Resilient Storage Add-On.
您是否应该使用 CLVM 取决于您的系统要求:
  • 如果您的系统中只有一个节点需要访问您正在将其配置为逻辑卷的存储,那么您可以使用 LVM 而不是 LVM 扩展,且在该节点中生成的逻辑卷对该节点来说都是本地的。
  • If you are using a clustered system for failover where only a single node that accesses the storage is active at any one time, you should use High Availability Logical Volume Management agents (HA-LVM).
  • 如果您的群集中有一个以上的节点需要访问您的存储,那么该存储会在所有活跃的节点间共享,则您必须使用 CLVM。CLVM 允许用户通过在配置逻辑卷时锁定对物理存储的访问来在共享存储中配置逻辑卷,并使用群集的锁定服务管理共享存储。
In order to use CLVM, the High Availability Add-On and Resilient Storage Add-On software, including the clvmd daemon, must be running. The clvmd daemon is the key clustering extension to LVM. The clvmd daemon runs in each cluster computer and distributes LVM metadata updates in a cluster, presenting each cluster computer with the same view of the logical volumes. For information on installing and administering the High Availability Add-On see Cluster Administration.
To ensure that clvmd is started at boot time, you can execute a chkconfig ... on command on the clvmd service, as follows:
# chkconfig clvmd on
如果还没有启动 clvmd 守护进程,您可以对 clvmd 服务执行 service ... start 命令,如下:
# service clvmd start
Creating LVM logical volumes in a cluster environment is identical to creating LVM logical volumes on a single node. There is no difference in the LVM commands themselves, or in the LVM graphical user interface, as described in 第 5 章 用 CLI 命令管理 LVM and 第 8 章 用 LVM GUI 进行 LVM 管理. In order to enable the LVM volumes you are creating in a cluster, the cluster infrastructure must be running and the cluster must be quorate.
By default, logical volumes created with CLVM on shared storage are visible to all systems that have access to the shared storage. It is possible to create volume groups in which all of the storage devices are visible to only one node in the cluster. It is also possible to change the status of a volume group from a local volume group to a clustered volume group. For information, see 第 5.3.3 节 “在群集中创建卷组” and 第 5.3.8 节 “修改卷组参数”.

警告

When you create volume groups with CLVM on shared storage, you must ensure that all nodes in the cluster have access to the physical volumes that constitute the volume group. Asymmetric cluster configurations in which some nodes have access to the storage and others do not are not supported.
图 2.2 “CLVM 总览” shows a CLVM overview in a cluster.
CLVM 总览

图 2.2. CLVM 总览

注意

CLVM requires changes to the lvm.conf file for cluster-wide locking. Information on configuring the lvm.conf file to support clustered locking is provided within the lvm.conf file itself. For information about the lvm.conf file, see 附录 B, LVM 配置文件.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部