Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

1.6. Менеджер логических томов кластера

CLVM (Cluster Logical Volume Manager) представляет собой расширенную версию LVM2 (в пределах кластера) и реализует те же возможности что и LVM2 на индивидуальных узлах, но дополнительно обеспечивает доступ к томам для всех узлов в составе кластера Red Hat. Созданные с помощью CLVM логические тома будут доступны всем узлам кластера.
The key component in CLVM is clvmd. clvmd is a daemon that provides clustering extensions to the standard LVM2 tool set and allows LVM2 commands to manage shared storage. clvmd runs in each cluster node and distributes LVM metadata updates in a cluster, thereby presenting each cluster node with the same view of the logical volumes (refer to Рисунок 1.14, «CLVM Overview»). Logical volumes created with CLVM on shared storage are visible to all nodes that have access to the shared storage. CLVM allows a user to configure logical volumes on shared storage by locking access to physical storage while a logical volume is being configured. CLVM uses the lock-management service provided by the cluster infrastructure (refer to Раздел 1.3, «Cluster Infrastructure»).

Примечание

Для обеспечения работы разделяемого хранилища необходимо, чтобы выполнялся демон clvmd или агенты управления высокодоступными логическими томами HA-LVM (High Availability Logical Volume Management). Если по какой-то причине вы не можете их запустить, например, у вас нет достаточных полномочий, то не используйте LVM на диске с совместным доступом, так как это может повредить данные. Если у вас есть вопросы, обратитесь за помощью к торговому представителю Red Hat.

Примечание

Для разрешения блокирования в пределах кластера при работе с CLVM необходимо немного изменить /etc/lvm/lvm.conf.
CLVM Overview

Рисунок 1.14. CLVM Overview

You can configure CLVM using the same commands as LVM2, using the LVM graphical user interface (refer to Рисунок 1.15, «LVM Graphical User Interface»), or using the storage configuration function of the Conga cluster configuration graphical user interface (refer to Рисунок 1.16, «Conga LVM Graphical User Interface») . Рисунок 1.17, «Creating Logical Volumes» shows the basic concept of creating logical volumes from Linux partitions and shows the commands used to create logical volumes.
LVM Graphical User Interface

Рисунок 1.15. LVM Graphical User Interface

Conga LVM Graphical User Interface

Рисунок 1.16. Conga LVM Graphical User Interface

Creating Logical Volumes

Рисунок 1.17. Creating Logical Volumes