Red Hat Training

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

1.3. クラスタ化論理ボリュームマネージャ (CLVM)

CLVM (Clustered Logical Volume Manager)は LVM のクラスタリング拡張の集合です。 これらの拡張により、コンピュータのクラスタが LVM を使用した共有ストレージ(例えば、SAN)を 管理できるようになります。
CLVM を使用すべきかどうかはシステム要件により左右されます:
  • ご使用のシステムのノードの1つだけが論理ボリュームとして設定するストレージに アクセスを必要とする場合は、CLVM 拡張を使用せずに LVM が使用可能であり、 そのノードで作成される論理ボリュームはノードに対してすべてローカルとなります。
  • ストレージにアクセスする単独ノードのみが毎回アクティブであるフェイルオーバーの ためにクラスタ化システムを使用している場合は、ハイアベイラビリティ論理ボリューム 管理エージェント (HA-LVM) を使用すべきです。HA-LVM に関する詳細には、『 Red Hat Cluster の設定と管理』 をご覧下さい。
  • アクティブノード群で共有されるようになるストレージへ、使用クラスタの 複数のノードがアクセスを必要とする場合は、CLVM を使用する必要があります。 CLVM の使用により、ユーザーは論理ボリュームが設定されている間に物理ストレージへのアクセスをロックすることにより、共有ストレージ上で論理ボリュームを設定することができるようになり、クラスタ化したロッキングサービスを使用して共有 ストレージの管理ができます。
CLVM を使用するには、clvmd デーモンを含む Red Hat Cluster Suite ソフトウェアが稼働していなければなりません。clmvd デーモンは LVM の基幹クラスタリング拡張です。 clvmd デーモンは各クラスタ コンピュータ内で稼働し、クラスタ内の LVM メタデータ更新を分散して、各クラスタコンピュータに論理 ボリュームの同一認識を提示します。Red Hat Cluster Suite のインストールと管理に関する情報には、 『Red Hat Cluster の設定と管理』 をご覧下さい。
clmvd が起動時に確実に開始するようにするために、 以下のようにして、clvmd サービス用の chkconfig ... on コマンドを実行します:
# chkconfig clvmd on
clvmd デーモンが開始していない場合は、以下のようにして 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 computers that have access to the shared storage. It is possible, however, to create logical volumes when the storage devices are visible to only one node in the cluster. It is also possible to change the status of a logical volume from a local volume to a clustered volume. For information, see 「クラスタ内のボリュームグループ作成」 and 「ボリュームグループのパラメータ変更」.
図1.2「CLVM の概要」 shows a CLVM overview in a Red Hat cluster.
CLVM の概要

図1.2 CLVM の概要

注記

Red Hat Cluster Suite 内で使用するための共有ストレージは、クラスタ論理ボリュームマネージャデーモン (clvmd)、あるいは ハイアベイラビリティ論理ボリューム管理エージェント (HA-LVM) が 稼働していることを要求します。運用の理由で、又は適切なエンタイトルメントの欠如の為に clvmd デーモンか、HA-LVM のいずれかを使用できない場合は、共有ディスク上でシングルインスタンス 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 設定ファイル.