Menu Close

Red Hat Training

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

1.3. 叢​​​​​​​集​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​測​​​​​​​管​​​​​​​理​​​​​​​員​​​​​​​(Clustered Logical Volume Manager,CLVM)

叢​​​​​​​集​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​管​​​​​​​理​​​​​​​員​​​​​​​(Clustered Logical Volume Manager,CLVM)為​​​​​​​一​​​​​​​組​​​​​​​ LVM 的​​​​​​​叢​​​​​​​集​​​​​​​延​​​​​​​伸​​​​​​​。​​​​​​​這​​​​​​​些​​​​​​​延​​​​​​​伸​​​​​​​允​​​​​​​許​​​​​​​叢​​​​​​​集​​​​​​​中​​​​​​​的​​​​​​​元​​​​​​​件​​​​​​​透​​​​​​​過​​​​​​​使​​​​​​​用​​​​​​​ LVM(比​​​​​​​方​​​​​​​說​​​​​​​在​​​​​​​ SAN 上​​​​​​​)來​​​​​​​管​​​​​​​理​​​​​​​共​​​​​​​享​​​​​​​的​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​。​​​​​​​
您​​​​​​​是​​​​​​​否​​​​​​​應​​​​​​​使​​​​​​​用​​​​​​​ CLVM 取​​​​​​​決​​​​​​​於​​​​​​​您​​​​​​​的​​​​​​​系​​​​​​​統​​​​​​​需​​​​​​​求​​​​​​​:
  • 若​​​​​​​您​​​​​​​系​​​​​​​統​​​​​​​只​​​​​​​有​​​​​​​一​​​​​​​個​​​​​​​節​​​​​​​點​​​​​​​需​​​​​​​要​​​​​​​存​​​​​​​取​​​​​​​您​​​​​​​配​​​​​​​置​​​​​​​來​​​​​​​作​​​​​​​為​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​,那​​​​​​​麼​​​​​​​您​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​ LVM 並​​​​​​​且​​​​​​​不​​​​​​​使​​​​​​​用​​​​​​​ CLVM 的​​​​​​​延​​​​​​​伸​​​​​​​,以​​​​​​​該​​​​​​​節​​​​​​​點​​​​​​​建​​​​​​​立​​​​​​​的​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​便​​​​​​​都​​​​​​​會​​​​​​​是​​​​​​​節​​​​​​​點​​​​​​​的​​​​​​​本​​​​​​​地​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​。​​​​​​​
  • 若​​​​​​​您​​​​​​​正​​​​​​​在​​​​​​​使​​​​​​​用​​​​​​​一​​​​​​​部​​​​​​​加​​​​​​​入​​​​​​​叢​​​​​​​集​​​​​​​的​​​​​​​系​​​​​​​統​​​​​​​來​​​​​​​進​​​​​​​行​​​​​​​容​​​​​​​錯​​​​​​​,並​​​​​​​且​​​​​​​存​​​​​​​取​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​的​​​​​​​單​​​​​​​獨​​​​​​​節​​​​​​​點​​​​​​​一​​​​​​​次​​​​​​​只​​​​​​​有​​​​​​​一​​​​​​​個​​​​​​​會​​​​​​​被​​​​​​​啟​​​​​​​用​​​​​​​。​​​​​​​您​​​​​​​應​​​​​​​該​​​​​​​使​​​​​​​用​​​​​​​ High Availability Logical Volume Management agents(HA-LVM)。​​​​​​​如​​​​​​​欲​​​​​​​取​​​​​​​得​​​​​​​更​​​​​​​多​​​​​​​有​​​​​​​關​​​​​​​於​​​​​​​ HA-LVM 的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​,請​​​​​​​參​​​​​​​閱​​​​​​​ Configuring and Managing a Red Hat Cluster(配​​​​​​​置​​​​​​​和​​​​​​​管​​​​​​​理​​​​​​​ Red Hat Cluster 指​​​​​​​南​​​​​​​)。​​​​​​​
  • 若​​​​​​​您​​​​​​​的​​​​​​​叢​​​​​​​集​​​​​​​有​​​​​​​超​​​​​​​過​​​​​​​一​​​​​​​個​​​​​​​節​​​​​​​點​​​​​​​需​​​​​​​要​​​​​​​存​​​​​​​取​​​​​​​您​​​​​​​的​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​並​​​​​​​在​​​​​​​啟​​​​​​​用​​​​​​​的​​​​​​​節​​​​​​​點​​​​​​​之​​​​​​​間​​​​​​​進​​​​​​​行​​​​​​​共​​​​​​​享​​​​​​​的​​​​​​​話​​​​​​​,那​​​​​​​麼​​​​​​​您​​​​​​​就​​​​​​​必​​​​​​​須​​​​​​​使​​​​​​​用​​​​​​​ CLVM。​​​​​​​CLVM 允​​​​​​​許​​​​​​​用​​​​​​​戶​​​​​​​透​​​​​​​過​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​時​​​​​​​將​​​​​​​實​​​​​​​體​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​鎖​​​​​​​定​​​​​​​以​​​​​​​便​​​​​​​配​​​​​​​置​​​​​​​共​​​​​​​享​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​上​​​​​​​的​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​,並​​​​​​​使​​​​​​​用​​​​​​​叢​​​​​​​集​​​​​​​鎖​​​​​​​定​​​​​​​服​​​​​​​務​​​​​​​來​​​​​​​管​​​​​​​理​​​​​​​共​​​​​​​享​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​。​​​​​​​
