DRBD – Integrating with Heartbeat V2(http://www.drbd.org/drbd8-howto2.html) の対訳。
誤訳がありましたらコメントにてご指摘ください。
| 前: DRBD – Integrating with Heartbeat V1 [対訳] |
Heartbeat の入手とインストール
As with Heartbeat V1, the preferred way of installing Heartbeat V2 is through your distribution’s package management frontend (yum, apt, rug, whatever). If you do want to build and install from source, the Linux-HA download area has the necessary archives.
Heartbeat V1 と同様、 Heartbeat V2 のお勧めのインストール方法はディストリビューションのパッケージ管理ツール(yum, apt, rug, など)を利用する方法である。もしソースからビルドとインストールを行いたいのであれば、 Linux-HA のダウンロードサイトに必要となるアーカイブがある。
On the Linux-HA site, you will also find the Getting Started V2 howto that will enable you to get an initial Heartbeat V2 configuration up and running.
Linux-HA サイトには、 Heartbeat V2 の初期設定と起動のための Getting Starget V2 howto も見つけられるだろう。
前提条件
The same prerequisites apply for Heartbeat V2 as do for Heartbeat V1. In fact, you might run Heartbeat V2 just like V1, with unchanged configuration. If, however, you want to use Heartbeat’s new Cluster Resource Manager (CRM) introduced in V2, you need to include this line in your /etc/ha.d/ha.cf:
Heartbeat V1 と同様の前提条件が Heartbeat V2 でも適用される。実際、設定を変更せず Heartbeat V2 を V1 と同じように実行できるかもしれない。しかし、Heartbeat V2 で新しく導入されたクラスターリソースマネージャ(CRM)を利用したいのであれば、 /etc/ha.d/ha.cf に以下の行を追加する必要がある:
crm yes
Simple, isn’t it? Note that if you have that option enabled, Heartbeat will no longer read the haresources file on startup, and will issue a warning if that file exists.
単純だろう。このオプションを有効にすると、 Heartbeat はもう haresources ファイルを起動時に読み込まなくなり、もしこのファイルが存在した場合に警告するようになる。
クラスター情報ベース(CIB) の設定
Heartbeat V2 resources are defined in the Cluster Information Base XML file, usually found in /var/lib/heartbeat/crm/cib.xml. This may be edited manually, see the Linux-HA site for more information (however, see the following paragraph if you prefer a more user-friendly approach).
Heartbeat V2 のリソースはクラスター情報ベースという XML ファイルで定義される。このファイルは普通 /var/lib/heartbeat/crm/cib.xml にある。このファイルは手動で編集される。詳細な情報は Linux-HA サイトを参照せよ。(ただしよりユーザーフレンドリーな方法を好むようであれば次の節を参照。)
Heartbeat V2 GUI を利用する
Heartbeat V2 includes a GUI for the cluster resource manager, which will manipulate the Cluster Information Base for you. It is written in Python and requires GTK+, Glade, and the associated Python bindings. It’s named ha_client.py, though some distributions rename it to hbgui or similar.
Heartbeat V2 はクラスターリソースマネージャのための GUI を含んでいる。これはクラスター情報ベースを操作する。これは Python で書かれ GTK+, Glade, そして関連する Python バインディングを必要とする。 ha_client.py という名前で、いくつかのディストリビューションはこれを hbgui などと名前を変更している。
Heartbeat V2 での DRBD リソース
With Heartbeat V2, you may address DRBD resources in one of two ways:
Heartbeat V2 では DRBD リソースを二つのうち一つの方法で示すことになる。
- the drbddisk resource type, as in Heartbeat V1,
Heartbeat V1 で drbddisk リソースタイプ - the drbd resource type, using the Heartbeat V2/OCF interface.
Heartbeat V2/OCF インターフェースで drbd リソースタイプ
DRBD/Heartbeat V2 設定チェックリスト
In order to set up a working DRBD configuration with Heartbeat V2, follow these steps:
Heartbeat V2 と動作する DRBD の設定をするためには以下の手順に従う:
- Set up your DRBD resource (using either the drbddisk or drbd resource type)
DRBD リソースを設定する(drbddisk か drbd リソースタイプを使って) - Set up your filesystem resource
ファイルシステムリソースを設定する - Set up your IP address resource
IP アドレスリソースを設定する - Set up your service resource
サービスリソースを設定する - Create an order constraint so the DRBD resource is activated before the filesystem resource (so Heartbeat doesn’t attempt to mount a file system on a node that’s still in secondary mode)
ファイルシステムの前に DRBD リソースが有効になるよう順序制約を作る(Heartbeat はまだセカンダリモードのノードのファイルシステムをマウントしようとしない) - Create a colocation constraint so the filesystem, IP address, and service resources always run on the same node
ファイルシステムと IP アドレスとサービスリソースが同じノードで実行されるよう位置制約を作る - (optional) Set a preferred node for the service resource.
(オプションで) そのサービスの優先ノードを設定する
| 前: DRBD – Integrating with Heartbeat V1 [対訳] |
