DRBD – man page of drbd.conf #1 [対訳]

DRBD.CONF(5) DRBD.CONF(5)

NAME
名前

drbd.conf - Configuration file for DRBD’s devices
drbd.conf は DRBD デバイスの設定ファイルである。

INTRODUCTION
導入

The file /etc/drbd.conf is read by drbdaddm.
/etc/drbd.conf ファイルは drbdaddm によって読まれる。

The file format was designed as to allow to have a verbatim copy of the
file on both nodes of the cluster. It is highly recommended to do so in
order to keep your configuration manageable. The file /etc/drbd.conf
should be the same on both nodes of the cluster. Changes to
/etc/drbd.conf do not apply immediately.
ファイル形式はクラスターの両方のノードで逐語的なコピーを持つのを許可するよう設計された。設定を扱いやすく保つためにそのようにすることを強くお勧めする。/etc/drbd.conf ファイルはクラスターの両方のノードで同じにするべきである。/etc/drbd.conf を変更してもすぐに適用しない。

A SMALL DRBD.CONF FILE
小さな drbd.conf ファイル

global { usage-count yes; }
common { syncer { rate 10M; } }
resource r0 {
protocol C;
net {
cram-hmac-alg sha1;
shared-secret "FooFunFactory";
}
on thost1 {
device    /dev/drbd1;
disk      /dev/hda7;
address   10.1.1.31:7789;
meta-disk  internal;
}
on thost2 {
device    /dev/drbd1;
disk      /dev/hda7;
address   10.1.1.32:7789;
meta-disk  internal;
}
}

In this example there is a single DRBD resource (called r0) which uses
protocol C for the connection between its devices. The device which runs
on host thost1 uses /dev/drbd1 as devices for its application, and
/dev/hda7 as low-level storage for the data. The IP addresses are used
to specify the networking interfaces to be used. An eventually running
resyncprocess should use about 10MByte/second of IO bandwidth.
例では、デバイス間の接続のためのプロトコルCを使った、単一の DRBD リソース(r0 と呼ぶ)がある。ホスト thost1 で動作するデバイスは アプリケーションのために、デバイスとして /dev/drbd1 を使い、low-level のデータストレージとして /dev/hda7を使う。IPアドレスはネットワークインターフェースの特定のために使われる。結局、動作している resyncprocess は、IO帯域幅の約10Mバイトを使用するべきである。

There may be multiple resource sections in a single drbd.conf file. For
more examples, please have a look at the DRBD Quickstart Guide
.
一つの drbd.conf 多数のリソースのセクションがあるかもしれない。より多くの例のために、 DRBD Quickstart Guide<URL:http://www.linux-ha.org/DRBD/QuickStart07>を見て欲しい。

FILE FORMAT
ファイル形式