若​​​​​​​要​​​​​​​使​​​​​​​用​​​​​​​ CLVM 的​​​​​​​話​​​​​​​,Red Hat Cluster Suite 軟​​​​​​​體​​​​​​​以​​​​​​​及​​​​​​​ clvmd daemon 都​​​​​​​必​​​​​​​須​​​​​​​執​​​​​​​行​​​​​​​。​​​​​​​clvmd daemon 為​​​​​​​ LVM 的​​​​​​​關​​​​​​​鍵​​​​​​​叢​​​​​​​集​​​​​​​延​​​​​​​伸​​​​​​​。​​​​​​​clvmd daemon 會​​​​​​​在​​​​​​​各​​​​​​​個​​​​​​​叢​​​​​​​集​​​​​​​電​​​​​​​腦​​​​​​​中​​​​​​​執​​​​​​​行​​​​​​​並​​​​​​​在​​​​​​​叢​​​​​​​集​​​​​​​中​​​​​​​分​​​​​​​配​​​​​​​ LVM metadata 的​​​​​​​更​​​​​​​新​​​​​​​,並​​​​​​​提​​​​​​​供​​​​​​​給​​​​​​​各​​​​​​​個​​​​​​​叢​​​​​​​集​​​​​​​電​​​​​​​腦​​​​​​​相​​​​​​​同​​​​​​​的​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​視​​​​​​​點​​​​​​​。​​​​​​​欲​​​​​​​取​​​​​​​得​​​​​​​更​​​​​​​多​​​​​​​有​​​​​​​關​​​​​​​於​​​​​​​安​​​​​​​裝​​​​​​​和​​​​​​​管​​​​​​​理​​​​​​​ Red Hat Cluster Suite 上​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​,請​​​​​​​參​​​​​​​閱​​​​​​​配​​​​​​​置​​​​​​​與​​​​​​​管​​​​​​​理​​​​​​​ Red Hat 叢​​​​​​​集​​​​​​​。​​​​​​​
若​​​​​​​要​​​​​​​確​​​​​​​保​​​​​​​ clvmd 會​​​​​​​在​​​​​​​ boot time 時​​​​​​​啟​​​​​​​動​​​​​​​,您​​​​​​​可​​​​​​​針​​​​​​​對​​​​​​​於​​​​​​​ clvmd 服​​​​​​​務​​​​​​​執​​​​​​​行​​​​​​​一​​​​​​​項​​​​​​​ chkconfig ... on 指​​​​​​​令​​​​​​​,如​​​​​​​下​​​​​​​:
# chkconfig clvmd on
若​​​​​​​ clvmd daemon 沒​​​​​​​有​​​​​​​啟​​​​​​​動​​​​​​​的​​​​​​​話​​​​​​​,您​​​​​​​可​​​​​​​針​​​​​​​對​​​​​​​於​​​​​​​ 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 章 4, 透​​​​​​​過​​​​​​​ CLI 指​​​​​​​令​​​​​​​來​​​​​​​進​​​​​​​行​​​​​​​ LVM 管​​​​​​​理​​​​​​​ and 章 7, 利​​​​​​​用​​​​​​​ 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 節 4.3.2, “在​​​​​​​叢​​​​​​​集​​​​​​​中​​​​​​​建​​​​​​​立​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​” and 節 4.3.7, “更​​​​​​​改​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​參​​​​​​​數​​​​​​​”.

