Debian Codegraph @

UG9/cn/features.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 #: features.adoc:2
21 #, no-wrap
22 msgid "DRBD Features"
23 msgstr "DRBD特征"
24
25 #. type: Plain text
26 #: features.adoc:10
27 msgid ""
28 "This chapter discusses various useful DRBD features, and gives some "
29 "background information about them. Some of these features will be important "
30 "to most users, some will only be relevant in very specific deployment "
31 "scenarios. <<p-work>> and <<ch-troubleshooting>> contain instructions on how"
32 " to enable and use these features in day-to-day operation."
33 msgstr ""
34 "本章讨论了各种有用的DRBD特性,并给出了它们的一些背景信息。这些特性中的一些对大多数用户都很重要,有些只在非常特定的部署场景中才相关。<<p-work>>和<<ch-"
35 "troubleshooting>>包含如何在日常操作中启用和使用这些功能的说明。"
36
37 #. type: Title ===
38 #: features.adoc:12
39 #, no-wrap
40 msgid "Single-primary mode"
41 msgstr "单一主(Single-primary)模式"
42
43 #. type: Plain text
44 #: features.adoc:19
45 msgid ""
46 "In single-primary mode, a resource is, at any given time, in the primary "
47 "role on only one cluster member. Since it is guaranteed that only one "
48 "cluster node manipulates the data at any moment, this mode can be used with "
49 "any conventional file system (ext3, ext4, XFS etc.)."
50 msgstr ""
51 "在单一主模式下,资源在任何给定的时间仅在一个群集成员上处于主角色。由于可以保证在任何时候只有一个集群节点操作数据,因此这种模式可以用于任何传统的文件系统(ext3、ext4、XFS等)。"
52
53 #. type: Plain text
54 #: features.adoc:22
55 msgid ""
56 "Deploying DRBD in single-primary mode is the canonical approach for High-"
57 "Availability (fail-over capable) clusters."
58 msgstr "在单一主模式下部署DRBD是高可用性(支持故障转移)集群的规范方法。"
59
60 #. type: Title ===
61 #: features.adoc:24
62 #, no-wrap
63 msgid "Dual-primary mode"
64 msgstr "双主(Dual-primary)模式"
65
66 #. type: Plain text
67 #: features.adoc:33
68 msgid ""
69 "In dual-primary mode, a resource is, at any given time, in the primary role "
70 "on two cluster nodesfootnote:[Perhaps that feature will be renamed to "
71 "\"Multi Primary\" later on, when it actually works ;)]. Since concurrent "
72 "access to the data is thus possible, this mode requires the use of a shared "
73 "cluster file system that utilizes a distributed lock manager. Examples "
74 "include <<ch-gfs,GFS>> and <<ch-ocfs2,OCFS2>>."
75 msgstr ""
76 "在双主模式下,资源在任何给定时间都处于两个群集节点上的主角色footnote:[也许该功能稍后会在实际工作时重命名为\"Multi Primary\" ;)]。由于可以并发访问数据,因此此模式需要依赖使用分布式锁管理器的共享群集文件系统。示例包括<<ch-gfs,GFS>>和<<ch-ocfs2,OCFS2>>。"
77
78 #. type: Plain text
79 #: features.adoc:39
80 msgid ""
81 "Deploying DRBD in dual-primary mode is the preferred approach for load-"
82 "balancing clusters which require concurrent data access from two nodes, e.g. "
83 "virtualization environments with a need for live-migration. This mode is "
84 "disabled by default, and must be enabled explicitly in DRBD's configuration "
85 "file."
86 msgstr ""
87 "在双主模式下部署DRBD是负载均衡集群的首选方法,这种集群需要从两个节点并发访问数据,例如需要实时迁移的虚拟化环境。此模式在默认情况下是禁用的,并且必须在DRBD的配置文件中显式启用。"
88
89 #. type: Plain text
90 #: features.adoc:42
91 msgid ""
92 "See <<s-enable-dual-primary>> for information on enabling dual-primary mode "
93 "for specific resources."
94 msgstr "有关为特定资源启用双主模式的信息,请参见<<s-enable-dual-primary>>。"
95
96 #. type: Title ===
97 #: features.adoc:44
98 #, no-wrap
99 msgid "Replication modes"
100 msgstr "复制(Replication)模式"
101
102 #. type: Plain text
103 #: features.adoc:48
104 msgid ""
105 "DRBD supports three distinct replication modes, allowing three degrees of "
106 "replication synchronicity."
107 msgstr "DRBD支持三种不同的复制模式,允许三种程度的复制同步性。"
108
109 #. type: Block title
110 #: features.adoc:50
111 #, no-wrap
112 msgid "Protocol A"
113 msgstr "Protocol A"
114
115 #. type: Plain text
116 #: features.adoc:60
117 msgid ""
118 "Asynchronous replication protocol. Local write operations on the primary "
119 "node are considered completed as soon as the local disk write has finished, "
120 "and the replication packet has been placed in the local TCP send buffer. In "
121 "the event of forced fail-over, data loss may occur. The data on the standby "
122 "node is consistent after fail-over; however, the most recent updates "
123 "performed prior to the crash could be lost. Protocol A is most often used in"
124 " long distance replication scenarios. When used in combination with DRBD "
125 "Proxy it makes an effective disaster recovery solution. See <<s-drbd-"
126 "proxy>>, for more information."
127 msgstr ""
128 "异步复制协议。一旦本地磁盘写入完成,并且复制数据包已放置在本地TCP发送缓冲区中,则认为主节点上的本地写入操作已完成。在强制故障转移的情况下,可能会发生数据丢失。备用节点上的数据在故障转移后是一致的;但是,在崩溃之前执行的最新更新可能会丢失。Protocol A最常用于远程复制场景。当与DRBD"
129 " Proxy结合使用时,它是一个有效的灾难恢复解决方案。有关详细信息,请参见<<s-drbd-proxy>>。"
130
131 #. type: Block title
132 #: features.adoc:63
133 #, no-wrap
134 msgid "Protocol B"
135 msgstr "Protocol B"
136
137 #. type: Plain text
138 #: features.adoc:71
139 msgid ""
140 "Memory synchronous (semi-synchronous) replication protocol. Local write "
141 "operations on the primary node are considered completed as soon as the local"
142 " disk write has occurred, and the replication packet has reached the peer "
143 "node. Normally, no writes are lost in case of forced fail-over. However, in "
144 "the event of simultaneous power failure on both nodes *and* concurrent, "
145 "irreversible destruction of the primary's data store, the most recent writes"
146 " completed on the primary may be lost."
147 msgstr ""
148 "内存同步(半同步)复制协议。一旦本地磁盘写入发生,并且复制数据包已到达对等节点,则认为主节点上的本地写入操作已完成。通常,在强制故障转移的情况下不会丢失任何写操作。但是,如果同时在主备节点 *同时* 发生了电源故障,则主节点的数据存储可能会丢失最新完成的写入操作。"
149
150 #. type: Block title
151 #: features.adoc:73
152 #, no-wrap
153 msgid "Protocol C"
154 msgstr "Protocol C"
155
156 #. type: Plain text
157 #: features.adoc:81
158 msgid ""
159 "Synchronous replication protocol. Local write operations on the primary node"
160 " are considered completed only after both the local and the remote disk "
161 "write(s) have been confirmed. As a result, loss of a single node is "
162 "guaranteed not to lead to any data loss. Data loss is, of course, inevitable"
163 " even with this replication protocol if all nodes (resp. their storage "
164 "subsystems) are irreversibly destroyed at the same time."
165 msgstr ""
166 "同步复制协议。只有在确认本地和远程磁盘写入之后,主节点上的本地写入操作才被视为完成。因此,单个节点的丢失不会导致任何数据丢失。数据丢失当然是不可避免的,即使采用这个复制协议,如果所有节点(例如:它们的存储子系统)同时遭到不可逆转的破坏, 数据也可能丢失。"
167
168 #. type: Plain text
169 #: features.adoc:84
170 msgid ""
171 "By far, the most commonly used replication protocol in DRBD setups is "
172 "protocol C."
173 msgstr "到目前为止,DRBD设置中最常用的复制协议是protocol C。"
174
175 #. type: Plain text
176 #: features.adoc:88
177 msgid ""
178 "The choice of replication protocol influences two factors of your "
179 "deployment: _protection_ and _latency_. _Throughput_, by contrast, is "
180 "largely independent of the replication protocol selected."
181 msgstr "复制协议的选择影响部署的两个因素: _保护_ 和 _延迟_ 。相比之下, _吞吐量_ 在很大程度上独立于所选的复制协议。"
182
183 #. type: Plain text
184 #: features.adoc:91
185 msgid ""
186 "See <<s-configure-resource>> for an example resource configuration which "
187 "demonstrates replication protocol configuration."
188 msgstr "有关演示复制协议配置的资源配置示例,请参见<<s-configure-resource>>。"
189
190 #. type: Title ===
191 #: features.adoc:93
192 #, no-wrap
193 msgid "More than 2-way redundancy"
194 msgstr "不只双向冗余(2-way redundancy)"
195
196 #. type: Plain text
197 #: features.adoc:97
198 msgid ""
199 "With DRBD 9 it's possible to have the data stored simultaneously on more "
200 "than two cluster nodes."
201 msgstr "使用DRBD 9,可以将数据同时存储在两个以上的集群节点上。"
202
203 #. type: Plain text
204 #: features.adoc:102
205 msgid ""
206 "While this has been possible before via <<s-three-way-repl,stacking>>, in "
207 "DRBD 9 this is supported out-of-the-box for (currently) up to 16 nodes. (In"
208 " practice, using 3-, 4- or perhaps 5-way redundancy via DRBD will make other"
209 " things the leading cause of downtime.)"
210 msgstr ""
211 "在以前通过<<s-three-way-repl,stacking>>来实现不只双向冗余是可能的,但在DRBD "
212 "9中,目前直接就可以支持多达16个节点。(实际上,通过DRBD使用3、4乃至5路冗余将使其他事情成为停机的主要原因。)"
213
214 #. type: Plain text
215 #: features.adoc:105
216 msgid ""
217 "The major difference to the stacking solution is that there's less "
218 "performance loss, because only one level of data replication is being used."
219 msgstr "与stacking解决方案的主要区别在于性能损失更小,因为只使用了一个级别的数据复制。"
220
221 #. Eg. if availability for a single node is 99%, for two nodes it might
222 #. be 99.99%, for three nodes 99.999%
223 #. type: Title ===
224 #: features.adoc:110
225 #, no-wrap
226 msgid "Automatic Promotion of Resources"
227 msgstr "自动提升资源"
228
229 #. type: Plain text
230 #: features.adoc:117
231 msgid ""
232 "Prior to DRBD 9, promoting a resource would be done with the `drbdadm "
233 "primary` command. With DRBD 9, DRBD will automatically promote a resource to"
234 " primary role when the `auto-promote` option is enabled, and one of its "
235 "volumes is mounted or opened for writing. As soon as all volumes are "
236 "unmounted or closed, the role of the resource changes back to secondary."
237 msgstr ""
238 "在DRBD 9之前,可以使用 `drbdadm primary` 命令提升资源。在DRBD 9下,当启用"
239 " `auto promote` 选项时,DRBD将自动将资源提升为主角色,并装入或打开其中一个卷进行写入。一旦卸载或关闭所有卷,资源的角色就变回次要角色。"
240
241 #. type: Plain text
242 #: features.adoc:121
243 msgid ""
244 "Automatic promotion will only succeed if the cluster state allows it (that "
245 "is, if an explicit `drbdadm primary` command would succeed). Otherwise, "
246 "mounting or opening the device fails as it did prior to DRBD 9."
247 msgstr ""
248 "只有在群集状态允许时(即,如果显示 `drbdadm primary` 命令成功),自动提升才会成功。否则,安装或打开设备将失败,就像在DRBD "
249 "9之前一样。"
250
251 #. type: Title ===
252 #: features.adoc:124
253 #, no-wrap
254 msgid "Multiple replication transports"
255 msgstr "多种复制传输"
256
257 #. type: Plain text
258 #: features.adoc:128
259 msgid ""
260 "DRBD supports multiple network transports. As of now two transport "
261 "implementations are available: TCP and RDMA. Each transport implementation "
262 "comes as its own kernel module."
263 msgstr "DRBD支持多种网络传输。到目前为止,有两种传输实现可用:TCP和RDMA。每个传输都由对应的内核模块来实现。"
264
265 #. type: Title ====
266 #: features.adoc:130
267 #, no-wrap
268 msgid "TCP Transport"
269 msgstr "TCP传输"
270
271 #. type: Plain text
272 #: features.adoc:135
273 msgid ""
274 "The `drbd_transport_tcp.ko` transport implementation is included with the "
275 "distribution files of drbd itself. As the name implies, this transport "
276 "implementation uses the TCP/IP protocol to move data between machines."
277 msgstr ""
278 "`drbd_transport_tcp.ko` 传输实现包含在drbd本身的分发文件中。顾名思义,这个传输实现使用TCP/IP协议在机器之间移动数据。"
279
280 #. type: Plain text
281 #: features.adoc:138
282 msgid ""
283 "DRBD's replication and synchronization framework socket layer supports "
284 "multiple low-level transports:"
285 msgstr "DRBD的复制和同步框架套接字层支持多个低级传输:"
286
287 #. type: Block title
288 #: features.adoc:139
289 #, no-wrap
290 msgid "TCP over IPv4"
291 msgstr "IPv4上的TCP"
292
293 #. type: Plain text
294 #: features.adoc:142
295 msgid ""
296 "This is the canonical implementation, and DRBD's default. It may be used on "
297 "any system that has IPv4 enabled."
298 msgstr "这是规范实现,也是DRBD的默认实现。它可以在任何启用了IPv4的系统上使用。"
299
300 #. type: Block title
301 #: features.adoc:143
302 #, no-wrap
303 msgid "TCP over IPv6"
304 msgstr "IPv6上的TCP"
305
306 #. type: Plain text
307 #: features.adoc:148
308 msgid ""
309 "When configured to use standard TCP sockets for replication and "
310 "synchronization, DRBD can use also IPv6 as its network protocol. This is "
311 "equivalent in semantics and performance to IPv4, albeit using a different "
312 "addressing scheme."
313 msgstr ""
314 "当配置为使用标准的TCP套接字进行复制和同步时,DRBD还可以使用IPv6作为其网络协议。这在语义和性能上等同于IPv4,尽管它使用不同的寻址方案。"
315
316 #. type: Block title
317 #: features.adoc:149
318 #, no-wrap
319 msgid "SDP"
320 msgstr "SDP"
321
322 #. type: Plain text
323 #: features.adoc:155
324 msgid ""
325 "SDP is an implementation of BSD-style sockets for RDMA capable transports "
326 "such as InfiniBand. SDP was available as part of the OFED stack of most "
327 "distributions but is now *considered deprecated*. SDP uses an IPv4-style "
328 "addressing scheme. Employed over an InfiniBand interconnect, SDP provides a "
329 "high-throughput, low-latency replication network to DRBD."
330 msgstr ""
331 "SDP是BSD风格的套接字的实现,用于支持RDMA的传输,如InfiniBand。SDP是大多数发行版OFED堆栈的一部分,但现在 *被视为已弃用* 。SDP使用IPv4风格的寻址方案。SDP通过InfiniBand互连使用,为DRBD提供了一个高吞吐量、低延迟的复制网络。"
332
333 #. type: Block title
334 #: features.adoc:156
335 #, no-wrap
336 msgid "SuperSockets"
337 msgstr "SuperSockets"
338
339 #. type: Plain text
340 #: features.adoc:163
341 msgid ""
342 "SuperSockets replace the TCP/IP portions of the stack with a single, "
343 "monolithic, highly efficient and RDMA capable socket implementation. DRBD "
344 "can use this socket type for very low latency replication. SuperSockets must"
345 " run on specific hardware which is currently available from a single vendor,"
346 " Dolphin Interconnect Solutions."
347 msgstr ""
348 "SuperSockets用一个单一的、单片的、高效的、支持RDMA的套接字实现来替换堆栈的TCP/IP部分。DRBD可以使用这种套接字类型进行非常低延迟的复制。SuperSockets必须运行在特定的硬件上,而这些硬件目前只能从一家供应商Dolphin"
349 " Interconnect Solutions获得。"
350
351 #. type: Title ====
352 #: features.adoc:165
353 #, no-wrap
354 msgid "RDMA Transport"
355 msgstr "RDMA传输"
356
357 #. type: Plain text
358 #: features.adoc:171
359 msgid ""
360 "Alternatively the `drbd_transport_rdma.ko` kernel module is available from "
361 "LINBIT. This transport uses the verbs/RDMA API to move data over InfiniBand "
362 "HCAs, iWARP capable NICs or RoCE capable NICs. In contrast to the BSD "
363 "sockets API (used by TCP/IP) the verbs/RDMA API allows data movement with "
364 "very little CPU involvement."
365 msgstr ""
366 "此外,LINBIT提供 `drbd_transport_rdma.ko` 内核模块。此传输使用verbs/RDMA API在InfiniBand "
367 "HCAs、支持iWARP的NICs或支持RoCE的NICs上移动数据。与BSD sockets "
368 "API(由TCP/IP使用)相比,verbs/rdmaapi允许在很少的CPU参与下移动数据。"
369
370 #. type: Title ====
371 #: features.adoc:173
372 #, no-wrap
373 msgid "Conclusion"
374 msgstr "结论"
375
376 #. type: Plain text
377 #: features.adoc:179
378 msgid ""
379 "At high transfer rates it might be possible that the CPU load/memory "
380 "bandwidth of the tcp transport becomes the limiting factor. You can probably"
381 " achieve higher transfer rates using the rdma transport with appropriate "
382 "hardware."
383 msgstr "在高传输速率下,tcp传输的CPU负载/内存带宽可能成为限制因素。使用rdma传输和适当的硬件,您可能可以获得更高的传输速率。"
384
385 #. type: Plain text
386 #: features.adoc:182
387 msgid ""
388 "A transport implementation can be configured for each connection of a "
389 "resource. See <<s-configuring-transports>> for more details."
390 msgstr "可以为资源的每个连接配置传输层实现。有关详细信息,请参见<<s-configuring-transports>>。"
391
392 #. type: Title ===
393 #: features.adoc:184
394 #, no-wrap
395 msgid "Efficient synchronization"
396 msgstr "高效同步"
397
398 #. type: Plain text
399 #: features.adoc:190
400 msgid ""
401 "(Re-)synchronization is distinct from device replication. While replication "
402 "occurs on any write event to a resource in the primary role, synchronization"
403 " is decoupled from incoming writes. Rather, it affects the device as a "
404 "whole."
405 msgstr "(重新)同步不同于设备复制。当对主角色中的资源的任何写入事件发生复制时,同步与传入的写操作是分离的。否则,它会影响到设备整体。"
406
407 #. type: Plain text
408 #: features.adoc:197
409 msgid ""
410 "Synchronization is necessary if the replication link has been interrupted "
411 "for any reason, be it due to failure of the primary node, failure of the "
412 "secondary node, or interruption of the replication link. Synchronization is "
413 "efficient in the sense that DRBD does not synchronize modified blocks in the"
414 " order they were originally written, but in linear order, which has the "
415 "following consequences:"
416 msgstr ""
417 "如果复制链路由于任何原因中断(无论是由于主节点故障、辅助节点故障还是复制链路中断)时,则必须进行同步。同步是有效的,因为DRBD不会按照修改后的块最初写入的顺序,而是按照线性顺序同步,这会产生以下后果:"
418
419 #. type: Plain text
420 #: features.adoc:200
421 msgid ""
422 "Synchronization is fast, since blocks in which several successive write "
423 "operations occurred are only synchronized once."
424 msgstr "同步速度很快,因为发生多个连续写操作的块只同步一次。"
425
426 #. type: Plain text
427 #: features.adoc:203
428 msgid ""
429 "Synchronization is also associated with few disk seeks, as blocks are "
430 "synchronized according to the natural on-disk block layout."
431 msgstr "同步还与很少的磁盘查找相关,因为块是根据磁盘上块的自然布局进行同步的。"
432
433 #. type: Plain text
434 #: features.adoc:207
435 msgid ""
436 "During synchronization, the data set on the standby node is partly obsolete "
437 "and partly already updated. This state of data is called _inconsistent_."
438 msgstr "在同步过程中,备用节点上的数据集部分过时,部分已更新。这种数据状态称为 _不一致_ 。"
439
440 #. type: Plain text
441 #: features.adoc:210
442 msgid ""
443 "The service continues to run uninterrupted on the active node, while "
444 "background synchronization is in progress."
445 msgstr "后台同步正在进行时,服务继续在活动节点上不间断地运行。"
446
447 #. type: Plain text
448 #: features.adoc:219
449 msgid ""
450 "A node with inconsistent data generally cannot be put into operation, thus "
451 "it is desirable to keep the time period during which a node is inconsistent "
452 "as short as possible. DRBD does, however, ship with an LVM integration "
453 "facility that automates the creation of LVM snapshots immediately before "
454 "synchronization. This ensures that a _consistent_ copy of the data is always"
455 " available on the peer, even while synchronization is running. See <<s-lvm-"
456 "snapshots>> for details on using this facility."
457 msgstr ""
458 "数据不一致的节点通常不能投入运行,因此希望尽可能缩短节点不一致的时间段。基于此,DRBD附带了LVM集成工具,用于在同步之前自动创建LVM快照。这可以确保对等机上始终可以使用数据的一致性副本,即使同步正在运行。有关使用此工具的详细信息,请参见<<s-lvm-"
459 "snapshots>>。"
460
461 #. type: Title ====
462 #: features.adoc:221
463 #, no-wrap
464 msgid "Variable-rate synchronization"
465 msgstr "可变速率同步"
466
467 #. type: Plain text
468 #: features.adoc:227
469 msgid ""
470 "In variable-rate synchronization (the default since 8.4), DRBD detects the "
471 "available bandwidth on the synchronization network, compares it to incoming "
472 "foreground application I/O, and selects an appropriate synchronization rate "
473 "based on a fully automatic control loop."
474 msgstr ""
475 "在可变速率同步(8.4版本后被设为默认值)中,DRBD检测同步网络上的可用带宽,将其与传入的前台应用程序I/O进行比较,并基于全自动控制回路选择适当的同步速率。"
476
477 #. type: Plain text
478 #: features.adoc:230
479 msgid ""
480 "See <<s-configure-sync-rate-variable>> for configuration suggestions with "
481 "regard to variable-rate synchronization."
482 msgstr "有关可变速率同步的配置建议,请参见<<s-configure-sync-rate-variable>>。"
483
484 #. type: Title ====
485 #: features.adoc:232
486 #, no-wrap
487 msgid "Fixed-rate synchronization"
488 msgstr "固定速率同步"
489
490 #. type: Plain text
491 #: features.adoc:238
492 msgid ""
493 "In fixed-rate synchronization, the amount of data shipped to the "
494 "synchronizing peer per second (the _synchronization rate_) has a "
495 "configurable, static upper limit. Based on this limit, you may estimate the "
496 "expected sync time based on the following simple formula:"
497 msgstr "在固定速率同步中,每秒传送到同步对等机的数据量(同步速率)有一个可配置的静态上限。基于此限制,您可以根据以下简单公式估计预期的同步时间:"
498
499 #. type: Block title
500 #: features.adoc:241
501 #, no-wrap
502 msgid "Synchronization time"
503 msgstr "同步时间"
504
505 #. type: Target for macro image
506 #: features.adoc:242
507 #, no-wrap
508 msgid "images/resync-time.svg"
509 msgstr "images/resync-time.svg"
510
511 #. type: Plain text
512 #: features.adoc:251
513 msgid ""
514 "_t~sync~_ is the expected sync time. _D_ is the amount of data to be "
515 "synchronized, which you are unlikely to have any influence over (this is the"
516 " amount of data that was modified by your application while the replication "
517 "link was broken). _R_ is the rate of synchronization, which is configurable"
518 " -- bounded by the throughput limitations of the replication network and I/O"
519 " subsystem."
520 msgstr ""
521 "_t~sync~_ 是预期的同步时间。_D_ 是要同步的数据量,这两者很难人为干预(这是复制链接断开时应用程序修改的数据量)。_R_ 是可配置的同步速率,受限于复制网络和I/O子系统的吞吐量限制。"
522
523 #. type: Plain text
524 #: features.adoc:254
525 msgid ""
526 "See <<s-configure-sync-rate>> for configuration suggestions with regard to "
527 "fixed-rate synchronization."
528 msgstr "有关固定速率同步的配置建议,请参见<<s-configure-sync-rate>>。"
529
530 #. type: Title ====
531 #: features.adoc:256
532 #, no-wrap
533 msgid "Checksum-based synchronization"
534 msgstr "基于校验和的同步"
535
536 #. type: Plain text
537 #: features.adoc:269
538 msgid ""
539 "The efficiency of DRBD's synchronization algorithm may be further enhanced "
540 "by using data digests, also known as checksums. When using checksum-based "
541 "synchronization, then rather than performing a brute-force overwrite of "
542 "blocks marked out of sync, DRBD _reads_ blocks before synchronizing them and"
543 " computes a hash of the contents currently found on disk. It then compares "
544 "this hash with one computed from the same sector on the peer, and omits re-"
545 "writing this block if the hashes match. This can dramatically cut down "
546 "synchronization times in situation where a filesystem re-writes a sector "
547 "with identical contents while DRBD is in disconnected mode."
548 msgstr ""
549 "通过使用数据摘要(也称为校验和)可以进一步提高DRBD的同步算法的效率。当使用基于校验和的同步时,DRBD在同步前先 _读取_ 块,并计算当前在磁盘上找到的内容的哈希,而不是对标记为不同步的块执行强制覆盖。然后,它将此哈希与从对等机上的同一扇区计算的哈希进行比较,如果哈希匹配,则省略重新写入此块。如果文件系统在DRBD处于断开模式时用相同的内容重新写入了扇区,这可以显著缩短同步时间。"
550
551 #. type: Plain text
552 #: features.adoc:272
553 msgid ""
554 "See <<s-configure-checksum-sync>> for configuration suggestions with regard "
555 "to synchronization."
556 msgstr "有关同步的配置建议,请参见<<s-configure-checksum-sync>>。"
557
558 #. type: Title ===
559 #: features.adoc:275
560 #, no-wrap
561 msgid "Suspended replication"
562 msgstr "已挂起的复制"
563
564 #. type: Plain text
565 #: features.adoc:283
566 msgid ""
567 "If properly configured, DRBD can detect if the replication network is "
568 "congested, and _suspend_ replication in this case. In this mode, the primary"
569 " node \"pulls ahead\" of the secondary -- temporarily going out of sync, but"
570 " still leaving a consistent copy on the secondary. When more bandwidth "
571 "becomes available, replication automatically resumes and a background "
572 "synchronization takes place."
573 msgstr "如果配置正确,DRBD可以检测复制网络是否拥塞,在这种情况下可以暂停复制。在这种模式下,主节点会\"超前\"于次节点 即 暂时不同步,但仍在次节点上保留一致的副本。当有更多带宽可用时,复制将自动恢复并进行后台同步。"
574
575 #. type: Plain text
576 #: features.adoc:287
577 msgid ""
578 "Suspended replication is typically enabled over links with variable "
579 "bandwidth, such as wide area replication over shared connections between "
580 "data centers or cloud instances."
581 msgstr "挂起复制通常在具有可变带宽的链接上启用,例如在数据中心或云实例之间的共享连接上启用广域复制。"
582
583 #. type: Plain text
584 #: features.adoc:290
585 msgid ""
586 "See <<s-configure-congestion-policy>> for details on congestion policies and"
587 " suspended replication."
588 msgstr "有关拥塞策略和挂起复制的详细信息,请参见<<s-configure-congestion-policy>>。"
589
590 #. type: Title ===
591 #: features.adoc:292
592 #, no-wrap
593 msgid "On-line device verification"
594 msgstr "在线设备验证"
595
596 #. type: Plain text
597 #: features.adoc:296
598 msgid ""
599 "On-line device verification enables users to do a block-by-block data "
600 "integrity check between nodes in a very efficient manner."
601 msgstr "在线设备验证使用户能够以非常有效的方式在节点之间执行逐块数据完整性检查。"
602
603 #. type: Plain text
604 #: features.adoc:301
605 msgid ""
606 "Note that _efficient_ refers to efficient use of network bandwidth here, and"
607 " to the fact that verification does not break redundancy in any way. On-line"
608 " verification is still a resource-intensive operation, with a noticeable "
609 "impact on CPU utilization and load average."
610 msgstr ""
611 "注意 _efficient_ 是指的是网络带宽的有效使用,以及验证不会以任何方式破坏冗余的事实。在线验证仍然是一个资源密集型操作,对CPU利用率和平均负载有显著影响。"
612
613 #. type: Plain text
614 #: features.adoc:311
615 msgid ""
616 "It works by one node (the _verification source_) sequentially calculating a "
617 "cryptographic digest of every block stored on the lower-level storage device"
618 " of a particular resource. DRBD then transmits that digest to the peer "
619 "node(s) (the _verification target(s)_), where it is checked against a digest"
620 " of the local copy of the affected block. If the digests do not match, the "
621 "block is marked out-of-sync and may later be synchronized. Because DRBD "
622 "transmits just the digests, not the full blocks, on-line verification uses "
623 "network bandwidth very efficiently."
624 msgstr ""
625 "在线验证由一个节点( _verification source_ )按顺序计算存储在特定资源的低级存储设备上的每个块的密码摘要。然后,DRBD将该摘要发送到对等节点(即 _verification targets(s)_),在对等节点中,根据受影响块的本地副本摘要对其进行检查。如果摘要不匹配,则块被标记为不同步,以后可能会同步。因为DRBD只传输摘要,而不是完整的块,所以在线验证能非常有效地使用网络带宽。"
626
627 #. type: Plain text
628 #: features.adoc:318
629 msgid ""
630 "The process is termed _on-line_ verification because it does not require "
631 "that the DRBD resource being verified is unused at the time of verification."
632 " Thus, though it does carry a slight performance penalty while it is "
633 "running, on-line verification does not cause service interruption or system "
634 "down time -- neither during the verification run nor during subsequent "
635 "synchronization."
636 msgstr ""
637 "该过程被称为在线验证, _on-line_ 验证,因为它不要求被验证的DRBD资源在验证时未被使用。因此,尽管在线验证在运行时确实会带来轻微的性能损失,但它不会导致服务中断或系统停机 -- 无论是在验证运行期间还是在随后的同步期间。"
638
639 #. type: Plain text
640 #: features.adoc:323
641 msgid ""
642 "It is a common use case to have on-line verification managed by the local "
643 "cron daemon, running it, for example, once a week or once a month. See "
644 "<<s-use-online-verify>> for information on how to enable, invoke, and "
645 "automate on-line verification."
646 msgstr ""
647 "由本地cron守护进程管理 on-line 验证是一个常见的用例,例如,每周或每月运行一次。有关如何启用、调用和自动执行联机验证的信息,请参见<<s-use-"
648 "online-verify>>。"
649
650 #. type: Title ===
651 #: features.adoc:325
652 #, no-wrap
653 msgid "Replication traffic integrity checking"
654 msgstr "复制流量完整性检查"
655
656 #. type: Plain text
657 #: features.adoc:329
658 msgid ""
659 "DRBD optionally performs end-to-end message integrity checking using "
660 "cryptographic message digest algorithms such as MD5, SHA-1, or CRC-32C."
661 msgstr "DRBD可以选择使用加密消息摘要算法(如MD5、SHA-1或CRC-32C)执行端到端消息完整性检查。"
662
663 #. type: Plain text
664 #: features.adoc:334
665 msgid ""
666 "These message digest algorithms are *not* provided by DRBD, but by the Linux"
667 " kernel crypto API; DRBD merely uses them. Thus, DRBD is capable of "
668 "utilizing any message digest algorithm available in a particular system's "
669 "kernel configuration."
670 msgstr ""
671 "这些消息摘要算法 *不是* 由DRBD提供的,而是由Linux内核加密API提供的;DRBD只是使用它们。因此,DRBD能够利用特定系统内核配置中可用的任何消息摘要算法。"
672
673 #. type: Plain text
674 #: features.adoc:343
675 msgid ""
676 "With this feature enabled, DRBD generates a message digest of every data "
677 "block it replicates to the peer, which the peer then uses to verify the "
678 "integrity of the replication packet. If the replicated block can not be "
679 "verified against the digest, the connection is dropped and immediately re-"
680 "established; because of the bitmap the typical result is a retransmission. "
681 "Thus, DRBD replication is protected against several error sources, all of "
682 "which, if unchecked, would potentially lead to data corruption during the "
683 "replication process:"
684 msgstr ""
685 "启用此功能后,DRBD生成复制到对等方的每个数据块的消息摘要,然后对等方使用该摘要来验证复制包的完整性。如果无法根据摘要验证复制的块,则会断开连接并立即重新建立;由于位图的存在,典型的结果是重新传输。因此,DRBD复制可以避免一些错误的源资源,如果对这些错误源执行检查,则在复制过程中可能会导致数据损坏:"
686
687 #. type: Plain text
688 #: features.adoc:348
689 msgid ""
690 "Bitwise errors (\"bit flips\") occurring on data in transit between main "
691 "memory and the network interface on the sending node (which goes undetected "
692 "by TCP checksumming if it is offloaded to the network card, as is common in "
693 "recent implementations);"
694 msgstr ""
695 "在主存储器和发送节点上的网络接口之间传输的数据上会发生按位错误(\"位翻转\")(如果将其卸载到网卡,则TCP校验和无法检测到该错误,这在最近的实现中很常见);"
696
697 #. type: Plain text
698 #: features.adoc:352
699 msgid ""
700 "Bit flips occurring on data in transit from the network interface to main "
701 "memory on the receiving node (the same considerations apply for TCP checksum"
702 " offloading);"
703 msgstr "在从网络接口传输到接收节点的主存储器的数据上发生的位翻转(同样的考虑适用于TCP校验和卸载);"
704
705 #. type: Plain text
706 #: features.adoc:355
707 msgid ""
708 "Any form of corruption due to a race conditions or bugs in network interface"
709 " firmware or drivers;"
710 msgstr "由于网络接口固件或驱动程序中的竞争条件或错误而导致的任何形式的损坏;"
711
712 #. type: Plain text
713 #: features.adoc:359
714 msgid ""
715 "Bit flips or random corruption injected by some reassembling network "
716 "component between nodes (if not using direct, back-to-back connections)."
717 msgstr "通过在节点之间重新组装网络组件(如果不使用直接的背对背连接)注入的位翻转或随机损坏。"
718
719 #. type: Plain text
720 #: features.adoc:362
721 msgid ""
722 "See <<s-configure-integrity-check>> for information on how to enable "
723 "replication traffic integrity checking."
724 msgstr "有关如何启用复制通信完整性检查的信息,请参见<<s-configure-integrity-check>>。"
725
726 #. type: Title ===
727 #: features.adoc:364
728 #, no-wrap
729 msgid "Split brain notification and automatic recovery"
730 msgstr "裂脑通知和自动恢复"
731
732 #. type: Plain text
733 #: features.adoc:374
734 msgid ""
735 "Split brain is a situation where, due to temporary failure of all network "
736 "links between cluster nodes, and possibly due to intervention by a cluster "
737 "management software or human error, both nodes switched to the _Primary_ "
738 "role while disconnected. This is a potentially harmful state, as it implies "
739 "that modifications to the data might have been made on either node, without "
740 "having been replicated to the peer. Thus, it is likely in this situation "
741 "that two diverging sets of data have been created, which cannot be trivially"
742 " merged."
743 msgstr ""
744 "裂脑是指由于群集节点之间的所有网络链路的暂时故障,以及可能由于群集管理软件的干预或人为错误,两个节点在断开连接时都切换到主要角色的情况。这是一种潜在的有害状态,因为它意味着对数据的修改可能是在任一节点上进行的,而没有复制到对等节点。因此,在这种情况下,很可能已经创建了两个不同的数据集,这些数据集不能简单地合并。"
745
746 #. type: Plain text
747 #: features.adoc:379
748 msgid ""
749 "DRBD split brain is distinct from cluster split brain, which is the loss of "
750 "all connectivity between hosts managed by a distributed cluster management "
751 "application such as Heartbeat. To avoid confusion, this guide uses the "
752 "following convention:"
753 msgstr ""
754 "DRBD split brain不同于集群split brain,集群split "
755 "brain是由分布式集群管理应用程序(如Heartbeat)管理的主机之间的所有连接丢失。为避免混淆,本指南使用以下约定:"
756
757 #. type: Plain text
758 #: features.adoc:382
759 msgid ""
760 "_Split brain_ refers to DRBD split brain as described in the paragraph "
761 "above."
762 msgstr "_裂脑_ 是指如上文所述的DRBD裂脑。"
763
764 #. type: Plain text
765 #: features.adoc:385
766 msgid ""
767 "Loss of all cluster connectivity is referred to as a _cluster partition_, an"
768 " alternative term for cluster split brain."
769 msgstr "所有集群连接的丧失被称为 _集群分片_,是集群裂脑的另一个术语。"
770
771 #. type: Plain text
772 #: features.adoc:389
773 msgid ""
774 "DRBD allows for automatic operator notification (by email or other means) "
775 "when it detects split brain. See <<s-split-brain-notification>> for details "
776 "on how to configure this feature."
777 msgstr ""
778 "DRBD允许在检测到脑裂时自动通知管理员(通过电子邮件或其他方式)。有关如何配置此功能的详细信息,请参见<<s-split-brain-"
779 "notification>>。"
780
781 #. type: Plain text
782 #: features.adoc:395
783 msgid ""
784 "While the recommended course of action in this scenario is to <<s-resolve-"
785 "split-brain,manually resolve>> the split brain and then eliminate its root "
786 "cause, it may be desirable, in some cases, to automate the process. DRBD has"
787 " several resolution algorithms available for doing so:"
788 msgstr ""
789 "虽然在这种情况下,建议的操作过程是<<s-resolve-split-brain,manually "
790 "resolve>>处理脑裂,然后消除其根本原因,但在某些情况下,可能需要自动化该过程。DRBD有几种可用的解决方案列举如下:"
791
792 #. type: Plain text
793 #: features.adoc:400
794 #, no-wrap
795 msgid ""
796 "*Discarding modifications made on the younger primary.* In this\n"
797 "mode, when the network connection is re-established and split brain\n"
798 "is discovered, DRBD will discard modifications made, in the\n"
799 "meantime, on the node which switched to the primary role _last_.\n"
800 msgstr ""
801 "*放弃较新主节点上的修改。* 在这种模式下,当重新建立网络连接并发现裂脑时,\n"
802 "DRBD在_最后_切换到主模式的节点上,会放弃在该节点上的更改。\n"
803
804 #. type: Plain text
805 #: features.adoc:404
806 #, no-wrap
807 msgid ""
808 "*Discarding modifications made on the older primary.* In this mode,\n"
809 "DRBD will discard modifications made, in the meantime, on the node\n"
810 "which switched to the primary role _first_.\n"
811 msgstr ""
812 "*放弃较旧主节点上的修改。* 在这种模式下,DRBD会放弃先前切换到\n"
813 "主模式的节点上所做的修改。\n"
814
815 #. type: Plain text
816 #: features.adoc:409
817 #, no-wrap
818 msgid ""
819 "*Discarding modifications on the primary with fewer changes.* In\n"
820 "this mode, DRBD will check which of the two nodes has recorded fewer\n"
821 "modifications, and will then discard _all_ modifications made on\n"
822 "that host.\n"
823 msgstr ""
824 "*放弃改动小的主节点上的修改。* 在这种模式下,\n"
825 "DRBD将检查两个节点中的哪个节点记录了较少的修改,然后将丢弃在该主机上进行的所有修改。\n"
826
827 #. type: Plain text
828 #: features.adoc:419
829 #, no-wrap
830 msgid ""
831 "*Graceful recovery from split brain if one host has had no\n"
832 "intermediate changes.* In this mode, if one of the hosts has made no\n"
833 "modifications at all during split brain, DRBD will simply recover\n"
834 "gracefully and declare the split brain resolved. Note that this is a\n"
835 "fairly unlikely scenario. Even if both hosts only mounted the file\n"
836 "system on the DRBD block device (even read-only), the device\n"
837 "contents typically would be modified (e.g. by filesystem journal\n"
838 "replay), ruling out the possibility of automatic\n"
839 "recovery.\n"
840 msgstr ""
841 "*如果任一节点没有中间变化,则可以从裂脑中恢复。* 在这种模式下,\n"
842 "如果其中一个主机在裂脑期间根本没有进行任何修改,则DRBD会简单地恢复正常并宣布裂脑已解决。\n"
843 "请注意,这是一个不太可能发生的情况。即使两个主机都仅将文件系统安装在DRBD块设备上(甚至是只读的),\n"
844 "设备的内容通常也会被修改(例如,通过文件系统日志重播),从而排除了自动恢复的可能性。\n"
845
846 #. type: Plain text
847 #: features.adoc:428
848 msgid ""
849 "Whether or not automatic split brain recovery is acceptable depends largely "
850 "on the individual application. Consider the example of DRBD hosting a "
851 "database. The discard modifications from host with fewer changes approach "
852 "may be fine for a web application click-through database. By contrast, it "
853 "may be totally unacceptable to automatically discard _any_ modifications "
854 "made to a financial database, requiring manual recovery in any split brain "
855 "event. Consider your application's requirements carefully before enabling "
856 "automatic split brain recovery."
857 msgstr ""
858 "自动裂脑恢复是否可以接受在很大程度上取决于运行的应用。以DRBD托管数据库为例。\n"
859 "对于web应用程序使用的点击型数据库,使用放弃改动小的主节点上的修改的方法可能很好。\n"
860 "相比之下,自动放弃对财务数据库所做的任何修改可能是完全不可接受的,在任何脑分裂事件中都需要手动恢复。\n"
861 "在启用自动裂脑恢复之前,请仔细考虑应用程序的要求。"
862
863 #. type: Plain text
864 #: features.adoc:431
865 msgid ""
866 "Refer to <<s-automatic-split-brain-recovery-configuration>> for details on "
867 "configuring DRBD's automatic split brain recovery policies."
868 msgstr ""
869 "请参阅<<s-automatic-split-brain-recovery-"
870 "configuration>>以了解有关配置DRBD的自动裂脑恢复策略的详细信息。"
871
872 #. type: Title ===
873 #: features.adoc:433
874 #, no-wrap
875 msgid "Support for disk flushes"
876 msgstr "支持磁盘刷新"
877
878 #. type: Plain text
879 #: features.adoc:442
880 msgid ""
881 "When local block devices such as hard drives or RAID logical disks have "
882 "write caching enabled, writes to these devices are considered completed as "
883 "soon as they have reached the volatile cache. Controller manufacturers "
884 "typically refer to this as write-back mode, the opposite being write-"
885 "through. If a power outage occurs on a controller in write-back mode, the "
886 "last writes are never committed to the disk, potentially causing data loss."
887 msgstr ""
888 "当本地块设备(如硬盘驱动器或RAID逻辑磁盘)启用了写缓存时,对这些设备的写入在到达易失性缓存后即被视为完成。控制器制造商通常将此称为回写模式,反之则为直写模式。如果控制器在回写模式下断电,则最后一次写入永远不会提交到磁盘,可能会导致数据丢失。"
889
890 #. type: Plain text
891 #: features.adoc:453
892 msgid ""
893 "To counteract this, DRBD makes use of disk flushes. A disk flush is a write "
894 "operation that completes only when the associated data has been committed to"
895 " stable (non-volatile) storage -- that is to say, it has effectively been "
896 "written to disk, rather than to the cache. DRBD uses disk flushes for write "
897 "operations both to its replicated data set and to its meta data. In effect, "
898 "DRBD circumvents the write cache in situations it deems necessary, as in "
899 "<<s-activity-log,activity log>> updates or enforcement of implicit write-"
900 "after-write dependencies. This means additional reliability even in the face"
901 " of power failure."
902 msgstr ""
903 "为了解决这个问题,DRBD使用了磁盘刷新。磁盘刷新是一种写入操作,仅当关联的数据已提交到稳定(非易失性)存储时才完成,也就是说,它已有效地写入磁盘,而不是缓存。DRBD使用磁盘刷新对其复制的数据集和元数据进行写操作。实际上,DRBD在其认为必要的情况下绕过写缓存,如在<<s-activity-"
904 "log,activity log>>更新或强制隐式写后依赖项中。这意味着即使在停电的情况下,也会有额外的可靠性。"
905
906 #. type: Plain text
907 #: features.adoc:460
908 msgid ""
909 "It is important to understand that DRBD can use disk flushes only when "
910 "layered on top of backing devices that support them. Most reasonably recent"
911 " kernels support disk flushes for most SCSI and SATA devices. Linux software"
912 " RAID (md) supports disk flushes for RAID-1 provided that all component "
913 "devices support them too. The same is true for device-mapper devices (LVM2, "
914 "dm-raid, multipath)."
915 msgstr ""
916 "需要了解的是,DRBD只能在落地于支持磁盘刷新的备份设备上时才能使用磁盘刷新,"
917 "这一点很重要。最新的内核支持大多数SCSI和SATA设备的磁盘刷新。"
918 "Linux软件RAID(md)支持RAID-1的磁盘刷新,前提是所有组件设备也支持磁盘刷新。设备映射器(device-mapper)设备(LVM2、dm"
919 " raid、多路径)也是如此。"
920
921 #. type: Plain text
922 #: features.adoc:469
923 msgid ""
924 "Controllers with battery-backed write cache (BBWC) use a battery to back up "
925 "their volatile storage. On such devices, when power is restored after an "
926 "outage, the controller flushes all pending writes out to disk from the "
927 "battery-backed cache, ensuring that all writes committed to the volatile "
928 "cache are actually transferred to stable storage. When running DRBD on top "
929 "of such devices, it may be acceptable to disable disk flushes, thereby "
930 "improving DRBD's write performance. See <<s-disable-flushes>> for details."
931 msgstr ""
932 "带电池备份的写缓存(BBWC)的控制器使用电池备份其易失性存储。"
933 "在这些设备上,当断电后恢复供电时,控制器会从电池支持的高速缓存中清除所有挂起的写入到磁盘的操作,"
934 "确保提交到易失性高速缓存的所有写入实际上都转移到稳定存储中。在这些设备上运行DRBD时,"
935 "可以禁用磁盘刷新,从而提高DRBD的写入性能。有关详细信息,请参见<<s-disable-"
936 "flushes>>。"
937
938 #. type: Title ===
939 #: features.adoc:471
940 #, no-wrap
941 msgid "Trim/Discard support"
942 msgstr "Trim/Discard支持"
943
944 #. type: Plain text
945 #: features.adoc:480
946 msgid ""
947 "_Trim_/_Discard_ are two names for the same feature: a request to a storage "
948 "system, telling it that some data range is not being used "
949 "anymorefootnote:[For example, a deleted file's data.] and can get recycled. "
950 "+ This call originates in Flash-based storages (SSDs, FusionIO cards, etc.),"
951 " which cannot easily _rewrite_ a sector but instead have to _erase_ and "
952 "write the (new) data again (incurring some latency cost). For more details, "
953 "see e.g. the [[https://en.wikipedia.org/wiki/Trim_%28computing%29,wikipedia "
954 "page]]."
955 msgstr ""
956 "_Trim_/_Discard_ "
957 "是同一功能的两个名称:对存储系统的请求,告诉它某些数据区域不再使用footnote:[例如,已删除文件的数据],并且可以被回收。+ 此调用源于基于闪存的存储(固态硬盘、FusionIO卡等),这些存储不能轻易重写 _rewrite_ 扇区,而是必须擦除后并再次写入(新)数据(产生一定的延迟成本)。有关更多详细信息,请参见"
958 " [[https://en.wikipedia.org/wiki/Trim_%28computing%29,wikipedia "
959 "page]]."
960
961 #. type: Plain text
962 #: features.adoc:486
963 msgid ""
964 "Since 8.4.3 DRBD includes support for _Trim_/_Discard_. You don't need to "
965 "configure or enable anything; if DRBD detects that the local (underlying) "
966 "storage system allows using these commands, it will transparently enable "
967 "them and pass such requests through."
968 msgstr ""
969 "从8.4.3版开始, "
970 "DRBD包含了对 _Trim_/_Discard_ 的支持。您不需要配置或启用任何东西;如果DRBD检测到本地(底层)存储系统允许使用这些命令,它将透明地启用这些命令并传递这些请求。"
971
972 #. type: Plain text
973 #: features.adoc:491
974 msgid ""
975 "The effect is that e.g. a recent-enough `mkfs.ext4` on a multi-TB volume can "
976 "shorten the initial sync time to a few seconds to minutes - just by telling "
977 "DRBD (which will relay that information to all connected nodes) that "
978 "most/all of the storage is now to be seen as invalidated."
979 msgstr ""
980 "其效果是,例如,在一个有很多TB的卷上使用一个新版本的 `mkfs.ext4` 时,可以将初始同步时间缩短到几秒到几分钟,只要告诉DRBD(它将把该信息中继到所有连接的节点),大多数/所有存储现在都将被视为无效。"
981
982 #. type: Plain text
983 #: features.adoc:496
984 msgid ""
985 "Nodes that connect to that resource later on will not have seen the "
986 "_Trim_/_Discard_ requests, and will therefore start a full resync; depending"
987 " on kernel version and file system a call to `fstrim` might give the wanted "
988 "result, though."
989 msgstr ""
990 "稍后连接到该资源的节点将不会看到 _Trim_/_Discard_ "
991 "请求,因此将启动完全重新同步;不过,依赖于内核版本和文件系统,对`fstrim`的调用可能会给出所需的结果。"
992
993 #. type: Plain text
994 #: features.adoc:500
995 msgid ""
996 "even if you don't have storage with _Trim_/_Discard_ support, some virtual "
997 "block devices will provide you with the same feature, for example Thin LVM."
998 msgstr "即使您没有支持 _Trim_/_Discard_ 的存储,一些虚拟块设备也会为您提供相同的功能,例如精简LVM。"
999
1000 #. type: Title ===
1001 #: features.adoc:503
1002 #, no-wrap
1003 msgid "Disk error handling strategies"
1004 msgstr "磁盘错误处理策略"
1005
1006 #. type: Plain text
1007 #: features.adoc:509
1008 msgid ""
1009 "If a hard drive fails which is used as a backing block device for DRBD on "
1010 "one of the nodes, DRBD may either pass on the I/O error to the upper layer "
1011 "(usually the file system) or it can mask I/O errors from upper layers."
1012 msgstr ""
1013 "如果被用作其中一个节点上DRBD的备份块设备的硬盘发生故障,DRBD可以将I/O错误传递到上层(通常是文件系统),也可以屏蔽上层的I/O错误。"
1014
1015 #. type: Block title
1016 #: features.adoc:511
1017 #, no-wrap
1018 msgid "Passing on I/O errors"
1019 msgstr "传递I/O错误"
1020
1021 #. type: Plain text
1022 #: features.adoc:518
1023 msgid ""
1024 "If DRBD is configured to pass on I/O errors, any such errors occurring on "
1025 "the lower-level device are transparently passed to upper I/O layers. Thus, "
1026 "it is left to upper layers to deal with such errors (this may result in a "
1027 "file system being remounted read-only, for example). This strategy does not "
1028 "ensure service continuity, and is hence not recommended for most users."
1029 msgstr ""
1030 "如果DRBD被配置为传递I/O错误,那么在低级设备上发生的任何此类错误都将透明地传递到上层I/O层。因此,由上层处理这些错误(例如,这可能导致文件系统以只读方式重新装载)。此策略无法确保服务的连续性,因此不建议大多数用户使用。"
1031
1032 #. type: Block title
1033 #: features.adoc:520
1034 #, no-wrap
1035 msgid "Masking I/O errors"
1036 msgstr "掩蔽I/O错误"
1037
1038 #. type: Plain text
1039 #: features.adoc:530
1040 msgid ""
1041 "If DRBD is configured to _detach_ on lower-level I/O error, DRBD will do so,"
1042 " automatically, upon occurrence of the first lower-level I/O error. The I/O "
1043 "error is masked from upper layers while DRBD transparently fetches the "
1044 "affected block from a peer node, over the network. From then onwards, DRBD "
1045 "is said to operate in diskless mode, and carries out all subsequent I/O "
1046 "operations, read and write, on the peer node(s) only. Performance in this "
1047 "mode will be reduced, but the service continues without interruption, and "
1048 "can be moved to the peer node in a deliberate fashion at a convenient time."
1049 msgstr ""
1050 "如果DRBD被配置为在低层I/O错误时分离, 即 _detach_ ,DRBD将在第一个低层I/O错误发生时自动这样做。当DRBD通过网络从对等节点透明地获取受影响的块时,I/O错误从上层被屏蔽。从那时起,DRBD被称为在无盘模式下操作,并且仅在对等节点上执行所有后续的读写I/O操作。此模式下的性能将降低,但服务不会中断,并且可以在方便的时候经过验证后再移动到对等节点。"
1051
1052 #. type: Plain text
1053 #: features.adoc:533
1054 msgid ""
1055 "See <<s-configure-io-error-behavior>> for information on configuring I/O "
1056 "error handling strategies for DRBD."
1057 msgstr "有关为DRBD配置I/O错误处理策略的信息,请参见<<s-configure-io-error-behavior>>。"
1058
1059 #. type: Title ===
1060 #: features.adoc:535
1061 #, no-wrap
1062 msgid "Strategies for dealing with outdated data"
1063 msgstr "处理过时数据的策略"
1064
1065 #. type: Plain text
1066 #: features.adoc:546
1067 msgid ""
1068 "DRBD distinguishes between _inconsistent_ and _outdated_ data. Inconsistent "
1069 "data is data that cannot be expected to be accessible and useful in any "
1070 "manner. The prime example for this is data on a node that is currently the "
1071 "target of an on-going synchronization. Data on such a node is part obsolete,"
1072 " part up to date, and impossible to identify as either. Thus, for example, "
1073 "if the device holds a filesystem (as is commonly the case), that filesystem "
1074 "would be unexpected to mount or even pass an automatic filesystem check."
1075 msgstr ""
1076 "DRBD能区分不一致数据和过时数据。不一致数据是指不能期望以任何方式访问和使用的数据。"
1077 "举例说明:举某节点上的数据为例,该节点当前是正在进行的同步的目标。"
1078 "这样一个节点上的数据部分是过时的,部分是最新的,不可能被识别为二者之一。"
1079 "因此,例如,如果设备持有一个文件系统(通常情况下是这样),那么该文件系统将无法挂载,甚至无法通过自动文件系统检查。"
1080
1081 #. type: Plain text
1082 #: features.adoc:555
1083 msgid ""
1084 "Outdated data, by contrast, is data on a secondary node that is consistent, "
1085 "but no longer in sync with the primary node. This would occur in any "
1086 "interruption of the replication link, whether temporary or permanent. Data "
1087 "on an outdated, disconnected secondary node is expected to be clean, but it "
1088 "reflects a state of the peer node some time past. In order to avoid services"
1089 " using outdated data, DRBD disallows <<s-resource-roles,promoting a "
1090 "resource>> that is in the outdated state."
1091 msgstr ""
1092 "相比之下,过时的数据是次节点(sencondary node)上的一致数据,但不再与主节点同步。"
1093 "这将发生在复制链接的任何中断中,无论是临时的还是永久的。"
1094 "过时的、断开连接的辅助节点上的数据应该是干净的,但它反映了过去某个时间对等节点的状态。"
1095 "为了避免服务使用过时的数据,DRBD不允许<<s-resource-"
1096 "roles,promoting a resource>>。"
1097
1098 #. type: Plain text
1099 #: features.adoc:564
1100 msgid ""
1101 "DRBD has interfaces that allow an external application to outdate a "
1102 "secondary node as soon as a network interruption occurs. DRBD will then "
1103 "refuse to switch the node to the primary role, preventing applications from "
1104 "using the outdated data. A complete implementation of this functionality "
1105 "exists for the <<ch-pacemaker,Pacemaker cluster management framework>> "
1106 "(where it uses a communication channel separate from the DRBD replication "
1107 "link). However, the interfaces are generic and may be easily used by any "
1108 "other cluster management application."
1109 msgstr ""
1110 "DRBD的接口允许外部应用程序在网络中断发生时立即使辅助节点失效。"
1111 "DRBD将拒绝将节点切换到主角色,从而防止应用程序使用过时的数据。此功能的完整实现可参阅<<ch-"
1112 "pacemaker,Pacemaker cluster management "
1113 "framework>>(它使用与DRBD复制链接分离的通信通道)。但是,这些接口是通用的,并且很容易被任何其他集群管理应用程序使用。"
1114
1115 #. type: Plain text
1116 #: features.adoc:568
1117 msgid ""
1118 "Whenever an outdated resource has its replication link re-established, its "
1119 "outdated flag is automatically cleared. A <<s-resync,background "
1120 "synchronization>> then follows."
1121 msgstr ""
1122 "每当过时的资源重新建立其复制链接时,其过时标志将自动清除。参阅<<s-resync,background synchronization>>。"
1123
1124 #. type: Plain text
1125 #: features.adoc:572
1126 msgid ""
1127 "See the section about <<s-pacemaker-fencing-dopd,the DRBD outdate-peer "
1128 "daemon (dopd)>> for an example DRBD/Heartbeat/Pacemaker configuration "
1129 "enabling protection against inadvertent use of outdated data."
1130 msgstr ""
1131 "关于DRBD/Heartbeat/pacemaker配置以支持防止意外使用过时数据的示例,请参考 <<s-pacemaker-fencing-dopd,the DRBD outdate-peer daemon (dopd)>> 的章节"
1132
1133 #. type: Title ===
1134 #: features.adoc:574
1135 #, no-wrap
1136 msgid "Three-way replication via stacking"
1137 msgstr "三路叠加复制"
1138
1139 #. type: Plain text
1140 #: features.adoc:579
1141 msgid ""
1142 "Available in DRBD version 8.3.0 and above; deprecated in DRBD version 9.x, "
1143 "as more nodes can be implemented on a single level. See <<s-drbdconf-conns>>"
1144 " for details."
1145 msgstr ""
1146 "在DRBD版本8.3.0及更高版本中可用;在DRBD版本9.x中不推荐使用,因为更多节点可以在单个级别上实现。有关详细信息,请参见<<s-drbdconf-"
1147 "conns>>。"
1148
1149 #. type: Plain text
1150 #: features.adoc:584
1151 msgid ""
1152 "When using three-way replication, DRBD adds a third node to an existing "
1153 "2-node cluster and replicates data to that node, where it can be used for "
1154 "backup and disaster recovery purposes. This type of configuration generally "
1155 "involves <<s-drbd-proxy>>."
1156 msgstr ""
1157 "当使用三向复制时,DRBD会将第三个节点添加到现有的2节点群集,并将数据复制到该节点,在该节点上,数据可用于备份和灾难恢复目的。这种类型的配置通常涉及<<s-drbd-"
1158 "proxy>>。"
1159
1160 #. type: Plain text
1161 #: features.adoc:588
1162 msgid ""
1163 "Three-way replication works by adding another, _stacked_ DRBD resource on "
1164 "top of the existing resource holding your production data, as seen in this "
1165 "illustration:"
1166 msgstr "三向复制通过在保存生产数据的现有资源上添加另一个堆叠 _stacked_ 的DRBD资源来工作,如下图所示:"
1167
1168 #. type: Block title
1169 #: features.adoc:589
1170 #, no-wrap
1171 msgid "DRBD resource stacking"
1172 msgstr "DRBD资源堆叠"
1173
1174 #. type: Target for macro image
1175 #: features.adoc:590
1176 #, no-wrap
1177 msgid "images/drbd-resource-stacking.svg"
1178 msgstr "images/drbd-resource-stacking.svg"
1179
1180 #. type: Plain text
1181 #: features.adoc:595
1182 msgid ""
1183 "The stacked resource is replicated using asynchronous replication (DRBD "
1184 "protocol A), whereas the production data would usually make use of "
1185 "synchronous replication (DRBD protocol C)."
1186 msgstr "堆叠(stack)资源使用异步复制(DRBD Protocol A)进行复制,而生产数据通常使用同步复制(DRBD Protocol C)。"
1187
1188 #. type: Plain text
1189 #: features.adoc:602
1190 msgid ""
1191 "Three-way replication can be used permanently, where the third node is "
1192 "continuously updated with data from the production cluster. Alternatively, "
1193 "it may also be employed on demand, where the production cluster is normally "
1194 "disconnected from the backup site, and site-to-site synchronization is "
1195 "performed on a regular basis, for example by running a nightly cron job."
1196 msgstr ""
1197 "三路复制可以永久使用,其中第三个节点将使用生产集群中的数据不断更新。或者,它也可以按需使用,其中生产集群通常与备份站点断开连接,并且定期执行站点到站点的同步,例如通过运行夜间cron作业。"
1198
1199 #. type: Title ===
1200 #: features.adoc:604
1201 #, no-wrap
1202 msgid "Long-distance replication via DRBD Proxy"
1203 msgstr "通过DRBD代理进行远程复制"
1204
1205 #. type: Plain text
1206 #: features.adoc:611
1207 msgid ""
1208 "DRBD's <<s-replication-protocols,protocol A>> is asynchronous, but the "
1209 "writing application will block as soon as the socket output buffer is full "
1210 "(see the `sndbuf-size` option in the man page of `drbd.conf`). In that "
1211 "event, the writing application has to wait until some of the data written "
1212 "runs off through a possibly small bandwidth network link."
1213 msgstr ""
1214 "DRBD的<<s-replication-protocols,protocol "
1215 "A>>是异步的,但是一旦套接字输出缓冲区满了,写入应用程序就会阻塞(请参见 `DRBD.conf` 手册页中的 `sndbuf "
1216 "size` 选项)。在这种情况下,写入应用程序必须等到某些写入的数据, 这些数据可能要通过可能很小的带宽网络,而使得链路耗尽。"
1217
1218 #. type: Plain text
1219 #: features.adoc:615
1220 msgid ""
1221 "The average write bandwidth is limited by available bandwidth of the network"
1222 " link. Write bursts can only be handled gracefully if they fit into the "
1223 "limited socket output buffer."
1224 msgstr "平均写入带宽受网络链路可用带宽的限制。只有配置好受限的套接字输出缓冲区时,突发写入才能被优雅的处理。"
1225
1226 #. type: Plain text
1227 #: features.adoc:620
1228 msgid ""
1229 "You can mitigate this by DRBD Proxy's buffering mechanism. DRBD Proxy will "
1230 "place changed data from the DRBD device on the primary node into its "
1231 "buffers. DRBD Proxy's buffer size is freely configurable, only limited by "
1232 "the address room size and available physical RAM."
1233 msgstr ""
1234 "您可以通过DRBD "
1235 "Proxy的缓冲机制来缓解这种情况。DRBD代理将从主节点上的DRBD设备将更改的数据放入其缓冲区。"
1236 "DRBD代理的缓冲区大小是可以自由配置的,仅受地址空间大小和可用物理RAM的限制。"
1237
1238 #. type: Plain text
1239 #: features.adoc:626
1240 msgid ""
1241 "Optionally DRBD Proxy can be configured to compress and decompress the data "
1242 "it forwards. Compression and decompression of DRBD's data packets might "
1243 "slightly increase latency. However, when the bandwidth of the network link "
1244 "is the limiting factor, the gain in shortening transmit time outweighs the "
1245 "compression and decompression overhead."
1246 msgstr ""
1247 "可选地,可以配置DRBD代理来压缩和解压缩它转发的数据。"
1248 "压缩和解压缩DRBD的数据包可能会稍微增加延迟。"
1249 "然而,当网络链路的带宽是限制因素时,缩短传输时间的增益大于压缩和解压缩开销。"
1250
1251 #. type: Plain text
1252 #: features.adoc:629
1253 msgid ""
1254 "Compression and decompression were implemented with multi core SMP systems "
1255 "in mind, and can utilize multiple CPU cores."
1256 msgstr "压缩和解压缩是在考虑多核SMP系统的情况下实现的,可以利用多个CPU核。"
1257
1258 #. type: Plain text
1259 #: features.adoc:633
1260 msgid ""
1261 "The fact that most block I/O data compresses very well and therefore the "
1262 "effective bandwidth increases justifies the use of the DRBD Proxy even with "
1263 "DRBD protocols B and C."
1264 msgstr "事实上,大多数块I/O数据压缩得非常好,因此对带宽的使用更加有效,"
1265 "这证明了即使使用DRBD Protocol B和C也可以使用DRBD代理。"
1266
1267 #. type: Plain text
1268 #: features.adoc:635
1269 msgid "See <<s-using-drbd-proxy>> for information on configuring DRBD Proxy."
1270 msgstr "有关配置drbd proxy的信息,请参见<<s-using-drbd-proxy>>。"
1271
1272 #. type: Plain text
1273 #: features.adoc:639
1274 msgid ""
1275 "DRBD Proxy is one of the few parts of the DRBD product family that is not "
1276 "published under an open source license. Please contact [email protected] or "
1277 "[email protected] for an evaluation license."
1278 msgstr ""
1279 "DRBD "
1280 "Proxy是DRBD产品系列中少数未在开源许可下发布的部分之一。请联系 [email protected] 或 [email protected] 获取评估许可证。"
1281
1282 #. type: Title ===
1283 #: features.adoc:641
1284 #, no-wrap
1285 msgid "Truck based replication"
1286 msgstr "基于卡车的复制"
1287
1288 #. type: Plain text
1289 #: features.adoc:647
1290 msgid ""
1291 "Truck based replication, also known as disk shipping, is a means of "
1292 "preseeding a remote site with data to be replicated, by physically shipping "
1293 "storage media to the remote site. This is particularly suited for situations"
1294 " where"
1295 msgstr "基于卡车的复制,也称为磁盘传送,是通过物理方式将存储介质传送到远程站点,为远程站点提供要复制的数据的一种方式。这特别适用于"
1296
1297 #. type: Plain text
1298 #: features.adoc:650
1299 msgid ""
1300 "the total amount of data to be replicated is fairly large (more than a few "
1301 "hundreds of gigabytes);"
1302 msgstr "要复制的数据总量相当大(超过几百GB);"
1303
1304 #. type: Plain text
1305 #: features.adoc:653
1306 msgid ""
1307 "the expected rate of change of the data to be replicated is less than "
1308 "enormous;"
1309 msgstr "要复制的数据的预期变化率不太大;"
1310
1311 #. type: Plain text
1312 #: features.adoc:656
1313 msgid "the available network bandwidth between sites is limited."
1314 msgstr "站点之间的可用网络带宽是有限的。"
1315
1316 #. type: Plain text
1317 #: features.adoc:663
1318 msgid ""
1319 "In such situations, without truck based replication, DRBD would require a "
1320 "very long initial device synchronization (on the order of weeks, months, or "
1321 "years). Truck based replication allows to ship a data seed to the remote "
1322 "site, and so drastically reduces the initial synchronization time. See "
1323 "<<s-using-truck-based-replication>> for details on this use case."
1324 msgstr ""
1325 "在这种情况下,如果没有基于卡车的复制,DRBD将需要非常长的初始设备同步(按周、月或年的顺序)。基于卡车的复制允许将数据种子传送到远程站点,因此大大缩短了初始同步时间。有关此用例的详细信息,请参见<<s-using-"
1326 "truck-based-replication>>。"
1327
1328 #. type: Title ===
1329 #: features.adoc:665
1330 #, no-wrap
1331 msgid "Floating peers"
1332 msgstr "浮动节点"
1333
1334 #. type: Plain text
1335 #: features.adoc:668
1336 msgid "This feature is available in DRBD versions 8.3.2 and above."
1337 msgstr "此功能在DRBD 8.3.2及以上版本中可用。"
1338
1339 #. type: Plain text
1340 #: features.adoc:675
1341 msgid ""
1342 "A somewhat special use case for DRBD is the _floating peers_ configuration. "
1343 "In floating peer setups, DRBD peers are not tied to specific named hosts (as"
1344 " in conventional configurations), but instead have the ability to float "
1345 "between several hosts. In such a configuration, DRBD identifies peers by IP "
1346 "address, rather than by host name."
1347 msgstr ""
1348 "DRBD的一个有点特殊的用例是 _浮动节点_ 。在浮动节点设置中,DRBD节点不绑定到特定的命名主机"
1349 "(如在传统配置中),而是能够在多个主机之间浮动。"
1350 "在这种配置中,DRBD通过IP地址而不是主机名来标识对方。"
1351
1352 #. type: Plain text
1353 #: features.adoc:678
1354 msgid ""
1355 "For more information about managing floating peer configurations, see "
1356 "<<s-pacemaker-floating-peers>>."
1357 msgstr "有关管理浮动对等配置的更多信息,请参见<<s-pacemaker-floating-peers>>。"
1358
1359 #. type: Title ===
1360 #: features.adoc:680
1361 #, no-wrap
1362 msgid "Data rebalancing (horizontal storage scaling)"
1363 msgstr "数据重新平衡(水平存储扩展)"
1364
1365 #. type: Plain text
1366 #: features.adoc:684
1367 msgid ""
1368 "If your company's policy says that 3-way redundancy is needed, you need at "
1369 "least 3 servers for your setup."
1370 msgstr "如果公司的政策规定需要3路冗余,则安装时至少需要3台服务器。"
1371
1372 #. type: Plain text
1373 #: features.adoc:688
1374 msgid ""
1375 "Now, as your storage demands grow, you will encounter the need for "
1376 "additional servers. Rather than having to buy 3 more servers at the same "
1377 "time, you can _rebalance_ your data across a single additional node."
1378 msgstr "现在,随着存储需求的增长,您将需要额外的服务器。比起同时购买3台以上的服务器的方案,您也可以在一个额外的节点上重新平衡数据。"
1379
1380 #. type: Block title
1381 #: features.adoc:689
1382 #, no-wrap
1383 msgid "DRBD data rebalancing"
1384 msgstr "DRBD数据重新平衡"
1385
1386 #. type: Target for macro image
1387 #: features.adoc:690
1388 #, no-wrap
1389 msgid "images/rebalance.svg"
1390 msgstr "images/rebalance.svg"
1391
1392 #. [scaledwidth="75"]
1393 #. type: Plain text
1394 #: features.adoc:697
1395 msgid ""
1396 "In the figure above you can see the _before_ and _after_ states: from 3 "
1397 "nodes with three 25TiB volumes each (for a net 75TiB), to 4 nodes, with net "
1398 "100TiB."
1399 msgstr ""
1400 "在上图中,您可以看到 _before_ 和 _after_ 状态:从3个节点(每个节点有3个25TiB卷)(净75TiB)到4个节点(净"
1401 "100TiB)。"
1402
1403 #. type: Plain text
1404 #: features.adoc:700
1405 msgid ""
1406 "DRBD 9 makes it possible to do an online, live migration of the data; please"
1407 " see <<s-rebalance-workflow>> for the exact steps needed."
1408 msgstr "DRBD 9使在线实时迁移数据成为可能;请参见<<s-rebalance-workflow>>了解所需的确切步骤。"
1409
1410 #. type: Title ===
1411 #: features.adoc:702
1412 #, no-wrap
1413 msgid "DRBD client"
1414 msgstr "DRBD客户端"
1415
1416 #. type: Plain text
1417 #: features.adoc:706
1418 msgid ""
1419 "With the multiple-peer feature of DRBD a number of interesting use-cases "
1420 "have been added, for example the _DRBD client_."
1421 msgstr "通过DRBD的多节点特性,添加了许多有趣的用例,例如 _DRBD 客户端_。"
1422
1423 #. type: Plain text
1424 #: features.adoc:711
1425 msgid ""
1426 "The basic idea is that the DRBD _backend_ can consist of 3, 4, or more nodes"
1427 " (depending on the policy of required redundancy); but, as DRBD 9 can "
1428 "connect more nodes than that. DRBD works then as a storage access protocol "
1429 "in addition to storage replication."
1430 msgstr ""
1431 "基本思想是DRBD _后端_ 可以由3、4或更多节点组成(取决于所需冗余的策略);但是,由于DRBD "
1432 "9可以连接更多的节点。DRBD除了作为存储复制之外,还作为存储访问协议工作。"
1433
1434 #. type: Plain text
1435 #: features.adoc:716
1436 msgid ""
1437 "All write requests executed on a primary _DRBD client_ gets shipped to all "
1438 "nodes equipped with storage. Read requests are only shipped to one of the "
1439 "server nodes. The _DRBD client_ will evenly distribute the read requests "
1440 "among all available server nodes."
1441 msgstr ""
1442 "在主 _DRBD客户端_ 上执行的所有写请求都会被发送到配备了存储设备的所有节点。读取请求仅传送到其中一个服务器节点。_DRBD客户端_ 将在所有可用的服务器节点之间平均分配读取请求。"
1443
1444 #. type: Plain text
1445 #: features.adoc:720
1446 msgid ""
1447 "See <<s-permanently-diskless-nodes>> for the configuration file syntax or in"
1448 " case you are using drbdmanage, use its `--client` option when assigning "
1449 "resources to nodes."
1450 msgstr ""
1451 "有关配置文件语法,请参见<<s-permanently-diskless-"
1452 "nodes>>或在使用drbdmanage的情况下,在为节点分配资源时使用其 `--client` 选项。"
1453
1454 #. type: Title ===
1455 #: features.adoc:722
1456 #, no-wrap
1457 msgid "Quorum"
1458 msgstr "Quorum(仲裁)"
1459
1460 #. type: Plain text
1461 #: features.adoc:727
1462 msgid ""
1463 "In order to avoid split brain or diverging data of replicas one has to "
1464 "configure fencing. It turns out that in real world deployments node fencing "
1465 "is not popular because often mistakes happen in planning or deploying it."
1466 msgstr "为了避免脑裂或数据分散,必须配置围栏(fencing)。事实证明,在实际部署中,节点围栏并不流行,因为在规划或部署时经常会出错。"
1467
1468 #. type: Plain text
1469 #: features.adoc:731
1470 msgid ""
1471 "In the moment a data-set has 3 replicas one can rely on the quorum "
1472 "implementation within DRBD instead of Pacemaker level fencing. Pacemaker "
1473 "gets informed about quorum or loss-of-quorum via the master score of the "
1474 "resource."
1475 msgstr "当一个数据集有3个副本时,可以依赖DRBD中的仲裁实现,而不是依赖Pacemake级别的围栏。Pacemaker通过资源的master分数获得有关Quorum(仲裁)或Quorum(仲裁)丢失的通知。"
1476
1477 #. type: Plain text
1478 #: features.adoc:737
1479 msgid ""
1480 "DRBD's quorum can be used with any kind of Linux based service. In case the "
1481 "service terminates in the moment it is exposed to an IO-error the on quorum "
1482 "loss behavior is very elegant. In case the service does not terminate upon "
1483 "IO-error the systems needs to be configured to reboot a primary node that "
1484 "looses quorum."
1485 msgstr ""
1486 "DRBD的quorum(仲裁)可以用于任何基于Linux的服务。"
1487 "如果一个服务在出现IO-错误的时候终止,quorum(仲裁)丢失的行为会非常优雅。如果服务没有在IO-错误时出现终止,则需要将系统设置为丢失Quorum(仲裁)后重启主节点。"
1488
1489 #. type: Plain text
1490 #: features.adoc:739
1491 msgid "See <<s-configuring-quorum>> for more information."
1492 msgstr "有关详细信息,请参见<<s-configuring-quorum>>。"
1493
1494 #. type: Title ====
1495 #: features.adoc:741
1496 #, no-wrap
1497 msgid "Tiebreaker"
1498 msgstr "断路器(Tiebreaker)"
1499
1500 #. type: delimited block =
1501 #: features.adoc:746
1502 msgid ""
1503 "The quorum tiebreaker feature is available in DRBD versions 9.0.18 and "
1504 "above."
1505 msgstr "quorum tiebreaker功能在DRBD版本9.0.18及更高版本中可用。"
1506
1507 #. type: Plain text
1508 #: features.adoc:752
1509 msgid ""
1510 "The fundamental problem with two node clusters is that in the moment they "
1511 "lose connectivity we have two partitions and none of them has quorum, which "
1512 "results in the cluster halting the service. This problem can be mitigated by"
1513 " adding a third, diskless node to the cluster which will then act as a "
1514 "quorum tiebreaker."
1515 msgstr ""
1516 "两节点集群的根本问题是,当它们失去连接时,我们有两个分区,而它们都没有仲裁,这导致集群停止服务。这个问题可以通过在集群中添加第三个无磁盘节点来缓解,该节点将充当仲裁层断路器。"
1517
1518 #. type: Plain text
1519 #: features.adoc:754
1520 msgid "See <<s-configuring-quorum-tiebreaker>> for more information."
1521 msgstr "有关详细信息,请参见<<s-configuring-quorum-tiebreaker>>。"
1522
1523 #. type: Title ===
1524 #: features.adoc:756
1525 #, no-wrap
1526 msgid "DRBD integration for VCS"
1527 msgstr "VCS的DRBD集成"
1528
1529 #. type: Plain text
1530 #: features.adoc:762
1531 msgid ""
1532 "Veritas Cluster Server (or Veritas Infoscale Availabilty) is a commercial "
1533 "alternative to the Pacemaker open source software. In case you need to "
1534 "integrate DRBD resources into a VCS setup please see the README in "
1535 "https://github.com/LINBIT/drbd-utils/tree/master/scripts/VCS[drbd-"
1536 "utils/scripts/VCS] on github."
1537 msgstr ""
1538 "Veritas Cluster Server(或Veritas Infoscale "
1539 "Availability)是Pacemaker开源软件的商业替代品。如果您需要将DRBD资源集成到VCS设置中,请参阅github上的"
1540 " https://github.com/LINBIT/drbd-utils/tree/master/scripts/VCS[drbd-utils/scripts/VCS]"