The file consists of sections and parameters. A section begins with a
keyword, sometimes an additional name, and an opening brace (‘‘{’’). A section ends with a closing brace (‘‘}’’. The braces enclose the parameters.
ファイルはセクションとパラメータから成る。セクションはキーワード、時々、付加的な名前、および「{」で始まる。セクションは「}」で終わる。これらの括弧はパラメータを囲む。

section [name] { parameter value; [...] }

A parameter starts with the identifier of the parameter followed by
whitespace. Every subsequent character is considered as part of the
parameter’s value. A special case are Boolean parameters which only consist of the identifier. Parameters are terminated by a semicolon (‘‘;’’).
パラメータは空白の前のパラメータの識別子から始まる。あらゆるそれに続く文字はパラメータ値の一部として考慮される。特別な場合は識別子からだけ成っているブール変数である。 変数はセミコロンで終わる「;」。

Some parameter values have default units which might be overruled by K, M or G. These units are defined in the usual way (K = 2^10 = 1024, M = 1024 K, G = 1024 M).
あるのパラメータ値は、K、M、Gによって支配されるかもしれないデフォルトの単位がある。これらの単位は通常の方法で定義される(K = 2^10 = 1024, M = 1024 K, G = 1024 M)。

Comments may be placed into the configuration file and must begin with a hash sign (‘‘#’’). Subsequent characters are ignored until the end of the line.
コメントが設定ファイルに書かれるかもしれない。「#」で始まらなければならない。それに続く文字列は行の最後まで無視される。

SECTIONS
セクション

skip
Comments out chunks of text, even spanning more than one line. Characters between the keyword skip and the opening brace (‘‘{’’) are ignored. Everything enclosed by the braces is skipped. This comes in handy, if you just want to comment out some ’resource [name] {...}’ section: just precede it with ’skip’.
一行以上のテキストの固まりはコメントアウトされる。キーワード skip と「{」の間の文字列は無視される。括弧で囲まれているもの全ては飛ばされる。’resource [name] {...}’ セクションをコメントアウトしたいなら約に立つ、skip を先行すること。

global
Configures some global parameters. Currently only minor-count, dialog-refresh, disable-ip-verification and usage-count are allowed here. You may only have one global section, preferably as the first section.
グローバルなパラメータを設定する。現在、minor-count、dialog-refresh、disable-ip-verification、usage-count だけが許可されている。あなたは最初のセクションとして選ぶべき、一つだけのグローバルセクションしかもてないでしょう。

common
All resources interhit the options set in this section. The common section might have a startup, a syncer, a handlers, a net and a disk section.
全てのリソースはこのセクションのオプションセットを interhit する。common セクションは、 startup、syncer、handlers、net、disk セクションを持つ。

resource name
Configures a DRBD resource. Each resource section needs to have two on host sections and may have a startup, a syncer, a handlers, a net and a disk section. Required parameter in this section: protocol.
DRBD リソースの設定。どの resource セクションでも2つの host セクションと、(恐らく) startup、syncer、handlers、net、disk セクションを持つことを必要とする。このセクションで必須のパラメータは protocol である。

on host-name
Carries the necessary configuration parameters for a DRBD device of the enclosing resource. host-name is mandatory and must match the linux hostname (uname -n) of one of the nodes. Required parameters in this section: device, disk, address, meta-disk, flexible-meta-disk.
囲まれたリソースの DRBD デバイスための必要な設定パラメータを運ぶ。host-name は必須で、ノードの一つの Linux ホスト名(uname -n)にと同じにしなければならない。このセクションで必要なパラメータは、device、disk、address、meta-disk、flexible-meta-disk である。

disk
This section is used to fine tune DRBD’s properties in respect to the low level storage. Please refer to drbdsetup(8) for detailed description of the parameters. Optional parameter: on-io-error, size, fencing, use-bmbv.
このセクションは低レベルストレージに関して、DRBD の特性を調節するのに使用される。変数の詳細な説明に関してdrbdsetup (8)を参照しなさい。オプションパラメータとして、on-io-error、size、fencing、use-bmbv がある。

net
This section is used to fine tune DRBD’s properties. Please refer to drbdsetup(8) for a detailed description of this section’s parameters. Optional parameters: sndbuf-size, timeout, connect-int, ping-int, ping-timeout, max-buffers, max-epoch-size, ko-count, allow-two-primaries, cram-hmac-alg, shared-secret, after-sb-0pri, after-sb-1pri, after-sb-2pri
このセクションは DRBD の特性を調節するのに使用される。このセクションの変数の詳細な説明に関してdrbdsetup (8)を参照しなさい。オプションパラメータとして、ko-count、allow-two-primaries、cram-hmac-alg、shared-secret、after-sb-0pri、after-sb-1pri、after-sb-2pri がある。

startup
This section is used to fine tune DRBD’s properties. Please refer to drbdsetup(8) for a detailed description of this section’s parameters. Optional parameters: wfc-timeout, degr-wfc-timeout and wait-after-sb.
このセクションは DRBD の特性を調節するのに使用される。このセクションの変数の詳細な説明に関してdrbdsetup (8)を参照しなさい。オプションパラメータとして、wfc-timeout、degr-wfc-timeout、wait-after-sb がある。

syncer
This section is used to fine tune the synchronisation daemon for the device. Please refer to drbdsetup(8) for a detailed description of this section’s parameters. Optional parameters: rate, after, al-extents.
このセクションはデバイスの同期をするデーモンの特性を調節するのに使用される。このセクションの変数の詳細な説明に関してdrbdsetup (8)を参照しなさい。オプションパラメータとして、rate、after、al-extents がある。

handlers
In this section you can define handlers (executables) that are executed by the DRBD system in response to certain events. Optional parameters: pri-on-incon-degr, pri-lost-after-sb, pri-lost, outdate-peer, local-io-error.
このセクションである特定のでき事に応じてDRBDシステムによって実行されるハンドラ(executables)を定義できる。オプションパラメータとして、pri-on-incon-degr、 pri-lost-after-sb、pri-lost、outdate-peer、local-io-error がある。

関連記事

DRBD - man page of drbd.conf #1 [対訳]
DRBD - man page of drbd.conf #2 [対訳]
DRBD - man page of drbd.conf #3 [対訳]
DRBD - man page of drbd.conf #4 [対訳]
DRBD - man page of drbd.conf #5 [対訳]

2007年 8月 25日 | Posted in Linux
タグ:
コメントは終了しています。