| 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=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: Title == |
| 20 |
#: troubleshooting.adoc:2 |
| 21 |
#, no-wrap |
| 22 |
msgid "Troubleshooting and error recovery" |
| 23 |
msgstr "故障排除和错误恢复" |
| 24 |
|
| 25 |
#. type: Plain text |
| 26 |
#: troubleshooting.adoc:6 |
| 27 |
msgid "" |
| 28 |
"This chapter describes tasks to be performed in the event of hardware or " |
| 29 |
"system failures." |
| 30 |
msgstr "本章描述硬件或系统故障时要执行的任务。" |
| 31 |
|
| 32 |
#. type: Title === |
| 33 |
#: troubleshooting.adoc:9 |
| 34 |
#, no-wrap |
| 35 |
msgid "Dealing with hard drive failure" |
| 36 |
msgstr "处理硬盘故障" |
| 37 |
|
| 38 |
#. type: Plain text |
| 39 |
#: troubleshooting.adoc:15 |
| 40 |
msgid "" |
| 41 |
"indexterm:[drive failure]indexterm:[disk failure]How to deal with hard drive" |
| 42 |
" failure depends on the way DRBD is configured to handle disk I/O errors " |
| 43 |
"(see <<s-handling-disk-errors>>), and on the type of meta data configured " |
| 44 |
"(see <<s-metadata>>)." |
| 45 |
msgstr "" |
| 46 |
"indexterm:[drive failure]indexterm:[disk " |
| 47 |
"failure]如何处理硬盘故障取决于DRBD处理磁盘I/O错误的配置方式(请参见<<s-handling-disk-" |
| 48 |
"errors>>),以及配置的元数据类型(请参见<<s-metadata>>)。" |
| 49 |
|
| 50 |
#. type: delimited block = |
| 51 |
#: troubleshooting.adoc:21 |
| 52 |
msgid "" |
| 53 |
"For the most part, the steps described here apply only if you run DRBD " |
| 54 |
"directly on top of physical hard drives. They generally do not apply in case" |
| 55 |
" you are running DRBD layered on top of" |
| 56 |
msgstr "在大多数情况下,这里描述的步骤仅适用于直接在物理硬盘上运行DRBD的情况。它们通常不适用于在" |
| 57 |
|
| 58 |
#. type: delimited block = |
| 59 |
#: troubleshooting.adoc:24 |
| 60 |
msgid "" |
| 61 |
"an MD software RAID set (in this case, use `mdadm` to manage drive " |
| 62 |
"replacement)," |
| 63 |
msgstr "MD软件RAID集(在本例中,使用 `mdadm` 管理驱动器更换)," |
| 64 |
|
| 65 |
#. type: delimited block = |
| 66 |
#: troubleshooting.adoc:25 |
| 67 |
msgid "device-mapper RAID (use `dmraid`)," |
| 68 |
msgstr "设备映射器RAID(使用 `dmraid` )," |
| 69 |
|
| 70 |
#. type: delimited block = |
| 71 |
#: troubleshooting.adoc:27 |
| 72 |
msgid "" |
| 73 |
"a hardware RAID appliance (follow the vendor's instructions on how to deal " |
| 74 |
"with failed drives)," |
| 75 |
msgstr "一个硬件RAID设备(遵循供应商关于如何处理故障驱动器的说明)," |
| 76 |
|
| 77 |
#. type: delimited block = |
| 78 |
#: troubleshooting.adoc:29 |
| 79 |
msgid "" |
| 80 |
"some non-standard device-mapper virtual block devices (see the device mapper" |
| 81 |
" documentation)." |
| 82 |
msgstr "一些非标准设备映射器虚拟块设备(请参阅设备映射器文档)。" |
| 83 |
|
| 84 |
#. type: Title ==== |
| 85 |
#: troubleshooting.adoc:32 |
| 86 |
#, no-wrap |
| 87 |
msgid "Manually detaching DRBD from your hard drive" |
| 88 |
msgstr "从硬盘手动分离DRBD" |
| 89 |
|
| 90 |
#. type: Plain text |
| 91 |
#: troubleshooting.adoc:37 |
| 92 |
msgid "" |
| 93 |
"indexterm:[drbdadm, detach]If DRBD is <<fp-io-error-pass-on,configured to " |
| 94 |
"pass on I/O errors>> (not recommended), you must first detach the DRBD " |
| 95 |
"resource, that is, disassociate it from its backing storage:" |
| 96 |
msgstr "" |
| 97 |
"indexterm:[drbdadm,detach]如果DRBD是<<fp-io-error-pass-on,configured to pass on" |
| 98 |
" I/O errors>>(不推荐),则必须首先分离DRBD资源,即,将其与其备份存储解除关联:" |
| 99 |
|
| 100 |
#. type: delimited block - |
| 101 |
#: troubleshooting.adoc:40 |
| 102 |
#, no-wrap |
| 103 |
msgid "# drbdadm detach <resource>\n" |
| 104 |
msgstr "# drbdadm detach <resource>\n" |
| 105 |
|
| 106 |
#. type: Plain text |
| 107 |
#: troubleshooting.adoc:46 |
| 108 |
msgid "" |
| 109 |
"By running the `drbdadm status` or the `drbdadm dstate` command, you will " |
| 110 |
"now be able to verify that the resource is now in indexterm:[diskless " |
| 111 |
"mode]indexterm:[diskless (disk state)]indexterm:[disk state, " |
| 112 |
"Diskless]_diskless mode_:" |
| 113 |
msgstr "" |
| 114 |
"通过运行 `drbdadm status` 或 `drbdadm dstate` 命令,您现在可以验证资源是否现在处于indexterm:[diskless " |
| 115 |
"mode]indexterm:[diskless(disk state)]indexterm:[disk state,diskless] _diskless mode_:" |
| 116 |
|
| 117 |
#. type: delimited block - |
| 118 |
#: troubleshooting.adoc:55 |
| 119 |
#, no-wrap |
| 120 |
msgid "" |
| 121 |
"# drbdadm status <resource>\n" |
| 122 |
"<resource> role:Primary\n" |
| 123 |
" volume:0 disk:Diskless\n" |
| 124 |
" <peer> role:Secondary\n" |
| 125 |
" volume:0 peer-disk:UpToDate\n" |
| 126 |
"# drbdadm dstate <resource>\n" |
| 127 |
"Diskless/UpToDate\n" |
| 128 |
msgstr "" |
| 129 |
"# drbdadm status <resource>\n" |
| 130 |
"<resource> role:Primary\n" |
| 131 |
" volume:0 disk:Diskless\n" |
| 132 |
" <peer> role:Secondary\n" |
| 133 |
" volume:0 peer-disk:UpToDate\n" |
| 134 |
"# drbdadm dstate <resource>\n" |
| 135 |
"Diskless/UpToDate\n" |
| 136 |
|
| 137 |
#. type: Plain text |
| 138 |
#: troubleshooting.adoc:59 |
| 139 |
msgid "" |
| 140 |
"If the disk failure has occured on your primary node, you may combine this " |
| 141 |
"step with a switch-over operation." |
| 142 |
msgstr "如果主节点上发生磁盘故障,则可以将此步骤与切换操作相结合。" |
| 143 |
|
| 144 |
#. type: Title ==== |
| 145 |
#: troubleshooting.adoc:61 |
| 146 |
#, no-wrap |
| 147 |
msgid "Automatic detach on I/O error" |
| 148 |
msgstr "I/O错误时自动分离" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: troubleshooting.adoc:69 |
| 152 |
msgid "" |
| 153 |
"If DRBD is <<fp-io-error-detach,configured to automatically detach upon I/O " |
| 154 |
"error>> (the recommended option), DRBD should have automatically detached " |
| 155 |
"the resource from its backing storage already, without manual intervention. " |
| 156 |
"You may still use the `drbdadm status` command to verify that the resource " |
| 157 |
"is in fact running in diskless mode." |
| 158 |
msgstr "" |
| 159 |
"如果DRBD是<<fp-io-error-detach,configured to automatically detach upon I/O " |
| 160 |
"error>>时自动分离(推荐选项),DRBD应该已经自动将资源从其备份存储中分离,而无需手动干预。您仍然可以使用 `drbdadm status` " |
| 161 |
"命令来验证资源实际上是在无盘模式下运行的。" |
| 162 |
|
| 163 |
#. type: Title ==== |
| 164 |
#: troubleshooting.adoc:71 |
| 165 |
#, no-wrap |
| 166 |
msgid "Replacing a failed disk when using internal meta data" |
| 167 |
msgstr "使用内部元数据时替换故障磁盘" |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: troubleshooting.adoc:77 |
| 171 |
msgid "" |
| 172 |
"If using <<s-internal-meta-data,internal meta data>>, it is sufficient to " |
| 173 |
"bind the DRBD device to the new hard disk. If the new hard disk has to be " |
| 174 |
"addressed by another Linux device name than the defective disk, the DRBD " |
| 175 |
"configuration file has to be modified accordingly." |
| 176 |
msgstr "" |
| 177 |
"如果使用<<s-internal-meta-data,internal meta " |
| 178 |
"data>>,则足以将DRBD设备绑定到新硬盘。如果新硬盘必须用另一个Linux设备名而不是缺陷磁盘寻址,则必须相应地修改DRBD配置文件。" |
| 179 |
|
| 180 |
#. type: Plain text |
| 181 |
#: troubleshooting.adoc:80 |
| 182 |
msgid "" |
| 183 |
"This process involves creating a new meta data set, then re-attaching the " |
| 184 |
"resource: indexterm:[drbdadm, create-md]" |
| 185 |
msgstr "此过程包括创建新的元数据集,然后重新附加资源:indexterm:[drbdadm,create-md]" |
| 186 |
|
| 187 |
#. type: delimited block - |
| 188 |
#: troubleshooting.adoc:88 troubleshooting.adoc:111 |
| 189 |
#, no-wrap |
| 190 |
msgid "" |
| 191 |
"# drbdadm create-md <resource>\n" |
| 192 |
"v08 Magic number not found\n" |
| 193 |
"Writing meta data...\n" |
| 194 |
"initialising activity log\n" |
| 195 |
"NOT initializing bitmap\n" |
| 196 |
"New drbd meta data block sucessfully created.\n" |
| 197 |
msgstr "" |
| 198 |
"# drbdadm create-md <resource>\n" |
| 199 |
"v08 Magic number not found\n" |
| 200 |
"Writing meta data...\n" |
| 201 |
"initialising activity log\n" |
| 202 |
"NOT initializing bitmap\n" |
| 203 |
"New drbd meta data block sucessfully created.\n" |
| 204 |
|
| 205 |
#. type: delimited block - |
| 206 |
#: troubleshooting.adoc:90 |
| 207 |
#, no-wrap |
| 208 |
msgid "# drbdadm attach <resource>\n" |
| 209 |
msgstr "# drbdadm attach <resource>\n" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: troubleshooting.adoc:95 |
| 213 |
msgid "" |
| 214 |
"Full synchronization of the new hard disk starts instantaneously and " |
| 215 |
"automatically. You will be able to monitor the synchronization's progress " |
| 216 |
"via `drbdadm status --verbose`, as with any background synchronization." |
| 217 |
msgstr "新硬盘的完全同步将立即自动启动。您将能够通过 `drbdadm status --verbose` 监视同步的进度,就像任何后台同步一样。" |
| 218 |
|
| 219 |
#. type: Title ==== |
| 220 |
#: troubleshooting.adoc:97 |
| 221 |
#, no-wrap |
| 222 |
msgid "Replacing a failed disk when using external meta data" |
| 223 |
msgstr "使用外部元数据时替换故障磁盘" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: troubleshooting.adoc:103 |
| 227 |
msgid "" |
| 228 |
"When using <<s-external-meta-data,external meta data>>, the procedure is " |
| 229 |
"basically the same. However, DRBD is not able to recognize independently " |
| 230 |
"that the hard drive was swapped, thus an additional step is required." |
| 231 |
msgstr "" |
| 232 |
"使用<<s-external-meta-data,external meta " |
| 233 |
"data>>时,程序基本相同。然而,DRBD无法独立地识别硬盘驱动器已被交换,因此需要额外的步骤。" |
| 234 |
|
| 235 |
#. type: delimited block - |
| 236 |
#: troubleshooting.adoc:114 |
| 237 |
#, no-wrap |
| 238 |
msgid "" |
| 239 |
"# drbdadm attach <resource>\n" |
| 240 |
"# drbdadm invalidate <resource>\n" |
| 241 |
msgstr "" |
| 242 |
"# drbdadm attach <resource>\n" |
| 243 |
"# drbdadm invalidate <resource>\n" |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: troubleshooting.adoc:119 |
| 247 |
msgid "" |
| 248 |
"Make sure to run `drbdadm invalidate` on the node __*without*__ good data; " |
| 249 |
"this command will cause the local contents to be overwritten with data from " |
| 250 |
"the peers, so running this command on the wrong node might lose data!" |
| 251 |
msgstr "" |
| 252 |
"请确保在 __*没有*__ 完好数据的节点上运行 `drbdadm invalidate` " |
| 253 |
"此命令将导致本地内容被对等方的数据覆盖,因此在错误的节点上运行此命令可能会丢失数据!" |
| 254 |
|
| 255 |
#. type: Plain text |
| 256 |
#: troubleshooting.adoc:122 |
| 257 |
msgid "" |
| 258 |
"Here, the `drbdadm invalidate` command triggers synchronization. Again, sync" |
| 259 |
" progress may be observed via `drbdadm status --verbose`." |
| 260 |
msgstr "" |
| 261 |
"这里,`drbdadm invalidate` 命令触发同步。同样,可以通过 `drbdadm status --verbose` 来观察同步进度。" |
| 262 |
|
| 263 |
#. type: Title === |
| 264 |
#: troubleshooting.adoc:124 |
| 265 |
#, no-wrap |
| 266 |
msgid "Dealing with node failure" |
| 267 |
msgstr "处理节点故障" |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: troubleshooting.adoc:135 |
| 271 |
msgid "" |
| 272 |
"indexterm:[node failure]When DRBD detects that its peer node is down (either" |
| 273 |
" by true hardware failure or manual intervention), DRBD changes its " |
| 274 |
"connection state from _Connected_ to _Connecting_ and waits for the peer " |
| 275 |
"node to re-appear. The DRBD resource is then said to operate in " |
| 276 |
"_disconnected mode_. In disconnected mode, the resource and its associated " |
| 277 |
"block device are fully usable, and may be promoted and demoted as necessary," |
| 278 |
" but no block modifications are being replicated to the peer node. Instead, " |
| 279 |
"DRBD stores which blocks are being modified while disconnected, on a per-" |
| 280 |
"peer basis." |
| 281 |
msgstr "" |
| 282 |
"indexterm:[node " |
| 283 |
"failure]当DRBD检测到其对等节点关闭时(通过真正的硬件故障或手动干预)," |
| 284 |
"DRBD将其连接状态从 _Connected_ 更改为 _Connecting_ ,并等待对等节点重新出现。" |
| 285 |
"然后,DRBD资源被称为在 _disconnected mode_ 模式下工作。在断开连接模式下," |
| 286 |
"资源及其关联的块设备完全可用,并且可以根据需要升级和降级," |
| 287 |
"但不会将块修改复制到对等节点。相反,DRBD以每个对等点为基础存储断开连接时正在修改的块。" |
| 288 |
|
| 289 |
#. type: Title ==== |
| 290 |
#: troubleshooting.adoc:137 |
| 291 |
#, no-wrap |
| 292 |
msgid "Dealing with temporary secondary node failure" |
| 293 |
msgstr "处理临时辅助节点故障" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: troubleshooting.adoc:147 |
| 297 |
msgid "" |
| 298 |
"indexterm:[node failure]If a node that currently has a resource in the " |
| 299 |
"secondary role fails temporarily (due to, for example, a memory problem that" |
| 300 |
" is subsequently rectified by replacing RAM), no further intervention is " |
| 301 |
"necessary — besides the obvious necessity to repair the failed node and " |
| 302 |
"bring it back online. When that happens, the two nodes will simply re-" |
| 303 |
"establish connectivity upon system start-up. After this, DRBD synchronizes " |
| 304 |
"all modifications made on the primary node in the meantime to the secondary " |
| 305 |
"node." |
| 306 |
msgstr "" |
| 307 |
"indexterm:[node " |
| 308 |
"failure]如果当前具有次要角色中的资源的节点暂时" |
| 309 |
"出现故障(例如,由于随后通过替换RAM纠正的内存问题),则无需进一步干预-" |
| 310 |
"除了修复故障节点并使其重新联机的明显必要性之外。当这种情况发生时," |
| 311 |
"两个节点只需在系统启动时重新建立连接。在此之后,DRBD将同时在主节点上所做的所有修改同步到辅助节点。" |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: troubleshooting.adoc:155 |
| 315 |
msgid "" |
| 316 |
"At this point, due to the nature of DRBD's re-synchronization algorithm, the" |
| 317 |
" resource is briefly inconsistent on the secondary node. During that short " |
| 318 |
"time window, the secondary node can not switch to the Primary role if the " |
| 319 |
"peer is unavailable. Thus, the period in which your cluster is not redundant" |
| 320 |
" consists of the actual secondary node down time, plus the subsequent re-" |
| 321 |
"synchronization." |
| 322 |
msgstr "" |
| 323 |
"此时,由于DRBD的重新同步算法的性质,资源在次要节点上短暂地不一致。" |
| 324 |
"在短时间内,如果对等节点不可用,则辅助节点无法切换到主角色。" |
| 325 |
"因此,集群不冗余的时间段由实际的辅助节点停机时间加上随后的重新同步组成。" |
| 326 |
|
| 327 |
#. type: Plain text |
| 328 |
#: troubleshooting.adoc:159 |
| 329 |
msgid "" |
| 330 |
"Please note that with DRBD 9 more than two nodes can be connected for each " |
| 331 |
"resource, so for e.g. 4 nodes a single failing secondary still leaves two " |
| 332 |
"other secondaries available for failover." |
| 333 |
msgstr "请注意,使用DRBD 9,每个资源可以连接两个以上的节点,因此对于例如4个节点,一个失败的辅助节点仍然保留两个其他的辅助节点用于故障转移。" |
| 334 |
|
| 335 |
#. type: Title ==== |
| 336 |
#: troubleshooting.adoc:161 |
| 337 |
#, no-wrap |
| 338 |
msgid "Dealing with temporary primary node failure" |
| 339 |
msgstr "处理临时主节点故障" |
| 340 |
|
| 341 |
#. type: Plain text |
| 342 |
#: troubleshooting.adoc:169 |
| 343 |
msgid "" |
| 344 |
"indexterm:[node failure]From DRBD's standpoint, failure of the primary node " |
| 345 |
"is almost identical to a failure of the secondary node. The surviving node " |
| 346 |
"detects the peer node's failure, and switches to disconnected mode. DRBD " |
| 347 |
"does _not_ promote the surviving node to the primary role; it is the cluster" |
| 348 |
" management application's responsibility to do so." |
| 349 |
msgstr "" |
| 350 |
"indexterm:[node " |
| 351 |
"failure]从DRBD的角度来看,主节点的故障几乎等同于次节点的故障。幸存节点检测到对等节点的故障,并切换到断开模式。DRBD不会将幸存节点提升为主要角色;集群管理应用程序有责任这样做。" |
| 352 |
|
| 353 |
#. type: Plain text |
| 354 |
#: troubleshooting.adoc:175 |
| 355 |
msgid "" |
| 356 |
"When the failed node is repaired and returns to the cluster, it does so in " |
| 357 |
"the secondary role, thus, as outlined in the previous section, no further " |
| 358 |
"manual intervention is necessary. Again, DRBD does not change the resource " |
| 359 |
"role back, it is up to the cluster manager to do so (if so configured)." |
| 360 |
msgstr "" |
| 361 |
"当故障节点被修复并返回集群时,它将以次要角色执行此操作,因此,如前一节所述,不需要进一步的手动干预。同样,DRBD不会重新更改资源角色,这取决于集群管理器是否这样做(如果这样配置的话)。" |
| 362 |
|
| 363 |
#. type: Plain text |
| 364 |
#: troubleshooting.adoc:179 |
| 365 |
msgid "" |
| 366 |
"DRBD ensures block device consistency in case of a primary node failure by " |
| 367 |
"way of a special mechanism. For a detailed discussion, refer to " |
| 368 |
"<<s-activity-log>>." |
| 369 |
msgstr "DRBD通过一种特殊的机制,在主节点发生故障的情况下保证块设备的一致性。有关详细讨论,请参阅<<s-activity-log>>。" |
| 370 |
|
| 371 |
#. type: Title ==== |
| 372 |
#: troubleshooting.adoc:181 |
| 373 |
#, no-wrap |
| 374 |
msgid "Dealing with permanent node failure" |
| 375 |
msgstr "处理永久性节点故障" |
| 376 |
|
| 377 |
#. type: Plain text |
| 378 |
#: troubleshooting.adoc:185 |
| 379 |
msgid "" |
| 380 |
"indexterm:[node failure]If a node suffers an unrecoverable problem or " |
| 381 |
"permanent destruction, you must follow the following steps:" |
| 382 |
msgstr "indexterm:[node failure]如果节点遇到不可恢复的问题或永久性破坏,则必须执行以下步骤:" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: troubleshooting.adoc:188 |
| 386 |
msgid "" |
| 387 |
"Replace the failed hardware with one with similar performance and disk " |
| 388 |
"capacity." |
| 389 |
msgstr "将出现故障的硬件替换为具有类似性能和磁盘容量的硬件。" |
| 390 |
|
| 391 |
#. type: Plain text |
| 392 |
#: troubleshooting.adoc:194 |
| 393 |
msgid "" |
| 394 |
"Replacing a failed node with one with worse performance characteristics is " |
| 395 |
"possible, but not recommended. Replacing a failed node with one with less " |
| 396 |
"disk capacity is not supported, and will cause DRBD to refuse to connect to " |
| 397 |
"the replaced nodefootnote:[It couldn't replicate the data, anyway!]." |
| 398 |
msgstr "" |
| 399 |
"可以用性能较差的节点替换出现故障的节点,但不建议这样做。不支持将出现故障的节点替换为磁盘容量较小的节点,这将导致DRBD拒绝连接到被替换的节点footnote:[无论如何,它无法复制数据!]." |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: troubleshooting.adoc:196 |
| 403 |
msgid "Install the base system and applications." |
| 404 |
msgstr "安装基本系统和应用程序。" |
| 405 |
|
| 406 |
#. type: Plain text |
| 407 |
#: troubleshooting.adoc:198 |
| 408 |
msgid "" |
| 409 |
"Install DRBD and copy `/etc/drbd.conf` and all of `/etc/drbd.d/` from one of" |
| 410 |
" the surviving nodes." |
| 411 |
msgstr "安装DRBD并从一个幸存的节点复制 `/etc/drbd.conf` 和所有 `/etc/drbd.d/` 文件。" |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: troubleshooting.adoc:199 |
| 415 |
msgid "Follow the steps outlined in <<ch-configure>>, but stop short" |
| 416 |
msgstr "按照<<ch-configure>>中概述的步骤操作,但不要忘记参考" |
| 417 |
|
| 418 |
#. type: Plain text |
| 419 |
#: troubleshooting.adoc:200 |
| 420 |
msgid "of <<s-initial-full-sync>>." |
| 421 |
msgstr " <<s-initial-full-sync>>." |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: troubleshooting.adoc:204 |
| 425 |
msgid "" |
| 426 |
"Manually starting a full device synchronization is not necessary at this " |
| 427 |
"point, it will commence automatically upon connection to the surviving " |
| 428 |
"primary and/or secondary node(s)." |
| 429 |
msgstr "此时不需要手动启动完全设备同步,它将在连接到幸存的主节点和/或辅助节点时自动启动。" |
| 430 |
|
| 431 |
#. type: Title === |
| 432 |
#: troubleshooting.adoc:206 |
| 433 |
#, no-wrap |
| 434 |
msgid "Manual split brain recovery" |
| 435 |
msgstr "手动恢复裂脑" |
| 436 |
|
| 437 |
#. type: Plain text |
| 438 |
#: troubleshooting.adoc:214 |
| 439 |
msgid "" |
| 440 |
"indexterm:[split brain]DRBD detects split brain at the time connectivity " |
| 441 |
"becomes available again and the peer nodes exchange the initial DRBD " |
| 442 |
"protocol handshake. If DRBD detects that both nodes are (or were at some " |
| 443 |
"point, while disconnected) in the primary role, it immediately tears down " |
| 444 |
"the replication connection. The tell-tale sign of this is a message like the" |
| 445 |
" following appearing in the system log:" |
| 446 |
msgstr "" |
| 447 |
"indexterm:[split brain]DRBD在连接再次可用且对等节点交换初始DRBD协议握手时检测到split " |
| 448 |
"brain。如果DRBD检测到这两个节点(或者在某个点上,在断开连接的情况下)都处于主角色中,它会立即断开复制连接。这是一条类似以下信息的信号,显示在系统日志中:" |
| 449 |
|
| 450 |
#. type: delimited block - |
| 451 |
#: troubleshooting.adoc:217 |
| 452 |
#, no-wrap |
| 453 |
msgid "Split-Brain detected, dropping connection!\n" |
| 454 |
msgstr "Split-Brain detected, dropping connection!\n" |
| 455 |
|
| 456 |
#. type: Plain text |
| 457 |
#: troubleshooting.adoc:227 |
| 458 |
msgid "" |
| 459 |
"After split brain has been detected, one node will always have the resource " |
| 460 |
"in a indexterm:[StandAlone (connection state)]indexterm:[connection " |
| 461 |
"state]_StandAlone_ connection state. The other might either also be in the " |
| 462 |
"_StandAlone_ state (if both nodes detected the split brain simultaneously), " |
| 463 |
"or in indexterm:[Connecting (connection state)] indexterm:[connection " |
| 464 |
"state]_Connecting_ (if the peer tore down the connection before the other " |
| 465 |
"node had a chance to detect split brain)." |
| 466 |
msgstr "" |
| 467 |
"检测到裂脑后,一个节点的资源将始终处于indexterm:[StandAlone (connection state)]indexterm:[connection state] _StandAlone_ 连接状态。另一个节点也可能处于 _StandAlone_ 状态(如果两个节点同时检测到裂脑),或者处于indexterm:[Connecting (connection state)]indexterm:[connection state] _Connecting_(如果对等节点在另一个节点有机会检测到裂脑之前断开了连接)。" |
| 468 |
|
| 469 |
#. type: Plain text |
| 470 |
#: troubleshooting.adoc:233 |
| 471 |
msgid "" |
| 472 |
"At this point, unless you configured DRBD to automatically recover from " |
| 473 |
"split brain, you must manually intervene by selecting one node whose " |
| 474 |
"modifications will be discarded (this node is referred to as the " |
| 475 |
"indexterm:[split brain]_split brain victim_). This intervention is made with" |
| 476 |
" the following commands:" |
| 477 |
msgstr "" |
| 478 |
"此时,除非您将DRBD配置为自动从裂脑恢复,否则必须通过选择一个将放弃其修改的节点(该节点称为indexterm:[split brain]_split brain victim_)进行手动干预。使用以下命令进行干预:" |
| 479 |
|
| 480 |
#. type: delimited block = |
| 481 |
#: troubleshooting.adoc:237 |
| 482 |
msgid "This is still _work in progress_." |
| 483 |
msgstr "这项工作仍在进行中。" |
| 484 |
|
| 485 |
#. type: delimited block = |
| 486 |
#: troubleshooting.adoc:239 |
| 487 |
msgid "Expect rough edges and changes." |
| 488 |
msgstr "期待能大致有所改观。" |
| 489 |
|
| 490 |
#. [NOTE] |
| 491 |
#. =========================== |
| 492 |
#. The split brain victim needs to be in the connection state of |
| 493 |
#. _StandAlone_ or the following commands will return an error. |
| 494 |
#. You can ensure it is standalone by issuing: |
| 495 |
#. ---------- |
| 496 |
#. # drbdadm disconnect <resource> |
| 497 |
#. ---------- |
| 498 |
#. =========================== |
| 499 |
#. type: delimited block - |
| 500 |
#: troubleshooting.adoc:260 |
| 501 |
#, no-wrap |
| 502 |
msgid "" |
| 503 |
"# drbdadm disconnect <resource>\n" |
| 504 |
"# drbdadm secondary <resource>\n" |
| 505 |
"# drbdadm connect --discard-my-data <resource>\n" |
| 506 |
msgstr "" |
| 507 |
"# drbdadm disconnect <resource>\n" |
| 508 |
"# drbdadm secondary <resource>\n" |
| 509 |
"# drbdadm connect --discard-my-data <resource>\n" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: troubleshooting.adoc:264 |
| 513 |
msgid "" |
| 514 |
"On the other node (the indexterm:[split brain]_split brain survivor_), if " |
| 515 |
"its connection state is also _StandAlone_, you would enter:" |
| 516 |
msgstr "" |
| 517 |
"在另一个节点(indexterm:[split brain]_split brain " |
| 518 |
"survivor_)上,如果其连接状态也是 _StandAlone_ 的,则输入:" |
| 519 |
|
| 520 |
#. type: delimited block - |
| 521 |
#: troubleshooting.adoc:268 |
| 522 |
#, no-wrap |
| 523 |
msgid "" |
| 524 |
"# drbdadm disconnect <resource>\n" |
| 525 |
"# drbdadm connect <resource>\n" |
| 526 |
msgstr "" |
| 527 |
"# drbdadm disconnect <resource>\n" |
| 528 |
"# drbdadm connect <resource>\n" |
| 529 |
|
| 530 |
#. type: Plain text |
| 531 |
#: troubleshooting.adoc:272 |
| 532 |
msgid "" |
| 533 |
"You may omit this step if the node is already in the _Connecting_ state; it " |
| 534 |
"will then reconnect automatically." |
| 535 |
msgstr "如果节点已处于 _Connecting_ 状态,则可以省略此步骤;然后将自动重新连接。" |
| 536 |
|
| 537 |
#. type: Plain text |
| 538 |
#: troubleshooting.adoc:276 |
| 539 |
msgid "" |
| 540 |
"Upon connection, your split brain victim immediately changes its connection " |
| 541 |
"state to _SyncTarget_, and gets its modifications overwritten by the other " |
| 542 |
"node(s)." |
| 543 |
msgstr "连接后,裂脑受害者立即将其连接状态更改为 _SyncTarget_,并由其他节点覆盖其修改。" |
| 544 |
|
| 545 |
#. type: Plain text |
| 546 |
#: troubleshooting.adoc:281 |
| 547 |
msgid "" |
| 548 |
"The split brain victim is not subjected to a full device synchronization. " |
| 549 |
"Instead, it has its local modifications rolled back, and any modifications " |
| 550 |
"made on the split brain survivor(s) propagate to the victim." |
| 551 |
msgstr "裂脑受害者不受全设备同步的影响。取而代之的是,它的局部修改被回滚,对裂脑幸存者所做的任何修改都会传播给受害者。" |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#: troubleshooting.adoc:284 |
| 555 |
msgid "" |
| 556 |
"After re-synchronization has completed, the split brain is considered " |
| 557 |
"resolved and the nodes form a fully consistent, redundant replicated storage" |
| 558 |
" system again." |
| 559 |
msgstr "在重新同步完成后,裂脑被视为已解决,节点再次形成完全一致的冗余复制存储系统。" |