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 配置範例.
For descriptions of the CLI commands you can use to perform LVM administration, see 章 4, 透過 CLI 指令來進行 LVM 管理. Alternately, you can use the LVM GUI, which is described in 章 7, 利用 LVM GUI 來進行 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。
For an example of creating a mirrored logical volume in a cluster, see 節 5.5, “在叢集中建立鏡像 LVM 邏輯卷冊”.