Debian Codegraph @

UG9/ja/lvm.po

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2020-02-07 11:55+0900\n"
10 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <[email protected]>\n"
13 "Language: \n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #. type: Title ==
19 #, no-wrap
20 msgid "Using LVM with DRBD"
21 msgstr "DRBDでのLVMの使用"
22
23 #. type: Plain text
24 msgid ""
25 "indexterm:[LVM]indexterm:[Logical Volume Management]This chapter deals with "
26 "managing DRBD in conjunction with LVM2. In particular, it covers"
27 msgstr ""
28 "indexterm:[LVM]indexterm:[Logical Volume Management]この章では、DRBDの管理と"
29 "LVM2について説明します。特に、次のような項目を取り上げます。"
30
31 #. type: Plain text
32 msgid "using LVM Logical Volumes as backing devices for DRBD;"
33 msgstr "LVM論理ボリュームをDRBDの下位デバイスとして使用する。"
34
35 #. type: Plain text
36 msgid "using DRBD devices as Physical Volumes for LVM;"
37 msgstr "DRBDデバイスをLVMの論理ボリュームとして使用する。"
38
39 #. type: Plain text
40 msgid ""
41 "combining these to concepts to implement a layered LVM approach using DRBD."
42 msgstr "上記の2つを組み合わせ、 DRBDを使用して階層構造のLVMを実装する。"
43
44 #. type: Plain text
45 msgid ""
46 "If you happen to be unfamiliar with these terms to begin with, <<s-lvm-"
47 "primer>> may serve as your LVM starting point -- although you are always "
48 "encouraged, of course, to familiarize yourself with LVM in some more detail "
49 "than this section provides."
50 msgstr ""
51 "上記の用語についてよく知らない場合は、<<s-lvm-primer>>を参照してください。ま"
52 "た、ここで説明する内容にとどまらず、LVMについてさらに詳しく理解することをお勧"
53 "めします。"
54
55 #. type: Title ===
56 #, no-wrap
57 msgid "LVM primer"
58 msgstr "LVMの基礎"
59
60 #. type: Plain text
61 msgid ""
62 "LVM2 is an implementation of logical volume management in the context of the "
63 "Linux device mapper framework. It has practically nothing in common, other "
64 "than the name and acronym, with the original LVM implementation. The old "
65 "implementation (now retroactively named \"LVM1\") is considered obsolete; it "
66 "is not covered in this section."
67 msgstr ""
68 "LVM2は、Linuxデバイスマッパフレームワークでの論理ボリューム管理を実用化したも"
69 "のです。元々のLVMとは、名前以外は実際は何の共通点もありません。以前の実装(現"
70 "在LVM1と呼ぶもの)は時代遅れとみなされているため、ここでは取り上げません。"
71
72 #. type: Plain text
73 msgid ""
74 "When working with LVM, it is important to understand its most basic concepts:"
75 msgstr ""
76 "LVMを使用する際には、次に示す基本的なコンセプトを理解することが重要です。"
77
78 #. type: Block title
79 #, no-wrap
80 msgid "Physical Volume (PV)"
81 msgstr "物理ボリューム (PV)"
82
83 #. type: Plain text
84 msgid ""
85 "indexterm:[LVM]indexterm:[Physical Volume (LVM)]A PV is an underlying block "
86 "device exclusively managed by LVM. PVs can either be entire hard disks or "
87 "individual partitions. It is common practice to create a partition table on "
88 "the hard disk where one partition is dedicated to the use by the Linux LVM."
89 msgstr ""
90 "indexterm:[LVM]indexterm:[Physical Volume (LVM)]PV (Physical Volume: 物理ボ"
91 "リューム)はLVMのみが管理配下とするブロックデバイスです。ハードディスク全体ま"
92 "たは個々のパーティションがPVになります。ハードディスクにパーティションを1つだ"
93 "け作成して、これをすべてLinux LVMで使用するのが一般的です。"
94
95 #. type: Plain text
96 msgid ""
97 "The partition type \"Linux LVM\" (signature `0x8E`) can be used to identify "
98 "partitions for exclusive use by LVM. This, however, is not required -- LVM "
99 "recognizes PVs by way of a signature written to the device upon PV "
100 "initialization."
101 msgstr ""
102 "パーティションタイプ\"Linux LVM\" (シグネチャは 0x8E)を使用して、LVMが独占的"
103 "に使用するパーティションを識別できます。ただし、これは必須ではありません。PV"
104 "の初期化時にデバイスに書き込まれるシグネチャによってLVMがPVを認識します。"
105
106 #. type: Block title
107 #, no-wrap
108 msgid "Volume Group (VG)"
109 msgstr "ボリュームグループ (VG)"
110
111 #. type: Plain text
112 msgid ""
113 "indexterm:[LVM]indexterm:[Volume Group (LVM)]A VG is the basic "
114 "administrative unit of the LVM. A VG may include one or more several PVs. "
115 "Every VG has a unique name. A VG may be extended during runtime by adding "
116 "additional PVs, or by enlarging an existing PV."
117 msgstr ""
118 "indexterm:[LVM]indexterm:[Volume Group (LVM)]VG (Volume Group: ボリュームグ"
119 "ループ)はLVMの基本的な管理単位です。VGは1つまたは複数のPVで構成されます。各VG"
120 "は一意の名前を持ちます。実行時にPVを追加したり、PVを拡張して、VGを大きくする"
121 "ことができます。"
122
123 #. type: Block title
124 #, no-wrap
125 msgid "Logical Volume (LV)"
126 msgstr "論理ボリューム (LV)"
127
128 #. type: Plain text
129 msgid ""
130 "indexterm:[LVM]indexterm:[Logical Volume (LVM)]LVs may be created during "
131 "runtime within VGs and are available to the other parts of the kernel as "
132 "regular block devices. As such, they may be used to hold a file system, or "
133 "for any other purpose block devices may be used for. LVs may be resized "
134 "while they are online, and they may also be moved from one PV to another (as "
135 "long as the PVs are part of the same VG)."
136 msgstr ""
137 "indexterm:[LVM]indexterm:[Logical Volume (LVM)]実行時にVG内にLV (Logical "
138 "Volume: 論理ボリューム)を作成することにより、カーネルの他の部分がこれらを通常"
139 "のブロックデバイスとして使用できます。このように、LVはファイルシステムの格納"
140 "をはじめ、ブロックデバイスと同様のさまざまな用途に使用できます。オンライン時"
141 "にLVのサイズを変更したり、1つのPVから別のPVに移動したりすることができます(PV"
142 "が同じVGに含まれる場合)。"
143
144 #. type: Block title
145 #, no-wrap
146 msgid "Snapshot Logical Volume (SLV)"
147 msgstr "スナップショット論理ボリューム (SLV)"
148
149 #. type: Plain text
150 msgid ""
151 "indexterm:[snapshots (LVM)]indexterm:[LVM]Snapshots are temporary point-in-"
152 "time copies of LVs. Creating snapshots is an operation that completes almost "
153 "instantly, even if the original LV (the _origin volume_) has a size of "
154 "several hundred GiByte. Usually, a snapshot requires significantly less "
155 "space than the original LV."
156 msgstr ""
157 "indexterm:[snapshots (LVM)]indexterm:[LVM]スナップショットはLVの一時的なポイ"
158 "ントインタイムコピーです。スナップショットはLVの一時的なポイントインタイムコ"
159 "ピーです。元のLV(コピー元ボリューム)のサイズが数百GBの場合でも、スナップ"
160 "ショットは一瞬で作成できます。通常、スナップショットは元のLVと比べてかなり小"
161 "さい領域しか必要としません。"
162
163 #. type: Block title
164 #, no-wrap
165 msgid "LVM overview"
166 msgstr "LVM概要"
167
168 #. type: Target for macro image
169 #, no-wrap
170 msgid "images/lvm.svg"
171 msgstr "images/lvm.svg"
172
173 #. type: Title ===
174 #, no-wrap
175 msgid "Using a Logical Volume as a DRBD backing device"
176 msgstr "DRBDの下位デバイスとして論理ボリュームを使用する"
177
178 #. type: Plain text
179 msgid ""
180 "indexterm:[LVM]indexterm:[Logical Volume (LVM)]Since an existing Logical "
181 "Volume is simply a block device in Linux terms, you may of course use it as "
182 "a DRBD backing device. To use LV's in this manner, you simply create them, "
183 "and then initialize them for DRBD as you normally would."
184 msgstr ""
185 "indexterm:[LVM]indexterm:[Logical Volume (LVM)]Linuxでは、既存の論理ボリュー"
186 "ムは単なるブロックデバイスであるため、これをDRBDの下位デバイスとして使用でき"
187 "ます。この方法でLVを使用する場合は、通常通りにLVを作成してDRBD用に初期化する"
188 "だけです。"
189
190 #. type: Plain text
191 msgid ""
192 "This example assumes that a Volume Group named `foo` already exists on both "
193 "nodes of on your LVM-enabled system, and that you wish to create a DRBD "
194 "resource named `r0` using a Logical Volume in that Volume Group."
195 msgstr ""
196 "次の例では、LVM対応システムの両方のノードに `foo` というボリュームグループが"
197 "すでに存在します。このボリュームグループの論理ボリュームを使用して、 `r0` と"
198 "いうDRBDリソースを作成します。"
199
200 #. type: Plain text
201 msgid ""
202 "First, you create the Logical Volume: indexterm:[LVM]indexterm:[lvcreate "
203 "(LVM command)]"
204 msgstr ""
205 "まず、次のコマンドで論理ボリュームを作成します。 indexterm:[LVM]indexterm:"
206 "[lvcreate (LVM command)]"
207
208 #. type: delimited block -
209 #, no-wrap
210 msgid ""
211 "# lvcreate --name bar --size 10G foo\n"
212 "Logical volume \"bar\" created\n"
213 msgstr ""
214 "# lvcreate --name bar --size 10G foo\n"
215 "Logical volume \"bar\" created\n"
216
217 #. type: Plain text
218 msgid ""
219 "Of course, you must complete this command on both nodes of your DRBD "
220 "cluster. After this, you should have a block device named `/dev/foo/bar` on "
221 "either node."
222 msgstr ""
223 "このコマンドはDRBDクラスタの両方のノードで実行する必要があります。これで、両"
224 "ノードに `/dev/foo/bar` というブロックデバイスが作成されます。"
225
226 #. type: Plain text
227 msgid ""
228 "Then, you can simply enter the newly-created volumes in your resource "
229 "configuration:"
230 msgstr "次に、新しく作成したボリュームをリソース設定に加えます。"
231
232 #. type: delimited block -
233 #, no-wrap
234 msgid ""
235 "resource r0 {\n"
236 " ...\n"
237 " on alice {\n"
238 " device /dev/drbd0;\n"
239 " disk /dev/foo/bar;\n"
240 " ...\n"
241 " }\n"
242 " on bob {\n"
243 " device /dev/drbd0;\n"
244 " disk /dev/foo/bar;\n"
245 " ...\n"
246 " }\n"
247 "}\n"
248 msgstr ""
249 "resource r0 {\n"
250 " ...\n"
251 " on alice {\n"
252 " device /dev/drbd0;\n"
253 " disk /dev/foo/bar;\n"
254 " ...\n"
255 " }\n"
256 " on bob {\n"
257 " device /dev/drbd0;\n"
258 " disk /dev/foo/bar;\n"
259 " ...\n"
260 " }\n"
261 "}\n"
262
263 #. type: Plain text
264 msgid ""
265 "Now you can <<s-first-time-up,continue to bring your resource up>>, just as "
266 "you would if you were using non-LVM block devices."
267 msgstr ""
268 "これで<<s-first-time-up,リソースを起動>>できます。手順はLVM対応以外のブロック"
269 "デバイスと同様です。"
270
271 #. type: Title ===
272 #, no-wrap
273 msgid "Using automated LVM snapshots during DRBD synchronization"
274 msgstr "DRBD同期中の自動LVMスナップショットの使用"
275
276 #. type: Plain text
277 msgid ""
278 "While DRBD is synchronizing, the __SyncTarget__'s state is _Inconsistent_ "
279 "until the synchronization completes. If in this situation the _SyncSource_ "
280 "happens to fail (beyond repair), this puts you in an unfortunate position: "
281 "the node with good data is dead, and the surviving node has bad "
282 "(inconsistent) data."
283 msgstr ""
284 "DRBDが同期をしている間、 `SyncTarget` の状態は同期が完了するまでは "
285 "`Inconsistent` (不整合)の状態です。この状況では `SyncSource` で(修復できない)"
286 "障害があった場合に困った状況になります。正常なデータを持つノードが死に、誤っ"
287 "た情報を持つノードが残ってしまいます。"
288
289 #. type: Plain text
290 msgid ""
291 "When serving DRBD off an LVM Logical Volume, you can mitigate this problem "
292 "by creating an automated snapshot when synchronization starts, and "
293 "automatically removing that same snapshot once synchronization has completed "
294 "successfully."
295 msgstr ""
296 "LVM論理ボリュームをDRBDに渡す際には、同期の開始時に自動スナップショットを作成"
297 "し、またこれを完了後に自動削除する方法によって、この問題を軽減することができ"
298 "ます"
299
300 #. type: Plain text
301 msgid ""
302 "In order to enable automated snapshotting during resynchronization, add the "
303 "following lines to your resource configuration:"
304 msgstr ""
305 "再同期中に自動でスナップショットをするには、リソース設定に以下の行を追加しま"
306 "す。"
307
308 #. type: Block title
309 #, no-wrap
310 msgid "Automating snapshots before DRBD synchronization"
311 msgstr "DRBD同期前の自動スナップショット作成"
312
313 #. type: delimited block -
314 #, no-wrap
315 msgid ""
316 "resource r0 {\n"
317 " handlers {\n"
318 " before-resync-target \"/usr/lib/drbd/snapshot-resync-target-lvm.sh\";\n"
319 " after-resync-target \"/usr/lib/drbd/unsnapshot-resync-target-lvm.sh\";\n"
320 " }\n"
321 "}\n"
322 msgstr ""
323 "resource r0 {\n"
324 " handlers {\n"
325 " before-resync-target \"/usr/lib/drbd/snapshot-resync-target-lvm.sh\";\n"
326 " after-resync-target \"/usr/lib/drbd/unsnapshot-resync-target-lvm.sh\";\n"
327 " }\n"
328 "}\n"
329
330 #. type: Plain text
331 msgid ""
332 "The two scripts parse the `$DRBD_RESOURCE` environment variable which DRBD "
333 "automatically passes to any `handler` it invokes. The `snapshot-resync-"
334 "target-lvm.sh` script then creates an LVM snapshot for any volume the "
335 "resource contains, then synchronization kicks off. In case the script fails, "
336 "the synchronization _does not commence_."
337 msgstr ""
338 "2つのスクリプトはDRBDが呼び出した `ハンドラ` に自動で渡す `$DRBD_RESOURCE$` "
339 "環境変数を解析します。`snapshot-resync-target-lvm.sh` スクリプトは、同期の開"
340 "始前に、リソースが含んでいるボリュームのLVMスナップショットを作成します。その"
341 "スクリプトが失敗した場合、同期は _開始_ されません。"
342
343 #. type: Plain text
344 msgid ""
345 "Once synchronization completes, the `unsnapshot-resync-target-lvm.sh` script "
346 "removes the snapshot, which is then no longer needed. In case unsnapshotting "
347 "fails, the snapshot continues to linger around."
348 msgstr ""
349 "同期が完了すると、 `unsnapshot-resync-target-lvm.sh` スクリプトが必要のなく"
350 "なったスナップショットを削除します。スナップショットの削除に失敗した場合、ス"
351 "ナップショットは残り続けます。"
352
353 #. type: Plain text
354 msgid ""
355 "You should review dangling snapshots as soon as possible. A full snapshot "
356 "causes both the snapshot itself _and its origin volume_ to fail."
357 msgstr ""
358 "できる限り不要なスナップショットは確認するようにしてください。スナップショッ"
359 "トが満杯だと、スナップショット自身と元のボリュームの障害の原因になります。"
360
361 #. type: Plain text
362 msgid ""
363 "If at any time your _SyncSource_ does fail beyond repair and you decide to "
364 "revert to your latest snapshot on the peer, you may do so by issuing the "
365 "`lvconvert -M` command."
366 msgstr ""
367 "`SyncSource` に修復できない障害が起きて、最新のスナップショットに復帰したいと"
368 "きには、いつでも `lvconvert -M` コマンドで行えます。"
369
370 #. type: Title ===
371 #, no-wrap
372 msgid "Configuring a DRBD resource as a Physical Volume"
373 msgstr "DRBDリソースを物理ボリュームとして構成する"
374
375 #. type: Plain text
376 msgid ""
377 "indexterm:[LVM]indexterm:[Physical Volume (LVM)]In order to prepare a DRBD "
378 "resource for use as a Physical Volume, it is necessary to create a PV "
379 "signature on the DRBD device. In order to do so, issue one of the following "
380 "commands on the node where the resource is currently in the primary role: "
381 "indexterm:[LVM]indexterm:[pvcreate (LVM command)]"
382 msgstr ""
383 "indexterm:[LVM]indexterm:[Physical Volume (LVM)]DRBDリソースを物理ボリューム"
384 "として使用するためには、DRBDデバイスにPVのシグネチャを作成する必要がありま"
385 "す。リソースが現在プライマリロールになっているノードで、 次のいずれかのコマン"
386 "ドを実行します。indexterm:[LVM]indexterm:[pvcreate (LVM command)]"
387
388 #. type: delimited block -
389 #, no-wrap
390 msgid "# pvcreate /dev/drbdX\n"
391 msgstr "# pvcreate /dev/drbdX\n"
392
393 #. type: Plain text
394 msgid "or"
395 msgstr "または"
396
397 #. type: delimited block -
398 #, no-wrap
399 msgid "# pvcreate /dev/drbd/by-res/<resource>/0\n"
400 msgstr "# pvcreate /dev/drbd/by-res/<resource>/0\n"
401
402 #. type: Plain text
403 msgid "This example assumes a single-volume resource."
404 msgstr "この例ではボリュームリソースが1つの場合を前提にしています。"
405
406 #. type: Plain text
407 msgid ""
408 "Now, it is necessary to include this device in the list of devices LVM scans "
409 "for PV signatures. In order to do this, you must edit the LVM configuration "
410 "file, normally named indexterm:[LVM]`/etc/lvm/lvm.conf`. Find the line in "
411 "the `devices` section that contains the `filter` keyword and edit it "
412 "accordingly. If _all_ your PVs are to be stored on DRBD devices, the "
413 "following is an appropriate `filter` option: indexterm:[LVM]indexterm:"
414 "[filter expression (LVM)]"
415 msgstr ""
416 "次に、LVMがPVシグネチャをスキャンするデバイスのリストにこのデバイスを加えま"
417 "す。このためには、通常はindexterm:[LVM]/etc/lvm/lvm.conf という名前のLVM設定"
418 "ファイルを編集する必要があります。 `devices` セクションで `filter` というキー"
419 "ワードを含む行を見つけて編集します。_すべて_ のPVをDRBDデバイスに格納する場合"
420 "には、次ように `filter` オプションを編集します。indexterm:[LVM]indexterm:"
421 "[filter expression (LVM)]"
422
423 #. type: delimited block -
424 #, no-wrap
425 msgid "filter = [ \"a|drbd.*|\", \"r|.*|\" ]\n"
426 msgstr "filter = [ \"a|drbd.*|\", \"r|.*|\" ]\n"
427
428 #. type: Plain text
429 msgid ""
430 "This filter expression accepts PV signatures found on any DRBD devices, "
431 "while rejecting (ignoring) all others."
432 msgstr ""
433 "このフィルタ表現がDRBDデバイスで見つかったPVシグネチャを受け入れ、それ以外の"
434 "すべてを拒否(無視)します。"
435
436 #. type: Plain text
437 msgid ""
438 "By default, LVM scans all block devices found in `/dev` for PV signatures. "
439 "This is equivalent to `filter = [ \"a|.*|\" ]`."
440 msgstr ""
441 "デフォルトではLVMは /dev にあるすべてのブロックデバイスのPVシグネチャをスキャ"
442 "ンします。これは `filter = [ \"a|.*|\" ]` に相当します。"
443
444 #. type: Plain text
445 msgid ""
446 "If you want to use stacked resources as LVM PVs, then you will need a more "
447 "explicit filter configuration. You need to make sure that LVM detects PV "
448 "signatures on stacked resources, while ignoring them on the corresponding "
449 "lower-level resources and backing devices. This example assumes that your "
450 "lower-level DRBD resources use device minors 0 through 9, whereas your "
451 "stacked resources are using device minors from 10 upwards:"
452 msgstr ""
453 "LVMのPVでスタックリソースを使用する場合は、より明示的にフィルタ構成を指定する"
454 "必要があります。対応する下位レベルリソースや下位デバイスでPVシグネチャを無視"
455 "している場合、LVMはスタックリソースでPVシグネチャを検出する必要があります。次"
456 "の例では、下位レベルDRBDリソースは0から9のデバイスを使用し、スタックリソース"
457 "は10以上のデバイスを使用しています。"
458
459 #. type: delimited block -
460 #, no-wrap
461 msgid "filter = [ \"a|drbd1[0-9]|\", \"r|.*|\" ]\n"
462 msgstr "filter = [ \"a|drbd1[0-9]|\", \"r|.*|\" ]\n"
463
464 #. type: Plain text
465 msgid ""
466 "This filter expression accepts PV signatures found only on the DRBD devices "
467 "`/dev/drbd10` through `/dev/drbd19`, while rejecting (ignoring) all others."
468 msgstr ""
469 "このフィルタ表現は、 `/dev/drbd10` から `/dev/drbd19` までのDRBDのデバイスで"
470 "見つかったPVシグニチャを受け入れ、それ以外のすべてを拒否(無視)します。"
471
472 #. type: Plain text
473 msgid ""
474 "After modifying the `lvm.conf` file, you must run the indexterm:"
475 "[LVM]indexterm:[vgscan (LVM command)]`vgscan` command so LVM discards its "
476 "configuration cache and re-scans devices for PV signatures."
477 msgstr ""
478 "`lvm.conf` ファイルを変更したらindexterm:[LVM]indexterm:[vgscan (LVM "
479 "command)] `vgscan` コマンドを実行します。LVMは構成キャッシュを破棄し、デバイ"
480 "スを再スキャンしてPVシグネチャを見つけます。"
481
482 #. type: Plain text
483 msgid ""
484 "You may of course use a different `filter` configuration to match your "
485 "particular system configuration. What is important to remember, however, is "
486 "that you need to"
487 msgstr ""
488 "システム構成に合わせて、別の `filter` 構成を使用することもできます。重要なの"
489 "は、次の2つです。"
490
491 #. type: Plain text
492 msgid "Accept (include) the DRBD devices you wish to use as PVs;"
493 msgstr "PVとして使用するデバイスに、DRBDのデバイスを許容する"
494
495 #. type: Plain text
496 msgid ""
497 "Reject (exclude) the corresponding lower-level devices, so as to avoid LVM "
498 "finding duplicate PV signatures."
499 msgstr ""
500 "対応する下位レベルデバイスを拒否(除外)して、 LVMが重複したPVシグネチャを見つ"
501 "けることを回避する。"
502
503 #. type: Plain text
504 msgid "In addition, you should disable the LVM cache by setting:"
505 msgstr "さらに、次の設定で、LVMのキャッシュを無効にする必要があります。"
506
507 #. type: delimited block -
508 #, no-wrap
509 msgid "write_cache_state = 0\n"
510 msgstr "write_cache_state = 0\n"
511
512 #. type: Plain text
513 msgid ""
514 "After disabling the LVM cache, make sure you remove any stale cache entries "
515 "by deleting `/etc/lvm/cache/.cache`."
516 msgstr ""
517 "LVMのキャッシュを無効にした後、 `/etc/lvm/cache/.cache` を削除して、古い"
518 "キャッシュを削除してください。"
519
520 #. type: Plain text
521 msgid "You must repeat the above steps on the peer nodes, too."
522 msgstr "対向ノードでも、上記の手順を繰り返します。"
523
524 #. type: Plain text
525 msgid ""
526 "If your system has its root filesystem on LVM, Volume Groups will be "
527 "activated from your initial ramdisk (initrd) during boot. In doing so, the "
528 "LVM tools will evaluate an `lvm.conf` file included in the initrd image. "
529 "Thus, after you make any changes to your `lvm.conf`, you should be certain "
530 "to update your initrd with the utility appropriate for your distribution "
531 "(`mkinitrd`, `update-initramfs` etc.)."
532 msgstr ""
533 "システムのルートファイルシステムがLVM上にある場合、bootの際にボリュームグルー"
534 "プはイニシャルRAMディスク(initrd)から起動します。この時、LVMツールはinitrdイ"
535 "メージに含まれる `lvm.conf` ファイルを検査します。そのため、 `lvm.conf` に変"
536 "更を加えたら、ディストリビューションに応じてユーティリティ(mkinitrd、update-"
537 "initramfs など)で確実にinitrdをアップデートしなければなりません。"
538
539 #. type: Plain text
540 msgid ""
541 "When you have configured your new PV, you may proceed to add it to a Volume "
542 "Group, or create a new Volume Group from it. The DRBD resource must, of "
543 "course, be in the primary role while doing so. indexterm:[LVM]indexterm:"
544 "[vgcreate (LVM command)]"
545 msgstr ""
546 "新しいPVを設定したら、ボリュームグループに追加するか、 新しいボリュームグルー"
547 "プを作成します。このとき、DRBDリソースがプライマリロールになっている必要があ"
548 "ります。indexterm:[LVM]indexterm:[vgcreate (LVM command)]"
549
550 #. type: delimited block -
551 #, no-wrap
552 msgid "# vgcreate <name> /dev/drbdX\n"
553 msgstr "# vgcreate <name> /dev/drbdX\n"
554
555 #. type: Plain text
556 msgid ""
557 "While it is possible to mix DRBD and non-DRBD Physical Volumes within the "
558 "same Volume Group, doing so is not recommended and unlikely to be of any "
559 "practical value."
560 msgstr ""
561 "同じボリュームグループ内にDRBD物理ボリュームとDRBD以外の物理ボリュームを混在"
562 "させることができますが、これはお勧めできません。また、混在させても実際には意"
563 "味がないでしょう。"
564
565 #. type: Plain text
566 msgid ""
567 "When you have created your VG, you may start carving Logical Volumes out of "
568 "it, using the indexterm:[LVM]indexterm:[lvcreate (LVM command)]`lvcreate` "
569 "command (as with a non-DRBD-backed Volume Group)."
570 msgstr ""
571 "indexterm:[LVM]indexterm:[lvcreate (LVM command)]VGを作成したら、 `lvcreate` "
572 "コマンドを使用して、(DRBD以外を使用するボリュームグループと同様に)ここから論"
573 "理ボリュームを作成します。"
574
575 #. type: Title ===
576 #, no-wrap
577 msgid "Adding a new DRBD volume to an existing Volume Group"
578 msgstr "新しいDRBDボリュームを既存のボリュームグループへ追加する"
579
580 #. type: Plain text
581 msgid ""
582 "Occasionally, you may want to add new DRBD-backed Physical Volumes to a "
583 "Volume Group. Whenever you do so, a new volume should be added to an "
584 "existing resource configuration. This preserves the replication stream and "
585 "ensures write fidelity across all PVs in the VG."
586 msgstr ""
587 "新しいDRBDでバックアップした物理ボリュームを、ボリュームグループへ追加したい"
588 "といった事があるでしょう。その場合には、新しいボリュームは既存のリソース設定"
589 "に追加しなければなりません。そうすることでVG内の全PVにわたってレプリケーショ"
590 "ンストリームと書き込み順序の忠実性が確保されます。"
591
592 #. type: Plain text
593 msgid ""
594 "if your LVM volume group is managed by Pacemaker as explained in <<s-lvm-"
595 "pacemaker>>, it is _imperative_ to place the cluster in maintenance mode "
596 "prior to making changes to the DRBD configuration."
597 msgstr ""
598 "LVMボリュームグループを<<s-lvm-pacemaker>>で説明しているようにPacemakerで管理"
599 "している場合には、DRBD設定の変更前にクラスタメンテナンスモードになっている事"
600 "が _必要_ です。"
601
602 #. type: Plain text
603 msgid ""
604 "Extend your resource configuration to include an additional volume, as in "
605 "the following example:"
606 msgstr "追加ボリュームを加えるには、リソース設定を次のように拡張します。"
607
608 #. type: delimited block -
609 #, no-wrap
610 msgid ""
611 "resource r0 {\n"
612 " volume 0 {\n"
613 " device /dev/drbd1;\n"
614 " disk /dev/sda7;\n"
615 " meta-disk internal;\n"
616 " }\n"
617 " volume 1 {\n"
618 " device /dev/drbd2;\n"
619 " disk /dev/sda8;\n"
620 " meta-disk internal;\n"
621 " }\n"
622 " on alice {\n"
623 " address 10.1.1.31:7789;\n"
624 " }\n"
625 " on bob {\n"
626 " address 10.1.1.32:7789;\n"
627 " }\n"
628 "}\n"
629 msgstr ""
630 "resource r0 {\n"
631 " volume 0 {\n"
632 " device /dev/drbd1;\n"
633 " disk /dev/sda7;\n"
634 " meta-disk internal;\n"
635 " }\n"
636 " volume 1 {\n"
637 " device /dev/drbd2;\n"
638 " disk /dev/sda8;\n"
639 " meta-disk internal;\n"
640 " }\n"
641 " on alice {\n"
642 " address 10.1.1.31:7789;\n"
643 " }\n"
644 " on bob {\n"
645 " address 10.1.1.32:7789;\n"
646 " }\n"
647 "}\n"
648
649 #. type: Plain text
650 msgid ""
651 "Make sure your DRBD configuration is identical across nodes, then issue:"
652 msgstr "DRBD設定が全ノード間で同じである事を確認し、次のコマンドを発行します。"
653
654 #. type: delimited block -
655 #, no-wrap
656 msgid "# drbdadm adjust r0\n"
657 msgstr "# drbdadm adjust r0\n"
658
659 #. type: Plain text
660 msgid ""
661 "This will implicitly call `drbdsetup new-minor r0 1` to enable the new "
662 "volume `1` in the resource `r0`. Once the new volume has been added to the "
663 "replication stream, you may initialize and add it to the volume group:"
664 msgstr ""
665 "これによって、リソース `r0` の新規ボリューム `1` を有効にするため、暗黙的に "
666 "`drbdsetup new-minor r0 1` が呼び出されます。新規ボリュームがレプリケーション"
667 "ストリームに追加されると、イニシャライズやボリュームグループへの追加ができる"
668 "ようになります。"
669
670 #. type: delimited block -
671 #, no-wrap
672 msgid ""
673 "# pvcreate /dev/drbd/by-res/<resource>/1\n"
674 "# vgextend <name> /dev/drbd/by-res/<resource>/1\n"
675 msgstr ""
676 "# pvcreate /dev/drbd/by-res/<resource>/1\n"
677 "# vgextend <name> /dev/drbd/by-res/<resource>/1\n"
678
679 #. type: Plain text
680 msgid ""
681 "This will add the new PV `/dev/drbd/by-res/<resource>/1` to the `<name>` VG, "
682 "preserving write fidelity across the entire VG."
683 msgstr ""
684 "で新規PVの `/dev/drbd/by-res/<resource>/1` が `<name>` VGへ追加され、VG全体に"
685 "わたって書き込みの忠実性を保護します。"
686
687 #. type: Title ===
688 #, no-wrap
689 msgid "Nested LVM configuration with DRBD"
690 msgstr "DRBDを使用する入れ子のLVM構成"
691
692 #. type: Plain text
693 msgid ""
694 "It is possible, if slightly advanced, to both use indexterm:[LVM]indexterm:"
695 "[Logical Volume (LVM)]Logical Volumes as backing devices for DRBD _and_ at "
696 "the same time use a DRBD device itself as a indexterm:[LVM]indexterm:"
697 "[Physical Volume (LVM)]Physical Volume. To provide an example, consider the "
698 "following configuration:"
699 msgstr ""
700 "indexterm:[LVM]indexterm:[Logical Volume (LVM)]論理ボリュームをDRBDの下位デバ"
701 "イスとして使用し、かつ、同時にDRBDデバイス自体を物理ボリュームとして使用する"
702 "こともできます。indexterm:[LVM]indexterm:[Physical Volume (LVM)]例として、次"
703 "のような構成を考えてみましょう。"
704
705 #. type: Plain text
706 msgid ""
707 "We have two partitions, named `/dev/sda1`, and `/dev/sdb1`, which we intend "
708 "to use as Physical Volumes."
709 msgstr ""
710 "`/dev/sda1` と `/dev/sdb1` という2つのパーティションがあり、 これらを物理ボ"
711 "リュームとして使用"
712
713 #. type: Plain text
714 msgid "Both of these PVs are to become part of a Volume Group named `local`."
715 msgstr "2つのPVが `local` というボリュームグループに含まれる。"
716
717 #. type: Plain text
718 msgid "We want to create a 10-GiB Logical Volume in this VG, to be named `r0`."
719 msgstr "このGVに10GiBの論理ボリュームを作成し、 `r0` という名前を付ける。"
720
721 #. type: Plain text
722 msgid ""
723 "This LV will become the local backing device for our DRBD resource, also "
724 "named `r0`, which corresponds to the device `/dev/drbd0`."
725 msgstr ""
726 "このLVがDRBDリソースのローカル下位デバイスになり、 名前は同じ `r0` で、デバイ"
727 "ス `/dev/drbd0` に対応する。"
728
729 #. type: Plain text
730 msgid ""
731 "This device will be the sole PV for another Volume Group, named `replicated`."
732 msgstr ""
733 "このデバイスが `replicated` というもう1つのボリュームグループの唯一のPVにな"
734 "る。"
735
736 #. type: Plain text
737 msgid ""
738 "This VG is to contain two more logical volumes named `foo`(4 GiB) and "
739 "`bar`(6 GiB)."
740 msgstr ""
741 "このVGには `foo` (4GiB)と `bar` (6GiB)というさらに2つの論理ボリュームが含まれ"
742 "る。"
743
744 #. type: Plain text
745 msgid "In order to enable this configuration, follow these steps:"
746 msgstr "この構成を有効にするために、次の手順を行います。"
747
748 #. type: Plain text
749 msgid "Set an appropriate `filter` option in your `/etc/lvm/lvm.conf`:"
750 msgstr "`/etc/lvm/lvm.conf` で適切な filter オプションを設定する。"
751
752 #. type: Plain text
753 msgid "indexterm:[LVM]indexterm:[filter expression (LVM)]"
754 msgstr "indexterm:[LVM]indexterm:[filter expression (LVM)]"
755
756 #. type: delimited block -
757 #, no-wrap
758 msgid "filter = [\"a|sd.*|\", \"a|drbd.*|\", \"r|.*|\"]\n"
759 msgstr "filter = [\"a|sd.*|\", \"a|drbd.*|\", \"r|.*|\"]\n"
760
761 #. type: Plain text
762 msgid ""
763 "This filter expression accepts PV signatures found on any SCSI and DRBD "
764 "devices, while rejecting (ignoring) all others."
765 msgstr ""
766 "このフィルタ表現が、SCSIおよびDRBDデバイスで見つかったPVシグネチャを受け入"
767 "れ、その他すべてを拒否(無視)します。"
768
769 #. type: Plain text
770 msgid "Disable the LVM cache by setting:"
771 msgstr "LVMキャッシュ無効の設定"
772
773 #. type: Plain text
774 msgid ""
775 "Now, you may initialize your two SCSI partitions as PVs: indexterm:"
776 "[LVM]indexterm:[pvcreate (LVM command)]"
777 msgstr ""
778 "ここで、2つのSCSIパーティションをPVとして初期化します。 indexterm:"
779 "[LVM]indexterm:[pvcreate (LVM command)]"
780
781 #. type: delimited block -
782 #, no-wrap
783 msgid ""
784 "# pvcreate /dev/sda1\n"
785 "Physical volume \"/dev/sda1\" successfully created\n"
786 "# pvcreate /dev/sdb1\n"
787 "Physical volume \"/dev/sdb1\" successfully created\n"
788 msgstr ""
789 "# pvcreate /dev/sda1\n"
790 "Physical volume \"/dev/sda1\" successfully created\n"
791 "# pvcreate /dev/sdb1\n"
792 "Physical volume \"/dev/sdb1\" successfully created\n"
793
794 #. type: Plain text
795 msgid ""
796 "The next step is creating your low-level VG named `local`, consisting of the "
797 "two PVs you just initialized: indexterm:[LVM]indexterm:[vgcreate (LVM "
798 "command)]"
799 msgstr ""
800 "次に、初期化した2つのPVを含む \"local\" という名前の下位レベルVGを作成しま"
801 "す。 indexterm:[LVM]indexterm:[vgcreate (LVM command)]"
802
803 #. type: delimited block -
804 #, no-wrap
805 msgid ""
806 "# vgcreate local /dev/sda1 /dev/sda2\n"
807 "Volume group \"local\" successfully created\n"
808 msgstr ""
809 "# vgcreate local /dev/sda1 /dev/sda2\n"
810 "Volume group \"local\" successfully created\n"
811
812 #. type: Plain text
813 msgid ""
814 "Now you may create your Logical Volume to be used as DRBD's backing device: "
815 "indexterm:[LVM]indexterm:[lvcreate (LVM command)]"
816 msgstr ""
817 "これで、DRBDの 下位デバイスとして使用する論理ボリュームを作成可能です。"
818 "indexterm:[LVM]indexterm:[lvcreate (LVM command)]"
819
820 #. type: delimited block -
821 #, no-wrap
822 msgid ""
823 "# lvcreate --name r0 --size 10G local\n"
824 "Logical volume \"r0\" created\n"
825 msgstr ""
826 "# lvcreate --name r0 --size 10G local\n"
827 "Logical volume \"r0\" created\n"
828
829 #. type: Plain text
830 msgid "Repeat all steps, up to this point, on the peer node."
831 msgstr "対向ノードでも、ここまでのすべての手順を繰り返します。"
832
833 #. type: Plain text
834 msgid ""
835 "Then, edit your `/etc/drbd.conf` to create a new resource named `r0`: "
836 "indexterm:[drbd.conf]"
837 msgstr ""
838 "`/etc/drbd.conf` を編集して、r0 という名前の新しいリソースを作成。 indexterm:"
839 "[drbd.conf]"
840
841 #. type: delimited block -
842 #, no-wrap
843 msgid ""
844 "resource r0 {\n"
845 " device /dev/drbd0;\n"
846 " disk /dev/local/r0;\n"
847 " meta-disk internal;\n"
848 " on <host> { address <address>:<port>; }\n"
849 " on <host> { address <address>:<port>; }\n"
850 "}\n"
851 msgstr ""
852 "resource r0 {\n"
853 " device /dev/drbd0;\n"
854 " disk /dev/local/r0;\n"
855 " meta-disk internal;\n"
856 " on <host> { address <address>:<port>; }\n"
857 " on <host> { address <address>:<port>; }\n"
858 "}\n"
859
860 #. type: Plain text
861 msgid ""
862 "After you have created your new resource configuration, be sure to copy your "
863 "`drbd.conf` contents to the peer node."
864 msgstr ""
865 "新しいリソース構成を作成したら、忘れずに drbd.conf の内容を対向ノードにコピー"
866 "します。"
867
868 #. type: Plain text
869 msgid ""
870 "After this, initialize your resource as described in <<s-first-time-up>>(on "
871 "both nodes)."
872 msgstr "<<s-first-time-up>>に従って(両方のノードの)リソースを初期化します 。"
873
874 #. type: Plain text
875 msgid "Then, promote your resource (on one node): indexterm:[drbdadm, primary]"
876 msgstr "一方のノードリソースを昇格する。indexterm:[drbdadm]"
877
878 #. type: delimited block -
879 #, no-wrap
880 msgid "# drbdadm primary r0\n"
881 msgstr "# drbdadm primary r0\n"
882
883 #. type: Plain text
884 msgid ""
885 "Now, on the node where you just promoted your resource, initialize your DRBD "
886 "device as a new Physical Volume:"
887 msgstr ""
888 "リソースを昇格したノードで、DRBDデバイスを新しい物理ボリュームとして初期化し"
889 "ます。"
890
891 #. type: Plain text
892 msgid "indexterm:[LVM]indexterm:[pvcreate (LVM command)]"
893 msgstr "indexterm:[LVM]indexterm:[pvcreate (LVM command)]"
894
895 #. type: delimited block -
896 #, no-wrap
897 msgid ""
898 "# pvcreate /dev/drbd0\n"
899 "Physical volume \"/dev/drbd0\" successfully created\n"
900 msgstr ""
901 "# pvcreate /dev/drbd0\n"
902 "Physical volume \"/dev/drbd0\" successfully created\n"
903
904 #. type: Plain text
905 msgid ""
906 "Create your VG named `replicated`, using the PV you just initialized, on the "
907 "same node: indexterm:[LVM]indexterm:[vgcreate (LVM command)]"
908 msgstr ""
909 "初期化したPVを使用して、同じノードに `replicated` というVGを作成します。 "
910 "indexterm:[LVM]indexterm:[vgcreate (LVM command)]"
911
912 #. type: delimited block -
913 #, no-wrap
914 msgid ""
915 "# vgcreate replicated /dev/drbd0\n"
916 "Volume group \"replicated\" successfully created\n"
917 msgstr ""
918 "# vgcreate replicated /dev/drbd0\n"
919 "Volume group \"replicated\" successfully created\n"
920
921 #. type: Plain text
922 msgid ""
923 "Finally, create your new Logical Volumes within this newly-created VG via "
924 "indexterm:[LVM]indexterm:[lvcreate (LVM command)]"
925 msgstr ""
926 "最後に、新しく作成したこのVG内に新しい論理ボリュームを作成します。"
927 "[LVM]indexterm:[lvcreate (LVM command)]"
928
929 #. type: delimited block -
930 #, no-wrap
931 msgid ""
932 "# lvcreate --name foo --size 4G replicated\n"
933 "Logical volume \"foo\" created\n"
934 "# lvcreate --name bar --size 6G replicated\n"
935 "Logical volume \"bar\" created\n"
936 msgstr ""
937 "# lvcreate --name foo --size 4G replicated\n"
938 "Logical volume \"foo\" created\n"
939 "# lvcreate --name bar --size 6G replicated\n"
940 "Logical volume \"bar\" created\n"
941
942 #. type: Plain text
943 msgid ""
944 "The Logical Volumes `foo` and `bar` will now be available as `/dev/"
945 "replicated/foo` and `/dev/replicated/bar` on the local node."
946 msgstr ""
947 "これで、論理ボリューム `foo` と `bar` をローカルノードで `/dev/replicated/"
948 "foo` と `/dev/replicated/bar` として使用できます。"
949
950 #. type: Title ====
951 #, no-wrap
952 msgid "Switching the VG to the other node"
953 msgstr "VGを他ノードに移動する"
954
955 #. type: Plain text
956 msgid ""
957 "To make them available on the other node, first issue the following sequence "
958 "of commands on the primary node: indexterm:[LVM]indexterm:[vgchange (LVM "
959 "command)]"
960 msgstr ""
961 "他のノードでも使用できるように、プライマリノードで次のコマンドを実行します。"
962 "indexterm:[LVM]indexterm:[vgchange (LVM command)]"
963
964 #. type: delimited block -
965 #, no-wrap
966 msgid ""
967 "# vgchange -a n replicated\n"
968 "0 logical volume(s) in volume group \"replicated\" now active\n"
969 "# drbdadm secondary r0\n"
970 msgstr ""
971 "# vgchange -a n replicated\n"
972 "0 logical volume(s) in volume group \"replicated\" now active\n"
973 "# drbdadm secondary r0\n"
974
975 #. type: Plain text
976 msgid ""
977 "Then, issue these commands on the other (still secondary) node: indexterm:"
978 "[drbdadm, primary]indexterm:[LVM]indexterm:[vgchange (LVM command)]"
979 msgstr ""
980 "次に他のノード(まだセカンダリの)でコマンドを発行します。indexterm:"
981 "[drbdadm]indexterm:[LVM]indexterm:[vgchange (LVM command)]"
982
983 #. type: delimited block -
984 #, no-wrap
985 msgid ""
986 "# drbdadm primary r0\n"
987 "# vgchange -a y replicated\n"
988 "2 logical volume(s) in volume group \"replicated\" now active\n"
989 msgstr ""
990 "# drbdadm primary r0\n"
991 "# vgchange -a y replicated\n"
992 "2 logical volume(s) in volume group \"replicated\" now active\n"
993
994 #. type: Plain text
995 msgid ""
996 "After this, the block devices `/dev/replicated/foo` and `/dev/replicated/"
997 "bar` will be available on the other (now primary) node."
998 msgstr ""
999 "これでブロックデバイス `/dev/replicated/foo` と `/dev/replicated/bar` が他の"
1000 "(現在はプライマリの)ノードで有効になります。"
1001
1002 #. type: Title ===
1003 #, no-wrap
1004 msgid "Highly available LVM with Pacemaker"
1005 msgstr "Pacemakerによる高可用性LVM"
1006
1007 #. type: Plain text
1008 msgid ""
1009 "The process of transferring volume groups between peers and making the "
1010 "corresponding logical volumes available can be automated. The Pacemaker LVM "
1011 "resource agent is designed for exactly that purpose."
1012 msgstr ""
1013 "対向ノード間でのボリュームグループの転送と、対応する有効な論理ボリュームの作"
1014 "成のプロセスは自動化することができます。Pacemakerの `LVM` リソースエージェン"
1015 "トはまさにこのために作られています。"
1016
1017 #. type: Plain text
1018 msgid ""
1019 "In order to put an existing, DRBD-backed volume group under Pacemaker "
1020 "management, run the following commands in the `crm` shell:"
1021 msgstr ""
1022 "既存のPacemaker管理下にあるDRBDの下位デバイスのボリュームグループをレプリケー"
1023 "トするために、 `crm` シェルで次のコマンドを実行してみましょう。"
1024
1025 #. type: Block title
1026 #, no-wrap
1027 msgid "Pacemaker configuration for DRBD-backed LVM Volume Group"
1028 msgstr "DRBDの下位デバイスのLVMボリュームグループに関するPacemaker設定"
1029
1030 #. type: delimited block -
1031 #, no-wrap
1032 msgid ""
1033 "primitive p_drbd_r0 ocf:linbit:drbd \\\n"
1034 " params drbd_resource=\"r0\" \\\n"
1035 " op monitor interval=\"29s\" role=\"Master\" \\\n"
1036 " op monitor interval=\"31s\" role=\"Slave\"\n"
1037 "ms ms_drbd_r0 p_drbd_r0 \\\n"
1038 " meta master-max=\"1\" master-node-max=\"1\" \\\n"
1039 " clone-max=\"2\" clone-node-max=\"1\" \\\n"
1040 " notify=\"true\"\n"
1041 "primitive p_lvm_r0 ocf:heartbeat:LVM \\\n"
1042 " params volgrpname=\"r0\"\n"
1043 "colocation c_lvm_on_drbd inf: p_lvm_r0 ms_drbd_r0:Master\n"
1044 "order o_drbd_before_lvm inf: ms_drbd_r0:promote p_lvm_r0:start\n"
1045 "commit\n"
1046 msgstr ""
1047 "primitive p_drbd_r0 ocf:linbit:drbd \\\n"
1048 " params drbd_resource=\"r0\" \\\n"
1049 " op monitor interval=\"29s\" role=\"Master\" \\\n"
1050 " op monitor interval=\"31s\" role=\"Slave\"\n"
1051 "ms ms_drbd_r0 p_drbd_r0 \\\n"
1052 " meta master-max=\"1\" master-node-max=\"1\" \\\n"
1053 " clone-max=\"2\" clone-node-max=\"1\" \\\n"
1054 " notify=\"true\"\n"
1055 "primitive p_lvm_r0 ocf:heartbeat:LVM \\\n"
1056 " params volgrpname=\"r0\"\n"
1057 "colocation c_lvm_on_drbd inf: p_lvm_r0 ms_drbd_r0:Master\n"
1058 "order o_drbd_before_lvm inf: ms_drbd_r0:promote p_lvm_r0:start\n"
1059 "commit\n"
1060
1061 #. type: Plain text
1062 msgid ""
1063 "After you have committed this configuration, Pacemaker will automatically "
1064 "make the `r0` volume group available on whichever node currently has the "
1065 "Primary (Master) role for the DRBD resource."
1066 msgstr ""
1067 "この設定を反映させると、現在のDRBDリソースのプライマリ(マスター)ロールがどち"
1068 "らであっても、Pacemakerは自動的に `r0` ボリュームグループを有効にします。"