DRBD – Integrating with Heartbeat V1 [対訳]

DRBD – Integrating with Heartbeat V1(http://www.drbd.org/drbd8-howto1.html) の対訳。

誤訳がありましたらコメントにてご指摘ください。

前: DRBD – Migrating DRBD resources [対訳] 次: DRBD – Integrating with Heartbeat V2 [対訳]
Note

ノート

DRBD is cluster manager agnostic. You may use any cluster manager for managing DRBD resources. Heartbeat (as described here) serves as the canonical example.

DRBD はクラスターマネージャ不可知論者である。あなたは DRBD のリソースを管理するために様々なクラスターマネージャを利用するかもしれない。(ここで説明する)Heartbeat は正規の例を提供する。

Getting and installing Heartbeat

Heartbeat の取得とインストール

The preferred way of installing Heartbeat 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 をインストールする完全な方法はあたなが利用しているディストリビュージョンのパッケージ管理ツール(yum, apt, run, など)を利用することだ。もしソースコードからビルドしインストールしたいのであれば Linux-HA のダウンロードサイトに必要なアーカイブがある。

On the Linux-HA site, you will also find the Getting Started howto that will enable you to get an initial Heartbeat configuration up and running.

Linux-HA サイトには、 Heartbeat の初期設定と起動のための Getting Starget howto も見つけられるだろう。

Prerequisites

前提条件

In order to have your DRBD resources managed by Heartbeat, the following conditions must be met beforehand:

あなたの DRBD リソースを Heartbeat で管理するためには、次の条件を事前に満たさなければならない:

  • Heartbeat, the DRBD kernel module, and the DRBD userland tools must be installed on both cluster nodes (if you’re thinking “duh” now, that’s perfectly appropriate)

    Heartbeat, DRBD kernel モジュール, そして DRBD のツールが両方のクラスターノードでインストールされていなければならない(あなたが現在 “duh” を考えているなら、それは完全に適切です)。
  • You must have your /etc/ha.d/ha.cf and /etc/ha.d/authkeys configured correctly

    /etc/ha.d/ha.cf と /etc/ha.d/authkeys が適切に設定されていなければならない。
  • DBRD resources must be configured in /etc/drbd.conf, and that file must have been distributed cluster-wide

    RDBD のリソースが /etc/drbd.conf で設定されていなければならない。そしてこのファイルはクラスター間で配布されていなければならない。
  • The DRBD kernel module must be loaded (the resource scripts won’t do that for you, your specific distribution will, however, offer a facility to automate this at system boot)

    DRBD kernel モジュールがロードされていなければならない(リソーススクリプトはこの作業を行ってくれない、しかしながら、特定のディストリビューションは、システムリブートの時点でこの作業を自動で行ってくれる)。
  • Network connectivity must be established on the DRBD replication path and all Heartbeat communication paths

    ネットワーク接続性が DRBD レプリケーション経路と Heartbeat 通信経路で確立されていなければならない。
  • Not required, but highly recommended: you should have tested and verified manual migration of your DRBD resources

    必須ではないが強く勧める: DRBD リソースへのテストと手動でのマイグレーションをすでに行っている。
Configuring haresources

haresources の設定

The haresources file, /etc/ha.d/haresources, is where you’ll configure your managed DRBD as a cluster resource. Normally it makes little sense to have DRBD managed without an associated file system. An entry for DRBD in the haresources file might look like this:

haresources ファイル /etc/ha.d/haresources は、あなたの管理する DRBD をクラスターリソースとして設定する場所である。通常、ファイルシステムと関連しない DRBD を管理することには意味がない。DRBD に対する haresources ファイルの設定は以下のようになる:

joe drbddisk::r0 Filesystem::/dev/drbd0::/var/lib/mysql::ext3

This will instruct Heartbeat to manage the DRBD resource r0 concurrently with the ext3 filesystem /var/lib/mysql, which will be mounted from the corresponding block device /dev/drbd0. The preferred node for this resource is joe.

これは /dev/drbd0 というブロックデバイス上の ext3 ファイルシステムで /var/lib/mysql にマウントされている DRBD リソース r0 を管理するよう Heartbeat に指示する。このリソースの優先ノードは joe である。

Of course, the more typical (and complete) usage would be this:

もちろん、より典型的(かつ完全)な利用はこのようになる:

joe drbddisk::r0 Filesystem::/dev/drbd0::/var/lib/mysql::ext3 192.168.0.42 mysqld

… which in addition to the DRBD device and file system will also include a service IP address (192.168.0.42) and a MySQL RDBMS daemon (mysqld) in the same cluster resource.

… DRBD デバイスとファイルシステムに加え、同じクラスターリソース上のサービス IP アドレス(192.168.0.42) と MySQL RDBMS デーモン(mysqld) も設定している。

Note

ノート

Like /etc/drbd.conf, /etc/ha.d/haresources must be identical on both cluster nodes.

/etc/drbd.conf のように、 /etc/ha.d/haresources は両方のクラスターノードで一致していなければならない。

前: DRBD – Migrating DRBD resources [対訳] 次: DRBD – Integrating with Heartbeat V2 [対訳]

Comments are closed.