Debian Codegraph @

UG9/cn/configure.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 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2020-03-02 15:09+0000\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=CHARSET\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: Title ===
20 #: configure.adoc:2
21 #, no-wrap
22 msgid "Configuring DRBD"
23 msgstr "配置DRBD"
24
25 #. type: Title ====
26 #: configure.adoc:5
27 #, no-wrap
28 msgid "Preparing your lower-level storage"
29 msgstr "准备底层存储"
30
31 #. type: Plain text
32 #: configure.adoc:12
33 msgid ""
34 "After you have installed DRBD, you must set aside a roughly identically "
35 "sized storage area on both cluster nodes. This will become the _lower-level "
36 "device_ for your DRBD resource. You may use any type of block device found "
37 "on your system for this purpose. Typical examples include:"
38 msgstr ""
39 "安装完DRBD之后,必须在两个集群节点上留出大致相同大小的存储区域。这将成为DRBD资源的底层设备。为此,您可以使用系统上找到的任何类型的块设备。典型示例包括:"
40
41 #. type: Plain text
42 #: configure.adoc:14
43 msgid "A hard drive partition (or a full physical hard drive),"
44 msgstr "硬盘分区(或完整的物理硬盘驱动器),"
45
46 #. type: Plain text
47 #: configure.adoc:16
48 msgid "a software RAID device,"
49 msgstr "一个软件RAID设备,"
50
51 #. type: Plain text
52 #: configure.adoc:19
53 msgid ""
54 "an LVM Logical Volume or any other block device configured by the Linux "
55 "device-mapper infrastructure,"
56 msgstr "LVM逻辑卷或由Linux device-mapper配置出的任何其他块设备,"
57
58 #. type: Plain text
59 #: configure.adoc:21
60 msgid "any other block device type found on your system."
61 msgstr "在系统上找到的任何其他块设备类型。"
62
63 #. type: Plain text
64 #: configure.adoc:26
65 msgid ""
66 "You may also use _resource stacking_, meaning you can use one DRBD device as"
67 " a lower-level device for another. Some specific considerations apply to "
68 "stacked resources; their configuration is covered in detail in <<s-three-"
69 "nodes>>."
70 msgstr ""
71 "您也可以使用 _资源堆叠_ ,这意味着您可以将一个DRBD设备用作另一个底层设备。使用堆叠资源有一些特定注意事项;它们的配置在<<s-three-"
72 "nodes>>中有详细介绍。"
73
74 #. type: Plain text
75 #: configure.adoc:29
76 msgid ""
77 "While it is possible to use loop devices as lower-level devices for DRBD, "
78 "doing so is not recommended due to deadlock issues."
79 msgstr "虽然可以使用环路设备(loop devices)作为DRBD的底层设备,但由于死锁问题,不建议这样做。"
80
81 #. type: Plain text
82 #: configure.adoc:35
83 msgid ""
84 "It is _not_ necessary for this storage area to be empty before you create a "
85 "DRBD resource from it. In fact it is a common use case to create a two-node "
86 "cluster from a previously non-redundant single-server system using DRBD "
87 "(some caveats apply -- please refer to <<s-metadata>> if you are planning to"
88 " do this)."
89 msgstr ""
90 "在某个存储区域中创建DRBD资源之前,_不_ 需要将其设置为空。事实上,通常利用DRBD从以前的非冗余单服务器系统中创建出双节点集群。(如果您计划这样做,请参考<<s-metadata>>)。"
91
92 #. type: Plain text
93 #: configure.adoc:37 configure.adoc:80
94 msgid "For the purposes of this guide, we assume a very simple setup:"
95 msgstr "在本指南中,我们假设一个非常简单的设置:"
96
97 #. type: Plain text
98 #: configure.adoc:40
99 msgid "Both hosts have a free (currently unused) partition named `/dev/sda7`."
100 msgstr "两台主机都有一个名为 `/dev/sda7` 的可用(当前未使用)分区。"
101
102 #. type: Plain text
103 #: configure.adoc:42
104 msgid "We are using <<s-internal-meta-data,internal meta data>>."
105 msgstr "我们选择使用<<s-internal-meta-data,internal meta data>>。"
106
107 #. type: Title ====
108 #: configure.adoc:45
109 #, no-wrap
110 msgid "Preparing your network configuration"
111 msgstr "准备网络配置"
112
113 #. type: Plain text
114 #: configure.adoc:53
115 msgid ""
116 "It is recommended, though not strictly required, that you run your DRBD "
117 "replication over a dedicated connection. At the time of this writing, the "
118 "most reasonable choice for this is a direct, back-to-back, Gigabit Ethernet "
119 "connection. When DRBD is run over switches, use of redundant components and "
120 "the _bonding_ driver (in _active-backup_ mode) is recommended."
121 msgstr ""
122 "虽然不是严格要求,但建议您通过专用连接运行DRBD复制。在撰写本文时,最合理的选择是直接、背对背(back-to-back)、千兆以太网连接。当DRBD在交换机网络上运行时,建议使用冗余组件和 _bonding_ 驱动程序(在 _active-"
123 "backup_ 模式下)。"
124
125 #. type: Plain text
126 #: configure.adoc:57
127 msgid ""
128 "It is generally not recommended to run DRBD replication via routers, for "
129 "reasons of fairly obvious performance drawbacks (adversely affecting both "
130 "throughput and latency)."
131 msgstr "通常不建议通过路由器网络运行DRBD复制,因为存在相当明显的性能缺陷(对吞吐量和延迟都有不利影响)。"
132
133 #. type: Plain text
134 #: configure.adoc:64
135 msgid ""
136 "In terms of local firewall considerations, it is important to understand "
137 "that DRBD (by convention) uses TCP ports from 7788 upwards, with every "
138 "resource listening on a separate port. DRBD uses _two_ TCP connections for "
139 "every resource configured. For proper DRBD functionality, it is required "
140 "that these connections are allowed by your firewall configuration."
141 msgstr ""
142 "就本地防火墙的考虑而言,重要的是要理解DRBD(按惯例)使用7788以上的TCP端口,每个资源都在一个单独的端口上监听。DRBD对每个配置的资源使用两个TCP连接。为了实现正确的DRBD功能,防火墙配置必须允许这些连接。"
143
144 #. type: Plain text
145 #: configure.adoc:69
146 msgid ""
147 "Security considerations other than firewalling may also apply if a Mandatory"
148 " Access Control (MAC) scheme such as SELinux or AppArmor is enabled. You may"
149 " have to adjust your local security policy so it does not keep DRBD from "
150 "functioning properly."
151 msgstr ""
152 "如果启用了诸如SELinux或AppArmor之类的强制访问控制(MAC)方案,则除防火墙之外的安全考虑也可能适用。您可能需要调整本地安全策略,使其无法使DRBD正常工作。"
153
154 #. type: Plain text
155 #: configure.adoc:72
156 msgid ""
157 "You must, of course, also ensure that the TCP ports for DRBD are not already"
158 " used by another application."
159 msgstr "当然,您还必须确保DRBD的TCP端口尚未被其他应用程序使用。"
160
161 #. type: Plain text
162 #: configure.adoc:77
163 msgid ""
164 "It is not (yet) possible to configure a DRBD resource to support more than "
165 "one TCP connection pair. If you want to provide for DRBD connection load-"
166 "balancing or redundancy, you can easily do so at the Ethernet level (again, "
167 "using the _bonding_ driver)."
168 msgstr ""
169 "目前还不能配置DRBD资源来支持多个TCP连接对。如果您想提供DRBD连接负载平衡或冗余,那么您可以在以太网级别(再次提醒,使用 _bonding_ 设备)轻松地做到这一点。"
170
171 #. type: Plain text
172 #: configure.adoc:84
173 msgid ""
174 "Our two DRBD hosts each have a currently unused network interface, `eth1`, "
175 "with IP addresses `10.1.1.31` and `10.1.1.32` assigned to it, respectively."
176 msgstr "我们的两台DRBD主机都有一个当前未使用的网络接口eth1,其IP地址分别为 `10.1.1.31` 和 `10.1.1.32` 。"
177
178 #. type: Plain text
179 #: configure.adoc:87
180 msgid ""
181 "No other services are using TCP ports 7788 through 7799 on either host."
182 msgstr "无其他服务在任一主机上使用TCP端口7788到7799。"
183
184 #. type: Plain text
185 #: configure.adoc:90
186 msgid ""
187 "The local firewall configuration allows both inbound and outbound TCP "
188 "connections between the hosts over these ports."
189 msgstr "本地防火墙配置允许主机之间通过这些端口进行入站和出站TCP连接。"
190
191 #. type: Title ====
192 #: configure.adoc:93
193 #, no-wrap
194 msgid "Configuring your resource"
195 msgstr "配置资源"
196
197 #. type: Plain text
198 #: configure.adoc:98
199 msgid ""
200 "All aspects of DRBD are controlled in its configuration file, "
201 "`/etc/drbd.conf`. Normally, this configuration file is just a skeleton with "
202 "the following contents:"
203 msgstr "DRBD的所有选项都在其配置文件 `/etc/DRBD.conf` 中进行控制。通常,此配置文件只是具有以下内容的框架:"
204
205 #. type: delimited block -
206 #: configure.adoc:102
207 #, no-wrap
208 msgid ""
209 "include \"/etc/drbd.d/global_common.conf\";\n"
210 "include \"/etc/drbd.d/*.res\";\n"
211 msgstr ""
212 "include \"/etc/drbd.d/global_common.conf\";\n"
213 "include \"/etc/drbd.d/*.res\";\n"
214
215 #. type: Plain text
216 #: configure.adoc:108
217 msgid ""
218 "By convention, `/etc/drbd.d/global_common.conf` contains the <<s-drbdconf-"
219 "global,`global`>> and <<s-drbdconf-common,`common`>> sections of the DRBD "
220 "configuration, whereas the `.res` files contain one <<s-drbdconf-"
221 "resource,`resource`>> section each."
222 msgstr ""
223 "按照惯例,`/etc/drbd.d/global_common.conf` 包含drbd配置的<<s-drbdconf-"
224 "global,`global`>>和<<s-drbdconf-"
225 "common,`common`>>部分,而 `.res` 文件包含每个<<s-drbdconf-resource,`resource`>>部分。"
226
227 #. type: Plain text
228 #: configure.adoc:113
229 msgid ""
230 "It is also possible to use `drbd.conf` as a flat configuration file without "
231 "any `include` statements at all. Such a configuration, however, quickly "
232 "becomes cluttered and hard to manage, which is why the multiple-file "
233 "approach is the preferred one."
234 msgstr ""
235 "也可以使用 `drbd.conf` 作为一个单一配置文件,而不使用任何 `include` 语句。"
236 "然而,这样的配置很快就会变得杂乱无章,难以管理,这就是为什么多文件方法是首选的方法。"
237
238 #. type: Plain text
239 #: configure.adoc:117
240 msgid ""
241 "Regardless of which approach you employ, you should always make sure that "
242 "`drbd.conf`, and any other files it includes, are _exactly identical_ on all"
243 " participating cluster nodes."
244 msgstr "无论采用哪种方法,都应该始终确保所有参与集群节点上的 `drbd.conf` 及其包含的任何其他文件 _完全相同_ 。"
245
246 #. type: Plain text
247 #: configure.adoc:123
248 msgid ""
249 "The DRBD source tarball contains an example configuration file in the "
250 "`scripts` subdirectory. Binary installation packages will either install "
251 "this example configuration directly in `/etc`, or in a package-specific "
252 "documentation directory such as `/usr/share/doc/packages/drbd`."
253 msgstr ""
254 "DRBD 源码压缩包解压后, "
255 "在 `scripts` 子目录中包含一个示例配置文件。二进制安装包将直接在 `/etc` ,或在 `/usr/share/doc/packages/drbd` 等由安装包定义出的文档目录中安装此示例配置。"
256
257 #. type: Plain text
258 #: configure.adoc:128
259 msgid ""
260 "This section describes only those few aspects of the configuration file "
261 "which are absolutely necessary to understand in order to get DRBD up and "
262 "running. The configuration file's syntax and contents are documented in "
263 "great detail in the man page of `drbd.conf`."
264 msgstr ""
265 "本节仅描述配置文件的几个部分,这些部分对于使DRBD启动和运行是绝对必要的。配置文件的语法和内容在 `drbd.conf` 的手册页中有详细的说明。"
266
267 #. type: Title =====
268 #: configure.adoc:131
269 #, no-wrap
270 msgid "Example configuration"
271 msgstr "示例配置"
272
273 #. type: Plain text
274 #: configure.adoc:136
275 msgid ""
276 "For the purposes of this guide, we assume a minimal setup in line with the "
277 "examples given in the previous sections:"
278 msgstr "在本指南中,我们假设按照前面章节中给出的示例进行最小设置:"
279
280 #. type: Block title
281 #: configure.adoc:137
282 #, no-wrap
283 msgid "Simple DRBD configuration (`/etc/drbd.d/global_common.conf`)"
284 msgstr "简单的DRBD配置( `/etc/DRBD.d/global_common.conf` )"
285
286 #. type: delimited block -
287 #: configure.adoc:147
288 #, no-wrap
289 msgid ""
290 "global {\n"
291 " usage-count yes;\n"
292 "}\n"
293 "common {\n"
294 " net {\n"
295 " protocol C;\n"
296 " }\n"
297 "}\n"
298 msgstr ""
299 "global {\n"
300 " usage-count yes;\n"
301 "}\n"
302 "common {\n"
303 " net {\n"
304 " protocol C;\n"
305 " }\n"
306 "}\n"
307
308 #. type: Block title
309 #: configure.adoc:149
310 #, no-wrap
311 msgid "Simple DRBD resource configuration (`/etc/drbd.d/r0.res`)"
312 msgstr "简单的DRBD资源配置( `/etc/drbd.d/rc0.res` )"
313
314 #. type: delimited block -
315 #: configure.adoc:165
316 #, no-wrap
317 msgid ""
318 "resource r0 {\n"
319 " on alice {\n"
320 " device /dev/drbd1;\n"
321 " disk /dev/sda7;\n"
322 " address 10.1.1.31:7789;\n"
323 " meta-disk internal;\n"
324 " }\n"
325 " on bob {\n"
326 " device /dev/drbd1;\n"
327 " disk /dev/sda7;\n"
328 " address 10.1.1.32:7789;\n"
329 " meta-disk internal;\n"
330 " }\n"
331 "}\n"
332 msgstr ""
333 "resource r0 {\n"
334 " on alice {\n"
335 " device /dev/drbd1;\n"
336 " disk /dev/sda7;\n"
337 " address 10.1.1.31:7789;\n"
338 " meta-disk internal;\n"
339 " }\n"
340 " on bob {\n"
341 " device /dev/drbd1;\n"
342 " disk /dev/sda7;\n"
343 " address 10.1.1.32:7789;\n"
344 " meta-disk internal;\n"
345 " }\n"
346 "}\n"
347
348 #. type: Plain text
349 #: configure.adoc:168
350 msgid "This example configures DRBD in the following fashion:"
351 msgstr "此示例按以下方式配置DRBD:"
352
353 #. type: Plain text
354 #: configure.adoc:171
355 msgid ""
356 "You \"opt in\" to be included in DRBD's usage statistics (see <<fp-usage-"
357 "count>>)."
358 msgstr ""
359 "您 \"决定参加\" 将包含在DRBD的使用统计信息中 (参见 <<fp-usage-"
360 "count>>)。"
361
362 #. type: Plain text
363 #: configure.adoc:175
364 msgid ""
365 "Resources are configured to use fully synchronous replication "
366 "(<<s-replication-protocols,Protocol C>>) unless explicitly specified "
367 "otherwise."
368 msgstr "除非另有明确规定,否则资源配置为使用完全同步复制(<<s-replication-protocols,Protocol C>>)。"
369
370 #. type: Plain text
371 #: configure.adoc:177
372 msgid "Our cluster consists of two nodes, 'alice' and 'bob'."
373 msgstr "我们的集群由两个节点 `alice` 和 `bob` 组成。"
374
375 #. type: Plain text
376 #: configure.adoc:181
377 msgid ""
378 "We have a resource arbitrarily named `r0` which uses `/dev/sda7` as the "
379 "lower-level device, and is configured with <<s-internal-meta-data,internal "
380 "meta data>>."
381 msgstr ""
382 "我们有一个命名为 `r0` 的资源,它使用 `/dev/sda7` 作为低级设备,并配置了<<s-internal-meta-data,internal "
383 "meta data>>。"
384
385 #. type: Plain text
386 #: configure.adoc:185
387 msgid ""
388 "The resource uses TCP port 7789 for its network connections, and binds to "
389 "the IP addresses 10.1.1.31 and 10.1.1.32, respectively. (This implicitly "
390 "defines the network connections that are used.)"
391 msgstr "资源使用TCP端口7789进行网络连接,并分别绑定到IP地址10.1.1.31和10.1.1.32。(这将隐式定义所使用的网络连接。)"
392
393 #. type: Plain text
394 #: configure.adoc:190
395 msgid ""
396 "The configuration above implicitly creates one volume in the resource, "
397 "numbered zero (`0`). For multiple volumes in one resource, modify the syntax"
398 " as follows (assuming that the same lower-level storage block devices are "
399 "used on both nodes):"
400 msgstr ""
401 "上面的配置隐式地在资源中创建一个卷,编号为0( `0` )。对于一个资源中的多个卷,请按如下所示修改语法(假设两个节点上使用相同的底层存储块设备):"
402
403 #. type: Block title
404 #: configure.adoc:191
405 #, no-wrap
406 msgid "Multi-volume DRBD resource configuration (`/etc/drbd.d/r0.res`)"
407 msgstr "多卷DRBD资源配置( `/etc/drbd.d/rc0.res` )"
408
409 #. type: delimited block -
410 #: configure.adoc:211
411 #, no-wrap
412 msgid ""
413 "resource r0 {\n"
414 " volume 0 {\n"
415 " device /dev/drbd1;\n"
416 " disk /dev/sda7;\n"
417 " meta-disk internal;\n"
418 " }\n"
419 " volume 1 {\n"
420 " device /dev/drbd2;\n"
421 " disk /dev/sda8;\n"
422 " meta-disk internal;\n"
423 " }\n"
424 " on alice {\n"
425 " address 10.1.1.31:7789;\n"
426 " }\n"
427 " on bob {\n"
428 " address 10.1.1.32:7789;\n"
429 " }\n"
430 "}\n"
431 msgstr ""
432 "resource r0 {\n"
433 " volume 0 {\n"
434 " device /dev/drbd1;\n"
435 " disk /dev/sda7;\n"
436 " meta-disk internal;\n"
437 " }\n"
438 " volume 1 {\n"
439 " device /dev/drbd2;\n"
440 " disk /dev/sda8;\n"
441 " meta-disk internal;\n"
442 " }\n"
443 " on alice {\n"
444 " address 10.1.1.31:7789;\n"
445 " }\n"
446 " on bob {\n"
447 " address 10.1.1.32:7789;\n"
448 " }\n"
449 "}\n"
450
451 #. type: Plain text
452 #: configure.adoc:215
453 msgid ""
454 "Volumes may also be added to existing resources on the fly. For an example "
455 "see <<s-lvm-add-pv>>."
456 msgstr "卷也可以动态添加到现有资源中。有关示例,请参见<<s-lvm-add-pv>>。"
457
458 #. type: Title =====
459 #: configure.adoc:217
460 #, no-wrap
461 msgid "The `global` section"
462 msgstr " `global` 部分"
463
464 #. type: Plain text
465 #: configure.adoc:224
466 msgid ""
467 "This section is allowed only once in the configuration. It is normally in "
468 "the `/etc/drbd.d/global_common.conf` file. In a single-file configuration, "
469 "it should go to the very top of the configuration file. Of the few options "
470 "available in this section, only one is of relevance to most users:"
471 msgstr ""
472 "此部分在配置中只允许使用一次。它通常位于 `/etc/drbd.d/global_common.conf` 文件中。在单个文件配置中,它应该位于配置文件的最顶端。在本节提供的少数选项中,只有一个与大多数用户相关:"
473
474 #. type: Block title
475 #: configure.adoc:226
476 #, no-wrap
477 msgid "`usage-count`"
478 msgstr "`usage-count`"
479
480 #. type: Plain text
481 #: configure.adoc:232
482 msgid ""
483 "The DRBD project keeps statistics about the usage of various DRBD versions. "
484 "This is done by contacting an HTTP server every time a new DRBD version is "
485 "installed on a system. This can be disabled by setting `usage-count no;`. "
486 "The default is `usage-count ask;` which will prompt you every time you "
487 "upgrade DRBD."
488 msgstr ""
489 "DRBD项目保存关于各种DRBD版本使用情况的统计信息。这是通过每次在系统上安装新的DRBD版本时联系官方HTTP服务器来完成的。这可以通过设置 `usage"
490 " count no;` 禁用。默认值是 `usage count ask;` ,每次升级DRBD时都会提示您。"
491
492 #. type: Plain text
493 #: configure.adoc:235
494 msgid ""
495 "DRBD's usage statistics are, of course, publicly available: see "
496 "http://usage.drbd.org."
497 msgstr "当然,DRBD的使用统计数据是公开的:参见"
498 "http://usage.DRBD.org。"
499
500 #. type: Title =====
501 #: configure.adoc:238
502 #, no-wrap
503 msgid "The `common` section"
504 msgstr " `common` 部分"
505
506 #. type: Plain text
507 #: configure.adoc:244
508 msgid ""
509 "This section provides a shorthand method to define configuration settings "
510 "inherited by every resource. It is normally found in "
511 "`/etc/drbd.d/global_common.conf`. You may define any option you can also "
512 "define on a per-resource basis."
513 msgstr ""
514 "本节提供了一个速记方法来定义每个资源继承的配置设置。它通常位于 `/etc/drbd.d/global_common.conf` 。您可以定义任何选项,也可以基于每个资源定义。"
515
516 #. type: Plain text
517 #: configure.adoc:248
518 msgid ""
519 "Including a `common` section is not strictly required, but strongly "
520 "recommended if you are using more than one resource. Otherwise, the "
521 "configuration quickly becomes convoluted by repeatedly-used options."
522 msgstr "严格来说,不需要包含 `common` 部分,但如果您使用多个资源,则强烈建议您这样做。否则,重复使用的选项会使配置很快变得复杂。"
523
524 #. type: Plain text
525 #: configure.adoc:254
526 msgid ""
527 "In the example above, we included `net { protocol C; }` in the `common` "
528 "section, so every resource configured (including `r0`) inherits this option"
529 " unless it has another `protocol` option configured explicitly. For other "
530 "synchronization protocols available, see <<s-replication-protocols>>."
531 msgstr ""
532 "在上面的示例中,我们在 `common` 部分中包含了 `net {protocol "
533 "C; }` ”,因此每个配置的资源(包括 `r0` )都继承此选项,除非它显式配置了另一个 `protocol` 选项。有关可用的其他同步协议,请参见<<s-replication-"
534 "protocols>>。"
535
536 #. type: Title =====
537 #: configure.adoc:256
538 #, no-wrap
539 msgid "The `resource` sections"
540 msgstr " `resource` 部分"
541
542 #. type: Plain text
543 #: configure.adoc:264
544 msgid ""
545 "A per-resource configuration file is usually named "
546 "`/etc/drbd.d/__resource__.res`. Any DRBD resource you define must be named "
547 "by specifying a resource name in the configuration. The convention is to use"
548 " only letters, digits, and the underscore; while it is technically possible "
549 "to use other characters as well, you won't like the result if you ever "
550 "happen stumble to need the more specific `__peer__@__resource__/__volume__` "
551 "syntax."
552 msgstr ""
553 "每个资源配置文件通常命名为 `/etc/drbd.d/__resource__.res` "
554 "您定义的任何DRBD资源都必须通过在配置中指定资源名称来命名。惯例是只使用字母、数字和下划线;虽然在技术上也可以使用其他字符,"
555 "但如果碰巧例如 `__peer__@__resource__/__volume__` 格式的命名时,可能会让您困惑不已。"
556
557 #. type: Plain text
558 #: configure.adoc:269
559 msgid ""
560 "Every resource configuration must also have at least two `on _host_` sub-"
561 "sections, one for every cluster node. All other configuration settings are "
562 "either inherited from the `common` section (if it exists), or derived from "
563 "DRBD's default settings."
564 msgstr ""
565 "每个资源配置还必须至少有两个 `on _host_` 子字节,每个群集节点一个。所有其他配置设置要么继承自 `common` 部分(如果存在),要么派生自DRBD的默认设置。"
566
567 #. type: Plain text
568 #: configure.adoc:273
569 msgid ""
570 "In addition, options with equal values on all hosts can be specified "
571 "directly in the `resource` section. Thus, we can further condense our "
572 "example configuration as follows:"
573 msgstr "此外,可以在 `resource` 部分直接指定在所有主机上具有相同值的选项。因此,我们可以进一步压缩示例配置如下:"
574
575 #. type: delimited block -
576 #: configure.adoc:286
577 #, no-wrap
578 msgid ""
579 "resource r0 {\n"
580 " device /dev/drbd1;\n"
581 " disk /dev/sda7;\n"
582 " meta-disk internal;\n"
583 " on alice {\n"
584 " address 10.1.1.31:7789;\n"
585 " }\n"
586 " on bob {\n"
587 " address 10.1.1.32:7789;\n"
588 " }\n"
589 "}\n"
590 msgstr ""
591 "resource r0 {\n"
592 " device /dev/drbd1;\n"
593 " disk /dev/sda7;\n"
594 " meta-disk internal;\n"
595 " on alice {\n"
596 " address 10.1.1.31:7789;\n"
597 " }\n"
598 " on bob {\n"
599 " address 10.1.1.32:7789;\n"
600 " }\n"
601 "}\n"
602
603 #. type: Title ====
604 #: configure.adoc:290
605 #, no-wrap
606 msgid "Defining network connections"
607 msgstr "定义网络连接"
608
609 #. type: Plain text
610 #: configure.adoc:295
611 msgid ""
612 "Currently the communication links in DRBD 9 must build a full mesh, i.e. in "
613 "every resource every node must have a direct connection to every other node "
614 "(excluding itself, of course)."
615 msgstr "目前,DRBD 9中的通信链路必须建立一个完整的网格,即在每个资源中,每个节点都必须与每个其他节点(当然,不包括自身)有直接连接。"
616
617 #. type: Plain text
618 #: configure.adoc:298
619 msgid ""
620 "For the simple case of two hosts `drbdadm` will insert the (single) network "
621 "connection by itself, for ease of use and backwards compatibility."
622 msgstr "对于两台主机的简单情况, `drbdadm` 将自行插入(单个)网络连接,以便于使用和向后兼容。"
623
624 #. type: Plain text
625 #: configure.adoc:303
626 msgid ""
627 "The net effect of this is a quadratic number of network connections over "
628 "hosts. For the \"traditional\" two nodes one connection is needed; for three"
629 " hosts there are three node pairs; for four, six pairs; 5 hosts: 10 "
630 "connections, and so on. For (the current) maximum of 16 nodes there'll be "
631 "120 host pairs to connect."
632 msgstr ""
633 "其净效果是主机上网络连接的二次方数量。对于\"传统\"的两个节点,需要一个连接;"
634 "对于三个主机,有三个节点对;对于四个主机, 有六个节点对;"
635 "对于五个主机,有十个连接,依此类推。对于(当前的)最多16个节点,将有120个主机对需要连接。"
636
637 #. type: Block title
638 #: configure.adoc:305
639 #, no-wrap
640 msgid "Number of connections for _N_ hosts"
641 msgstr "_N_ 个主机的连接数"
642
643 #. type: Target for macro image
644 #: configure.adoc:306
645 #, no-wrap
646 msgid "images/connection-mesh.svg"
647 msgstr "images/connection-mesh.svg"
648
649 #. type: Plain text
650 #: configure.adoc:310
651 msgid "An example configuration file for three hosts would be this:"
652 msgstr "三台主机的配置文件示例如下:"
653
654 #. type: delimited block -
655 #: configure.adoc:332
656 #, no-wrap
657 msgid ""
658 "resource r0 {\n"
659 " device /dev/drbd1;\n"
660 " disk /dev/sda7;\n"
661 " meta-disk internal;\n"
662 " on alice {\n"
663 " address 10.1.1.31:7000;\n"
664 " node-id 0;\n"
665 " }\n"
666 " on bob {\n"
667 " address 10.1.1.32:7000;\n"
668 " node-id 1;\n"
669 " }\n"
670 " on charlie {\n"
671 " address 10.1.1.33:7000;\n"
672 " node-id 2;\n"
673 " }\n"
674 " connection-mesh {\n"
675 " hosts alice bob charlie;\n"
676 " }\n"
677 "}\n"
678 msgstr ""
679 "resource r0 {\n"
680 " device /dev/drbd1;\n"
681 " disk /dev/sda7;\n"
682 " meta-disk internal;\n"
683 " on alice {\n"
684 " address 10.1.1.31:7000;\n"
685 " node-id 0;\n"
686 " }\n"
687 " on bob {\n"
688 " address 10.1.1.32:7000;\n"
689 " node-id 1;\n"
690 " }\n"
691 " on charlie {\n"
692 " address 10.1.1.33:7000;\n"
693 " node-id 2;\n"
694 " }\n"
695 " connection-mesh {\n"
696 " hosts alice bob charlie;\n"
697 " }\n"
698 "}\n"
699
700 #. type: Plain text
701 #: configure.adoc:339
702 msgid ""
703 "If you have got enough network cards in your servers, you can create direct "
704 "cross-over links between server pairs. A single four-port ethernet card "
705 "allows to have a single management interface, and to connect 3 other "
706 "servers, to get a full mesh for 4 cluster nodes."
707 msgstr ""
708 "如果服务器中有足够的网卡,则可以在服务器对之间创建直接交叉链接。一个四端口以太网卡允许有一个单一的管理接口,并连接3个其他服务器,以获得4个群集节点的完整网格。"
709
710 #. type: Plain text
711 #: configure.adoc:341
712 msgid ""
713 "In this case you can specify a different IP address to use the direct link:"
714 msgstr "在这种情况下,可以指定其他节点的IP地址以使用直接链接:"
715
716 #. type: delimited block -
717 #: configure.adoc:358
718 #, no-wrap
719 msgid ""
720 "resource r0 {\n"
721 " ...\n"
722 " connection {\n"
723 " host alice address 10.1.2.1:7010;\n"
724 " host bob address 10.1.2.2:7001;\n"
725 " }\n"
726 " connection {\n"
727 " host alice address 10.1.3.1:7020;\n"
728 " host charlie address 10.1.3.2:7002;\n"
729 " }\n"
730 " connection {\n"
731 " host bob address 10.1.4.1:7021;\n"
732 " host charlie address 10.1.4.2:7012;\n"
733 " }\n"
734 "}\n"
735 msgstr ""
736 "resource r0 {\n"
737 " ...\n"
738 " connection {\n"
739 " host alice address 10.1.2.1:7010;\n"
740 " host bob address 10.1.2.2:7001;\n"
741 " }\n"
742 " connection {\n"
743 " host alice address 10.1.3.1:7020;\n"
744 " host charlie address 10.1.3.2:7002;\n"
745 " }\n"
746 " connection {\n"
747 " host bob address 10.1.4.1:7021;\n"
748 " host charlie address 10.1.4.2:7012;\n"
749 " }\n"
750 "}\n"
751
752 #. type: Plain text
753 #: configure.adoc:362
754 msgid ""
755 "For easier maintenance and debugging it's recommend to have different ports "
756 "for each endpoint - looking at a `tcpdump` trace the packets can be "
757 "associated easily."
758 msgstr "为了便于维护和调试,建议为每个端点使用不同的端口 - 查看 `tcpdump` 跟踪数据包的结果,从而很容易地将其关联起来。"
759
760 #. type: Plain text
761 #: configure.adoc:365
762 msgid ""
763 "The examples below will still be using two servers only; please see "
764 "<<s-4node-example>> for a four-node example."
765 msgstr "下面的示例仍将仅使用两台服务器;请参见<<s-4node-example>>了解四节点示例。"
766
767 #. type: Title ====
768 #: configure.adoc:368
769 #, no-wrap
770 msgid "Configuring transport implementations"
771 msgstr "配置传输实现"
772
773 #. type: Plain text
774 #: configure.adoc:371
775 msgid ""
776 "DRBD supports multiple network transports. A transport implementation can be"
777 " configured for each connection of a resource."
778 msgstr "DRBD支持多种网络传输。可以为资源的每个连接配置传输实现。"
779
780 #. type: Title =====
781 #: configure.adoc:373
782 #, no-wrap
783 msgid "TCP/IP"
784 msgstr "TCP/IP协议"
785
786 #. type: delimited block -
787 #: configure.adoc:381
788 #, no-wrap
789 msgid ""
790 "resource <resource> {\n"
791 " net {\n"
792 " transport \"tcp\";\n"
793 " }\n"
794 " ...\n"
795 "}\n"
796 msgstr ""
797 "resource <resource> {\n"
798 " net {\n"
799 " transport \"tcp\";\n"
800 " }\n"
801 " ...\n"
802 "}\n"
803
804 #. type: Plain text
805 #: configure.adoc:384
806 msgid ""
807 "`tcp` is the default transport. I.e. each connection that lacks a transport "
808 "option uses the `tcp` transport."
809 msgstr "`tcp` 是默认传输协议。即:每个缺少配置传输选项的连接默认使用 `tcp` 传输。"
810
811 #. type: Plain text
812 #: configure.adoc:387
813 msgid ""
814 "The `tcp` transport can be configured with the net options: `sndbuf-size`, "
815 "`rcvbuf-size`, `connect-int`, `sock-check-timeo`, `ping-timeo`, `timeout`."
816 msgstr ""
817 "`tcp` 传输可以使用以下网络选项进行配置: `sndbuf size` 、`rcvbuf size` 、`connect int` 、 `sock check "
818 "timeo` 、`ping timeo` 、`timeout` 。"
819
820 #. type: Title =====
821 #: configure.adoc:389
822 #, no-wrap
823 msgid "RDMA"
824 msgstr "RDMA"
825
826 #. type: delimited block -
827 #: configure.adoc:397
828 #, no-wrap
829 msgid ""
830 "resource <resource> {\n"
831 " net {\n"
832 " transport \"rdma\";\n"
833 " }\n"
834 " ...\n"
835 "}\n"
836 msgstr ""
837 "resource <resource> {\n"
838 " net {\n"
839 " transport \"rdma\";\n"
840 " }\n"
841 " ...\n"
842 "}\n"
843
844 #. type: Plain text
845 #: configure.adoc:400
846 msgid ""
847 "The `rdma` transport can be configured with the net options: `sndbuf-size`, "
848 "`rcvbuf-size`, `max_buffers`, `connect-int`, `sock-check-timeo`, `ping-"
849 "timeo`, `timeout`."
850 msgstr ""
851 "`rdma` 传输可以使用以下网络选项配置:`sndbuf size` 、`rcvbuf size` 、`max_buffers` 、`connect "
852 "int` 、`sock check timeo` 、`ping timeo` 、`timeout` 。"
853
854 #. type: Plain text
855 #: configure.adoc:404
856 msgid ""
857 "The `rdma` transport is a zero-copy-receive transport. One implication of "
858 "that is that the `max_buffers` configuration options must be set to a value "
859 "big enough to hold all `rcvbuf-size`."
860 msgstr "`rdma` 传输是零拷贝接收传输。这意味着 `max_buffers` 配置选项必须设置为足以容纳所有 `rcvbuf size` 的值。"
861
862 #. type: Plain text
863 #: configure.adoc:408
864 msgid ""
865 "`rcvbuf-size` is configured in bytes, while `max_buffers` is configured in "
866 "pages. For optimal performance `max_buffers` should be big enough to hold "
867 "all of `rcvbuf-size` and the amount of data that might be in flight to the "
868 "backend device at any point in time."
869 msgstr ""
870 "`rcvbuf "
871 "size` 以字节为单位配置,`max_buffers` 以页为单位配置。为了获得最佳性能,`max_buffers` 应该足够大,可以容纳所有 `rcvbuf "
872 "size` 和在任何时间点可能传输到后端设备的数据量。"
873
874 #. type: Plain text
875 #: configure.adoc:412
876 msgid ""
877 "In case you are using InfiniBand HCAs with the `rdma` transport, you need to"
878 " configure IPoIB as well. The IP address is not used for data transfer, but "
879 "it is used to find the right adapters and ports while establishing the "
880 "connection."
881 msgstr ""
882 "如果您将InfiniBand "
883 "HCAs与 `rdma` 传输一起使用,则还需要配置IPoIB。IP地址不用于数据传输,但用于在建立连接时找到正确的适配器和端口。"
884
885 #. type: Plain text
886 #: configure.adoc:416
887 msgid ""
888 "The configuration options `sndbuf-size`, `rcvbuf-size` are only considered "
889 "at the time a connection is established. I.e. you can change them while the "
890 "connection is established. They will take effect in the moment the "
891 "connection is re-established."
892 msgstr ""
893 "只有在建立连接时才考虑配置选项 `sndbuf size` 、`rcvbuf size` 。即: 如果你在连接已建立时更改它们。它们将在重新建立连接时生效。"
894
895 #. type: Title =====
896 #: configure.adoc:418
897 #, no-wrap
898 msgid "Performance considerations for RDMA"
899 msgstr "RDMA的性能考虑"
900
901 #. type: Plain text
902 #: configure.adoc:424
903 msgid ""
904 "By looking at the pseudo file "
905 "_/sys/kernel/debug/drbd/<resource>/connections/<peer>/transport_, the counts"
906 " of available receive descriptors (rx_desc) and transmit descriptors "
907 "(tx_desc) can be monitored. In case one of the descriptor kinds becomes "
908 "depleted you should increase `sndbuf-size` or `rcvbuf-size`."
909 msgstr ""
910 "通过查看pseudo文件 _/sys/kernel/debug/drbd/<resource>/connections/<peer>/transport_ ,可以监视可用接收描述符(rx_desc)和传输描述符(tx_desc)的计数。"
911 "如果某个描述符类型耗尽,则应增加 `sndbuf"
912 " size` ”或 `rcvbuf size` 。"
913
914 #. type: Title ====
915 #: configure.adoc:426
916 #, no-wrap
917 msgid "Enabling your resource for the first time"
918 msgstr "首次启用资源"
919
920 #. type: Plain text
921 #: configure.adoc:430
922 msgid ""
923 "After you have completed initial resource configuration as outlined in the "
924 "previous sections, you can bring up your resource."
925 msgstr "在您完成了前面章节中概述的初始资源配置之后,"
926 "您可以启用您定义的资源。"
927
928 #. type: Plain text
929 #: configure.adoc:432
930 msgid "Each of the following steps must be completed on both nodes."
931 msgstr "必须在两个节点上完成以下每个步骤。"
932
933 #. type: Plain text
934 #: configure.adoc:434
935 msgid ""
936 "Please note that with our example config snippets (`resource r0 { ... }`), "
937 "`<resource>` would be `r0`."
938 msgstr "请注意,使用我们的示例配置片段( `resource r0 { ... }` )时,"
939 " `<resource>` 将是 `r0` 。 "
940
941 #. type: Block title
942 #: configure.adoc:435
943 #, no-wrap
944 msgid "Create device metadata"
945 msgstr "创建设备元数据"
946
947 #. type: Plain text
948 #: configure.adoc:438
949 msgid ""
950 "This step must be completed only on initial device creation. It initializes "
951 "DRBD's metadata:"
952 msgstr "此步骤只能在初始设备创建时完成。"
953 "它初始化DRBD的元数据:"
954
955 #. type: delimited block -
956 #: configure.adoc:446
957 #, no-wrap
958 msgid ""
959 "# drbdadm create-md <resource>\n"
960 "v09 Magic number not found\n"
961 "Writing meta data...\n"
962 "initialising activity log\n"
963 "NOT initializing bitmap\n"
964 "New drbd meta data block sucessfully created.\n"
965 msgstr ""
966 "# drbdadm create-md <resource>\n"
967 "v09 Magic number not found\n"
968 "Writing meta data...\n"
969 "initialising activity log\n"
970 "NOT initializing bitmap\n"
971 "New drbd meta data block sucessfully created.\n"
972
973 #. type: Plain text
974 #: configure.adoc:453
975 msgid ""
976 "Please note that the number of bitmap slots that are allocated in the meta-"
977 "data depends on the number of hosts for this resource; per default the hosts"
978 " in the resource configuration are counted. If all hosts are specified "
979 "_before_ creating the meta-data, this will \"just work\"; adding bitmap "
980 "slots for further nodes is possible later, but incurs some manual work."
981 msgstr ""
982 "请注意,元数据中分配的位图插槽(bitmap slots)数量取决于此资源的主机数量;"
983 "默认情况下,资源配置中的主机将被计算在内。"
984 "如果在创建元数据 _之前_ 指定了所有主机,这将 \"正常工作\";"
985 "以后可以为更多节点添加位图插槽(bitmap slots),"
986 "但需要一些手动操作。"
987
988 #. type: Block title
989 #: configure.adoc:455
990 #, no-wrap
991 msgid "Enable the resource"
992 msgstr "启用资源"
993
994 #. type: Plain text
995 #: configure.adoc:459
996 msgid ""
997 "This step associates the resource with its backing device (or devices, in "
998 "case of a multi-volume resource), sets replication parameters, and connects "
999 "the resource to its peer:"
1000 msgstr "此步骤将资源与其备份设备"
1001 "(如果是多卷资源,则为多个设备)关联,设置复制参数,并将资源连接到其对等方:"
1002
1003 #. type: delimited block -
1004 #: configure.adoc:461 configure.adoc:612
1005 #, no-wrap
1006 msgid "# drbdadm up <resource>\n"
1007 msgstr "# drbdadm up <resource>\n"
1008
1009 #. type: Block title
1010 #: configure.adoc:463
1011 #, no-wrap
1012 msgid "Observe the status via `drbdadm status`"
1013 msgstr "运行 `drbdadm status` 观察状态变化"
1014
1015 #. type: Plain text
1016 #: configure.adoc:466
1017 msgid ""
1018 "``drbdsetup``'s status output should now contain information similar to the "
1019 "following:"
1020 msgstr ""
1021 "``drbdsetup`` 的状态输出现在应该包含类似于以下内容的信息:"
1022
1023 #. type: delimited block -
1024 #: configure.adoc:473
1025 #, no-wrap
1026 msgid ""
1027 "# drbdadm status r0\n"
1028 "r0 role:Secondary\n"
1029 " disk:Inconsistent\n"
1030 " bob role:Secondary\n"
1031 " disk:Inconsistent\n"
1032 msgstr ""
1033 "# drbdadm status r0\n"
1034 "r0 role:Secondary\n"
1035 " disk:Inconsistent\n"
1036 " bob role:Secondary\n"
1037 " disk:Inconsistent\n"
1038
1039 #. type: Plain text
1040 #: configure.adoc:477
1041 msgid "The _Inconsistent/Inconsistent_ disk state is expected at this point."
1042 msgstr "此时磁盘状态应该是 _Inconsistent/Inconsistent_ 。"
1043
1044 #. type: Plain text
1045 #: configure.adoc:482
1046 msgid ""
1047 "By now, DRBD has successfully allocated both disk and network resources and "
1048 "is ready for operation. What it does not know yet is which of your nodes "
1049 "should be used as the source of the initial device synchronization."
1050 msgstr "到目前为止,DRBD已经成功地分配了磁盘和网络资源,并准备就绪。然而它还不知道应该使用哪个节点作为初始设备同步的源。"
1051
1052 #. type: Title ====
1053 #: configure.adoc:484
1054 #, no-wrap
1055 msgid "The initial device synchronization"
1056 msgstr "初始设备同步"
1057
1058 #. type: Plain text
1059 #: configure.adoc:488
1060 msgid ""
1061 "There are two more steps required for DRBD to become fully operational:"
1062 msgstr "要使DRBD完全运行,还需要两个步骤:"
1063
1064 #. type: Block title
1065 #: configure.adoc:489
1066 #, no-wrap
1067 msgid "Select an initial sync source"
1068 msgstr "选择初始同步源"
1069
1070 #. type: Plain text
1071 #: configure.adoc:496
1072 msgid ""
1073 "If you are dealing with newly-initialized, empty disks, this choice is "
1074 "entirely arbitrary. If one of your nodes already has valuable data that you "
1075 "need to preserve, however, _it is of crucial importance_ that you select "
1076 "that node as your synchronization source. If you do initial device "
1077 "synchronization in the wrong direction, you will lose that data. Exercise "
1078 "caution."
1079 msgstr ""
1080 "如果处理的是新初始化的空磁盘,则此选择完全是任意的。但是,如果您的某个节点已经有需要保留的有价值的数据,则选择该节点作为同步源至关重要。"
1081 "如果在错误的方向上执行初始设备同步,则会丢失该数据。这点要非常小心。"
1082
1083 #. type: Block title
1084 #: configure.adoc:498
1085 #, no-wrap
1086 msgid "Start the initial full synchronization"
1087 msgstr "启动初始化全量同步"
1088
1089 #. type: Plain text
1090 #: configure.adoc:502
1091 msgid ""
1092 "This step must be performed on only one node, only on initial resource "
1093 "configuration, and only on the node you selected as the synchronization "
1094 "source. To perform this step, issue this command:"
1095 msgstr "此步骤只能在一个节点上执行,只能在初始资源配置上执行,并且只能在您选择作为同步源的节点上执行。要执行此步骤,请输入以下命令:"
1096
1097 #. type: delimited block -
1098 #: configure.adoc:505
1099 #, no-wrap
1100 msgid "# drbdadm primary --force <resource>\n"
1101 msgstr "# drbdadm primary --force <resource>\n"
1102
1103 #. type: Plain text
1104 #: configure.adoc:511
1105 msgid ""
1106 "After issuing this command, the initial full synchronization will commence. "
1107 "You will be able to monitor its progress via `drbdadm status`. It may take "
1108 "some time depending on the size of the device."
1109 msgstr "发出此命令后,将启动初始化全量同步。您将能够通过 `drbdadm status` 监视其进度。根据设备的大小,可能需要一些时间。"
1110
1111 #. type: Plain text
1112 #: configure.adoc:518
1113 msgid ""
1114 "By now, your DRBD device is fully operational, even before the initial "
1115 "synchronization has completed (albeit with slightly reduced performance). If"
1116 " you started with empty disks you may now already create a filesystem on the"
1117 " device, use it as a raw block device, mount it, and perform any other "
1118 "operation you would with an accessible block device."
1119 msgstr ""
1120 "现在,您的DRBD设备已经完全运行,甚至在初始化同步完成之前(尽管性能略有降低)。如果从空磁盘开始,现在可能已经在设备上创建了一个文件系统,将其用作原始块设备,挂载它,并对可访问的块设备执行任何其他操作。"
1121
1122 #. type: Plain text
1123 #: configure.adoc:521
1124 msgid ""
1125 "You will now probably want to continue with <<p-work>>, which describes "
1126 "common administrative tasks to perform on your resource."
1127 msgstr "您现在可能需要继续执行<<p-work>>,它描述了要在资源上执行的常见管理任务。"
1128
1129 #. type: Title ====
1130 #: configure.adoc:523
1131 #, no-wrap
1132 msgid "Using truck based replication"
1133 msgstr "使用基于卡车的复制"
1134
1135 #. type: Plain text
1136 #: configure.adoc:528
1137 msgid ""
1138 "In order to preseed a remote node with data which is then to be kept "
1139 "synchronized, and to skip the initial full device synchronization, follow "
1140 "these steps."
1141 msgstr "为了向远程节点预先设定数据,然后保持同步,并跳过初始的全量设备同步,请执行以下步骤。"
1142
1143 #. type: Plain text
1144 #: configure.adoc:534
1145 msgid ""
1146 "This assumes that your local node has a configured, but disconnected DRBD "
1147 "resource in the _Primary_ role. That is to say, device configuration is "
1148 "completed, identical `drbd.conf` copies exist on both nodes, and you have "
1149 "issued the commands for <<s-initial-full-sync,initial resource promotion>> "
1150 "on your local node"
1151 msgstr ""
1152 "这假设您的本地节点在主角色中有一个已配置好的但断开连接的DRBD资源。也就是说,设备配置是已经就绪的,两个节点上都存在相同的 `drbd.conf` 副本,并且您已经在本地节点上发出了用于<<s-initial-"
1153 "full-sync,initial resource promotion>>的命令"
1154
1155 #. type: Plain text
1156 #: configure.adoc:535
1157 msgid "but the remote node is not connected yet."
1158 msgstr "但远程节点尚未连接。"
1159
1160 #. type: Plain text
1161 #: configure.adoc:538
1162 msgid "On the local node, issue the following command:"
1163 msgstr "在本地节点上,输入以下命令:"
1164
1165 #. type: delimited block -
1166 #: configure.adoc:542
1167 #, no-wrap
1168 msgid "# drbdadm new-current-uuid --clear-bitmap <resource>/<volume>\n"
1169 msgstr "# drbdadm new-current-uuid --clear-bitmap <resource>/<volume>\n"
1170
1171 #. type: Plain text
1172 #: configure.adoc:544
1173 msgid "or"
1174 msgstr "或"
1175
1176 #. type: delimited block -
1177 #: configure.adoc:546
1178 #, no-wrap
1179 msgid "# drbdsetup new-current-uuid --clear-bitmap <minor>\n"
1180 msgstr "# drbdsetup new-current-uuid --clear-bitmap <minor>\n"
1181
1182 #. type: Plain text
1183 #: configure.adoc:557
1184 msgid ""
1185 "Create a consistent, verbatim copy of the resource's data _and its "
1186 "metadata_. You may do so, for example, by removing a hot-swappable drive "
1187 "from a RAID-1 mirror. You would, of course, replace it with a fresh drive, "
1188 "and rebuild the RAID set, to ensure continued redundancy. But the removed "
1189 "drive is a verbatim copy that can now be shipped off site. If your local "
1190 "block device supports snapshot copies (such as when using DRBD on top of "
1191 "LVM), you may also create a bitwise copy of that snapshot using `dd`."
1192 msgstr ""
1193 "创建资源数据及其元数据的一致的、逐字的复本。您可以这样做,例如,从RAID-1镜像中删除热插拔驱动器。当然,您可以用新的驱动器替换它,并重建RAID集,以确保持续的冗余。"
1194 "但删除的驱动器是逐字复制的,现在可以运离现场。如果本地块设备支持快照副本(例如在LVM上使用DRBD),也可以使用 `dd` 创建该快照的逐位副本。"
1195
1196 #. type: Plain text
1197 #: configure.adoc:560
1198 msgid "On the local node, issue:"
1199 msgstr "在本地节点上,输入:"
1200
1201 #. type: delimited block -
1202 #: configure.adoc:564
1203 #, no-wrap
1204 msgid "# drbdadm new-current-uuid <resource>\n"
1205 msgstr "# drbdadm new-current-uuid <resource>\n"
1206
1207 #. type: Plain text
1208 #: configure.adoc:566
1209 msgid "or the matching `drbdsetup` command."
1210 msgstr "或者匹配的 `drbdsetup` 命令。"
1211
1212 #. type: Plain text
1213 #: configure.adoc:569
1214 msgid ""
1215 "Note the absence of the `--clear-bitmap` option in this second invocation."
1216 msgstr "注意,在第二次调用中没有 `--clear bitmap` 选项。"
1217
1218 #. type: Plain text
1219 #: configure.adoc:572
1220 msgid "Physically transport the copies to the remote peer location."
1221 msgstr "将副本物理传输到远程对等位置。"
1222
1223 #. type: Plain text
1224 #: configure.adoc:578
1225 msgid ""
1226 "Add the copies to the remote node. This may again be a matter of plugging a "
1227 "physical disk, or grafting a bitwise copy of your shipped data onto existing"
1228 " storage on the remote node. Be sure to restore or copy not only your "
1229 "replicated data, but also the associated DRBD metadata. If you fail to do "
1230 "so, the disk shipping process is moot."
1231 msgstr ""
1232 "将副本添加到远程节点。这可能再次是插入物理磁盘的问题,或者将已传送数据的按位副本移植到远程节点上的现有存储上。"
1233 "请确保不仅还原或复制了复制的数据副本,而且还原或复制了与之关联的DRBD元数据。如果不这样做,磁盘传送过程就没有意义。"
1234
1235 #. type: Plain text
1236 #: configure.adoc:582
1237 msgid ""
1238 "On the new node we need to fix the node ID in the meta data, and exchange "
1239 "the peer-node info for the two nodes. Please see the following lines as "
1240 "example for changing node id from 2 to 1 on a resource `r0` volume `0`."
1241 msgstr ""
1242 "在新节点上,我们需要修复元数据中的节点ID,并为这两个节点交换对等节点信息。请参阅以下几行,作为将资源 `r0` 卷 `0` 上的节点id从2更改为1的示例。"
1243
1244 #. type: Plain text
1245 #: configure.adoc:586
1246 msgid "This must be done while the volume is not in use."
1247 msgstr "必须在卷未使用时执行此操作。"
1248
1249 #. type: delimited block -
1250 #: configure.adoc:591
1251 #, no-wrap
1252 msgid ""
1253 "V=r0/0\n"
1254 "NODE_FROM=2\n"
1255 "NODE_TO=1\n"
1256 msgstr ""
1257 "V=r0/0\n"
1258 "NODE_FROM=2\n"
1259 "NODE_TO=1\n"
1260
1261 #. type: delimited block -
1262 #: configure.adoc:598
1263 #, no-wrap
1264 msgid ""
1265 "drbdadm -- --force dump-md $V > /tmp/md_orig.txt\n"
1266 "sed -e \"s/node-id $NODE_FROM/node-id $NODE_TO/\" \\\n"
1267 "\t-e \"s/^peer.$NODE_FROM. /peer-NEW /\" \\\n"
1268 "\t-e \"s/^peer.$NODE_TO. /peer[$NODE_FROM] /\" \\\n"
1269 "\t-e \"s/^peer-NEW /peer[$NODE_TO] /\" \\\n"
1270 "\t< /tmp/md_orig.txt > /tmp/md.txt\n"
1271 msgstr ""
1272 "drbdadm -- --force dump-md $V > /tmp/md_orig.txt\n"
1273 "sed -e \"s/node-id $NODE_FROM/node-id $NODE_TO/\" \\\n"
1274 "\t-e \"s/^peer.$NODE_FROM. /peer-NEW /\" \\\n"
1275 "\t-e \"s/^peer.$NODE_TO. /peer[$NODE_FROM] /\" \\\n"
1276 "\t-e \"s/^peer-NEW /peer[$NODE_TO] /\" \\\n"
1277 "\t< /tmp/md_orig.txt > /tmp/md.txt\n"
1278
1279 #. type: delimited block -
1280 #: configure.adoc:600
1281 #, no-wrap
1282 msgid ""
1283 "drbdmeta --force $(drbdadm sh-minor $V) v09 $(drbdadm sh-ll-dev $V) internal"
1284 " restore-md /tmp/md.txt\n"
1285 msgstr ""
1286 "drbdmeta --force $(drbdadm sh-minor $V) v09 $(drbdadm sh-ll-dev $V) internal"
1287 " restore-md /tmp/md.txt\n"
1288
1289 #. type: Block title
1290 #: configure.adoc:602
1291 #, no-wrap
1292 msgid "NOTE"
1293 msgstr "NOTE"
1294
1295 #. type: Plain text
1296 #: configure.adoc:605
1297 msgid ""
1298 "`drbdmeta` before 8.9.7 cannot cope with out-of-order `peer` sections; "
1299 "you'll need to exchange the blocks via an editor."
1300 msgstr "8.9.7之前的 `drbdmeta` 无法处理无序的 `peer` 部分;您需要通过编辑器手动更换配置部分。"
1301
1302 #. type: Plain text
1303 #: configure.adoc:609
1304 msgid "Bring up the resource on the remote node:"
1305 msgstr "在远程节点上启动该资源:"
1306
1307 #. type: Plain text
1308 #: configure.adoc:618
1309 msgid ""
1310 "After the two peers connect, they will not initiate a full device "
1311 "synchronization. Instead, the automatic synchronization that now commences "
1312 "only covers those blocks that changed since the invocation of "
1313 "`drbdadm{nbsp}--clear-bitmap{nbsp}new-current-uuid`."
1314 msgstr ""
1315 "两个节点连接后,它们将不会启动完整的设备同步。相反,现在开始的自动同步只覆盖自调用 `drbdadm{nbsp}--clear "
1316 "bitmap{nbsp}new-current-uuid` 命令后更改的块。"
1317
1318 #. type: Plain text
1319 #: configure.adoc:624
1320 msgid ""
1321 "Even if there were _no_ changes whatsoever since then, there may still be a "
1322 "brief synchronization period due to areas covered by the <<s-activity-"
1323 "log,Activity Log>> being rolled back on the new Secondary. This may be "
1324 "mitigated by the use of <<p-checksum-sync,checksum-based synchronization>>."
1325 msgstr ""
1326 "即使此后 _没有_ 任何更改,由于在新的副节点上有<<s-activity-log,Activity "
1327 "Log>>中提到的因回滚导致的区域覆盖问题,仍可能有一个短暂的同步周期。这可以通过使用<<p-checksum-sync,checksum-based "
1328 "synchronization>>来降低影响。"
1329
1330 #. type: Plain text
1331 #: configure.adoc:628
1332 msgid ""
1333 "You may use this same procedure regardless of whether the resource is a "
1334 "regular DRBD resource, or a stacked resource. For stacked resources, simply "
1335 "add the `-S` or `--stacked` option to `drbdadm`."
1336 msgstr ""
1337 "无论资源是常规DRBD资源还是堆栈资源,步骤都是相同的。对于堆叠资源,只需将 `-S` 或 `--stacked` 选项添加到 `drbdadm` 。"
1338
1339 #. type: Title ====
1340 #: configure.adoc:631
1341 #, no-wrap
1342 msgid "Example configuration for four nodes"
1343 msgstr "四个节点的示例配置"
1344
1345 #. type: Plain text
1346 #: configure.adoc:634
1347 msgid "Here is an example for a four-node cluster."
1348 msgstr "下面是一个四节点集群的示例。"
1349
1350 #. type: delimited block -
1351 #: configure.adoc:641
1352 #, no-wrap
1353 msgid ""
1354 "resource r0 {\n"
1355 " device /dev/drbd0;\n"
1356 " disk /dev/vg/r0;\n"
1357 " meta-disk internal;\n"
1358 msgstr ""
1359 "resource r0 {\n"
1360 " device /dev/drbd0;\n"
1361 " disk /dev/vg/r0;\n"
1362 " meta-disk internal;\n"
1363
1364 #. type: delimited block -
1365 #: configure.adoc:658
1366 #, no-wrap
1367 msgid ""
1368 " on store1 {\n"
1369 " address 10.1.10.1:7100;\n"
1370 " node-id 1;\n"
1371 " }\n"
1372 " on store2 {\n"
1373 " address 10.1.10.2:7100;\n"
1374 " node-id 2;\n"
1375 " }\n"
1376 " on store3 {\n"
1377 " address 10.1.10.3:7100;\n"
1378 " node-id 3;\n"
1379 " }\n"
1380 " on store4 {\n"
1381 " address 10.1.10.4:7100;\n"
1382 " node-id 4;\n"
1383 " }\n"
1384 msgstr ""
1385 " on store1 {\n"
1386 " address 10.1.10.1:7100;\n"
1387 " node-id 1;\n"
1388 " }\n"
1389 " on store2 {\n"
1390 " address 10.1.10.2:7100;\n"
1391 " node-id 2;\n"
1392 " }\n"
1393 " on store3 {\n"
1394 " address 10.1.10.3:7100;\n"
1395 " node-id 3;\n"
1396 " }\n"
1397 " on store4 {\n"
1398 " address 10.1.10.4:7100;\n"
1399 " node-id 4;\n"
1400 " }\n"
1401
1402 #. type: delimited block -
1403 #: configure.adoc:663
1404 #, no-wrap
1405 msgid ""
1406 " connection-mesh {\n"
1407 "\thosts store1 store2 store3 store4;\n"
1408 " }\n"
1409 "}\n"
1410 msgstr ""
1411 " connection-mesh {\n"
1412 "\thosts store1 store2 store3 store4;\n"
1413 " }\n"
1414 "}\n"
1415
1416 #. type: Plain text
1417 #: configure.adoc:666
1418 msgid ""
1419 "In case you want to see the `connection-mesh` configuration expanded, try "
1420 "`drbdadm dump _<resource>_ -v`."
1421 msgstr "如果您想查看 `connection mesh` 配置的扩展,请尝试 `drbdadm dump _<resource>_ -v` 。"
1422
1423 #. type: Plain text
1424 #: configure.adoc:673
1425 msgid ""
1426 "As another example, if the four nodes have enough interfaces to provide a "
1427 "complete mesh via direct linksfootnote:[i.e. three crossover and at least one"
1428 " outgoing/management interface], you can specify the IP addresses of the "
1429 "interfaces:"
1430 msgstr ""
1431 "另一个例子是,如果四个节点有足够的接口,可以通过直接链接提供完整的网格。注意:[即,三个交叉点和至少一个传出/管理接口],可以指定接口的IP地址:"
1432
1433 #. type: delimited block -
1434 #: configure.adoc:677
1435 #, no-wrap
1436 msgid ""
1437 "resource r0 {\n"
1438 " ...\n"
1439 msgstr ""
1440 "resource r0 {\n"
1441 " ...\n"
1442
1443 #. type: delimited block -
1444 #: configure.adoc:691
1445 #, no-wrap
1446 msgid ""
1447 " # store1 has crossover links like 10.99.1x.y\n"
1448 " connection {\n"
1449 " host store1 address 10.99.12.1 port 7012;\n"
1450 " host store2 address 10.99.12.2 port 7021;\n"
1451 " }\n"
1452 " connection {\n"
1453 " host store1 address 10.99.13.1 port 7013;\n"
1454 " host store3 address 10.99.13.3 port 7031;\n"
1455 " }\n"
1456 " connection {\n"
1457 " host store1 address 10.99.14.1 port 7014;\n"
1458 " host store4 address 10.99.14.4 port 7041;\n"
1459 " }\n"
1460 msgstr ""
1461 " # store1 has crossover links like 10.99.1x.y\n"
1462 " connection {\n"
1463 " host store1 address 10.99.12.1 port 7012;\n"
1464 " host store2 address 10.99.12.2 port 7021;\n"
1465 " }\n"
1466 " connection {\n"
1467 " host store1 address 10.99.13.1 port 7013;\n"
1468 " host store3 address 10.99.13.3 port 7031;\n"
1469 " }\n"
1470 " connection {\n"
1471 " host store1 address 10.99.14.1 port 7014;\n"
1472 " host store4 address 10.99.14.4 port 7041;\n"
1473 " }\n"
1474
1475 #. type: delimited block -
1476 #: configure.adoc:701
1477 #, no-wrap
1478 msgid ""
1479 " # store2 has crossover links like 10.99.2x.y\n"
1480 " connection {\n"
1481 " host store2 address 10.99.23.2 port 7023;\n"
1482 " host store3 address 10.99.23.3 port 7032;\n"
1483 " }\n"
1484 " connection {\n"
1485 " host store2 address 10.99.24.2 port 7024;\n"
1486 " host store4 address 10.99.24.4 port 7042;\n"
1487 " }\n"
1488 msgstr ""
1489 " # store2 has crossover links like 10.99.2x.y\n"
1490 " connection {\n"
1491 " host store2 address 10.99.23.2 port 7023;\n"
1492 " host store3 address 10.99.23.3 port 7032;\n"
1493 " }\n"
1494 " connection {\n"
1495 " host store2 address 10.99.24.2 port 7024;\n"
1496 " host store4 address 10.99.24.4 port 7042;\n"
1497 " }\n"
1498
1499 #. type: delimited block -
1500 #: configure.adoc:708
1501 #, no-wrap
1502 msgid ""
1503 " # store3 has crossover links like 10.99.3x.y\n"
1504 " connection {\n"
1505 " host store3 address 10.99.34.3 port 7034;\n"
1506 " host store4 address 10.99.34.4 port 7043;\n"
1507 " }\n"
1508 "}\n"
1509 msgstr ""
1510 " # store3 has crossover links like 10.99.3x.y\n"
1511 " connection {\n"
1512 " host store3 address 10.99.34.3 port 7034;\n"
1513 " host store4 address 10.99.34.4 port 7043;\n"
1514 " }\n"
1515 "}\n"
1516
1517 #. type: Plain text
1518 #: configure.adoc:712
1519 msgid ""
1520 "Please note the numbering scheme used for the IP addresses and ports. "
1521 "Another resource could use the same IP addresses, but ports `71__xy__`, the "
1522 "next one `72__xy__`, and so on."
1523 msgstr "请注意用于IP地址和端口的编号方案。另一个资源可以使用相同的IP地址,但端口需要命名为 `71__xy__` 和下一个端口 `72__xy__` , 等等。"