警告

當​​​​​​​您​​​​​​​要​​​​​​​在​​​​​​​共​​​​​​​享​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​上​​​​​​​以​​​​​​​ CLVM 建​​​​​​​立​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​時​​​​​​​,您​​​​​​​必​​​​​​​須​​​​​​​確​​​​​​​認​​​​​​​叢​​​​​​​集​​​​​​​中​​​​​​​所​​​​​​​有​​​​​​​節​​​​​​​點​​​​​​​皆​​​​​​​可​​​​​​​存​​​​​​​取​​​​​​​組​​​​​​​成​​​​​​​了​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​。​​​​​​​某​​​​​​​些​​​​​​​節​​​​​​​點​​​​​​​可​​​​​​​存​​​​​​​取​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​,有​​​​​​​些​​​​​​​則​​​​​​​無​​​​​​​法​​​​​​​存​​​​​​​取​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​的​​​​​​​這​​​​​​​種​​​​​​​非​​​​​​​對​​​​​​​稱​​​​​​​式​​​​​​​叢​​​​​​​集​​​​​​​配​​​​​​​置​​​​​​​不​​​​​​​受​​​​​​​到​​​​​​​支​​​​​​​援​​​​​​​。​​​​​​​
CLVM 概​​​​​​​要​​​​​​​

圖形 1.2. CLVM 概​​​​​​​要​​​​​​​

注意

若​​​​​​​要​​​​​​​使​​​​​​​用​​​​​​​用​​​​​​​於​​​​​​​ Red Hat Cluster Suite 中​​​​​​​的​​​​​​​共​​​​​​​享​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​,您​​​​​​​必​​​​​​​須​​​​​​​要​​​​​​​執​​​​​​​行​​​​​​​叢​​​​​​​集​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​管​​​​​​​理​​​​​​​員​​​​​​​ daemon(cluster logical volume manager daemon,clvmd)或​​​​​​​是​​​​​​​ High Availability Logical Volume Management(HA-LVM)。​​​​​​​若​​​​​​​基​​​​​​​於​​​​​​​作​​​​​​​業​​​​​​​因​​​​​​​素​​​​​​​您​​​​​​​無​​​​​​​法​​​​​​​使​​​​​​​用​​​​​​​ clvmd daemon 或​​​​​​​是​​​​​​​ HA-LVM,或​​​​​​​是​​​​​​​因​​​​​​​為​​​​​​​您​​​​​​​沒​​​​​​​有​​​​​​​正​​​​​​​確​​​​​​​的​​​​​​​權​​​​​​​限​​​​​​​,您​​​​​​​絕​​​​​​​不​​​​​​​可​​​​​​​在​​​​​​​共​​​​​​​享​​​​​​​的​​​​​​​磁​​​​​​​碟​​​​​​​上​​​​​​​使​​​​​​​用​​​​​​​單​​​​​​​ instance 的​​​​​​​ LVM,因​​​​​​​為​​​​​​​這​​​​​​​可​​​​​​​能​​​​​​​會​​​​​​​造​​​​​​​成​​​​​​​資​​​​​​​料​​​​​​​損​​​​​​​毀​​​​​​​。​​​​​​​若​​​​​​​您​​​​​​​有​​​​​​​任​​​​​​​何​​​​​​​疑​​​​​​​問​​​​​​​,請​​​​​​​和​​​​​​​您​​​​​​​的​​​​​​​ Red Hat 服​​​​​​​務​​​​​​​人​​​​​​​員​​​​​​​取​​​​​​​得​​​​​​​聯​​​​​​​繫​​​​​​​。​​​​​​​

注意

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 配​​​​​​​置​​​​​​​檔​​​​​​​案​​​​​​​.