Menu Close

Red Hat Training

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

章 3. LVM 管​​​​​​​理​​​​​​​總​​​​​​​覽​​​​​​​

This chapter provides an overview of the administrative procedures you use to configure LVM logical volumes. This chapter is intended to provide a general understanding of the steps involved. For specific step-by-step examples of common LVM configuration procedures, see 章 5, LVM 配​​​​​​​置​​​​​​​範​​​​​​​例​​​​​​​.

3.1. 在​​​​​​​叢​​​​​​​集​​​​​​​中​​​​​​​建​​​​​​​立​​​​​​​ LVM 卷​​​​​​​冊​​​​​​​

To create logical volumes in a cluster environment, you use the Clustered Logical Volume Manager (CLVM), which 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. In order to use CLVM, the Red Hat Cluster Suite software, including the clvmd daemon, must be started at boot time, as described in 節 1.3, “叢​​​​​​​集​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​測​​​​​​​管​​​​​​​理​​​​​​​員​​​​​​​(Clustered Logical Volume Manager,CLVM)”.
在​​​​​​​叢​​​​​​​集​​​​​​​環​​​​​​​境​​​​​​​中​​​​​​​建​​​​​​​立​​​​​​​ LVM 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​和​​​​​​​在​​​​​​​單​​​​​​​節​​​​​​​點​​​​​​​上​​​​​​​建​​​​​​​立​​​​​​​ LVM 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​相​​​​​​​似​​​​​​​。​​​​​​​LVM 指​​​​​​​令​​​​​​​本​​​​​​​身​​​​​​​以​​​​​​​及​​​​​​​ LVM GUI 介​​​​​​​面​​​​​​​並​​​​​​​沒​​​​​​​有​​​​​​​不​​​​​​​同​​​​​​​。​​​​​​​若​​​​​​​要​​​​​​​啟​​​​​​​用​​​​​​​您​​​​​​​在​​​​​​​叢​​​​​​​集​​​​​​​中​​​​​​​所​​​​​​​建​​​​​​​立​​​​​​​的​​​​​​​ LVM 卷​​​​​​​冊​​​​​​​,該​​​​​​​叢​​​​​​​集​​​​​​​設​​​​​​​備​​​​​​​必​​​​​​​須​​​​​​​要​​​​​​​是​​​​​​​執​​​​​​​行​​​​​​​中​​​​​​​並​​​​​​​且​​​​​​​為​​​​​​​ quorate。​​​​​​​
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 配​​​​​​​置​​​​​​​檔​​​​​​​案​​​​​​​.
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 來​​​​​​​建​​​​​​​立​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​時​​​​​​​,您​​​​​​​必​​​​​​​須​​​​​​​確​​​​​​​認​​​​​​​叢​​​​​​​集​​​​​​​中​​​​​​​所​​​​​​​有​​​​​​​的​​​​​​​節​​​​​​​點​​​​​​​皆​​​​​​​可​​​​​​​存​​​​​​​取​​​​​​​組​​​​​​​成​​​​​​​該​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​。​​​​​​​非​​​​​​​對​​​​​​​稱​​​​​​​式​​​​​​​的​​​​​​​叢​​​​​​​集​​​​​​​配​​​​​​​置​​​​​​​(也​​​​​​​就​​​​​​​是​​​​​​​有​​​​​​​些​​​​​​​節​​​​​​​點​​​​​​​可​​​​​​​存​​​​​​​取​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​,有​​​​​​​些​​​​​​​節​​​​​​​點​​​​​​​則​​​​​​​無​​​​​​​法​​​​​​​存​​​​​​​取​​​​​​​儲​​​​​​​存​​​​​​​裝​​​​​​​置​​​​​​​)不​​​​​​​受​​​​​​​到​​​​​​​支​​​​​​​援​​​​​​​。​​​​​​​

注意

若​​​​​​​要​​​​​​​使​​​​​​​用​​​​​​​用​​​​​​​於​​​​​​​ 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 服​​​​​​​務​​​​​​​人​​​​​​​員​​​​​​​取​​​​​​​得​​​​​​​聯​​​​​​​繫​​​​​​​。​​​​​​​
欲​​​​​​​取​​​​​​​得​​​​​​​有​​​​​​​關​​​​​​​於​​​​​​​如​​​​​​​何​​​​​​​安​​​​​​​裝​​​​​​​ Red Hat Cluster Suite 與​​​​​​​設​​​​​​​定​​​​​​​叢​​​​​​​集​​​​​​​設​​​​​​​備​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​,請​​​​​​​查​​​​​​​看​​​​​​​ 配​​​​​​​置​​​​​​​和​​​​​​​管​​​​​​​理​​​​​​​ Red Hat Cluster。​​​​​​​