Red Hat Training

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

1.6. 叢​​​​​​​集​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​管​​​​​​​理​​​​​​​員​​​​​​​

CLVM(叢​​​​​​​集​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​管​​​​​​​理​​​​​​​員​​​​​​​,Cluster Logical Volume Manager)提​​​​​​​供​​​​​​​了​​​​​​​叢​​​​​​​集​​​​​​​版​​​​​​​的​​​​​​​ LVM2。​​​​​​​CLVM 的​​​​​​​功​​​​​​​能​​​​​​​與​​​​​​​單​​​​​​​機​​​​​​​上​​​​​​​的​​​​​​​ 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”).

注意

Red Hat 叢​​​​​​​集​​​​​​​組​​​​​​​所​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​共​​​​​​​享​​​​​​​儲​​​​​​​存​​​​​​​空​​​​​​​間​​​​​​​需​​​​​​​要​​​​​​​執​​​​​​​行​​​​​​​ CLVM 系​​​​​​​統​​​​​​​程​​​​​​​式​​​​​​​(clvmd)或​​​​​​​高​​​​​​​可​​​​​​​用​​​​​​​性​​​​​​​ LVM 代​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​(HA-LVM)。​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​因​​​​​​​為​​​​​​​操​​​​​​​作​​​​​​​上​​​​​​​的​​​​​​​理​​​​​​​由​​​​​​​或​​​​​​​沒​​​​​​​有​​​​​​​正​​​​​​​確​​​​​​​的​​​​​​​使​​​​​​​用​​​​​​​權​​​​​​​利​​​​​​​,無​​​​​​​法​​​​​​​使​​​​​​​用​​​​​​​這​​​​​​​兩​​​​​​​個​​​​​​​程​​​​​​​式​​​​​​​,您​​​​​​​絕​​​​​​​不​​​​​​​能​​​​​​​對​​​​​​​共​​​​​​​享​​​​​​​磁​​​​​​​碟​​​​​​​使​​​​​​​用​​​​​​​一​​​​​​​般​​​​​​​的​​​​​​​ 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