# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2020-03-02 15:09+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: Title == #: troubleshooting.adoc:2 #, no-wrap msgid "Troubleshooting and error recovery" msgstr "故障排除和错误恢复" #. type: Plain text #: troubleshooting.adoc:6 msgid "" "This chapter describes tasks to be performed in the event of hardware or " "system failures." msgstr "本章描述硬件或系统故障时要执行的任务。" #. type: Title === #: troubleshooting.adoc:9 #, no-wrap msgid "Dealing with hard drive failure" msgstr "处理硬盘故障" #. type: Plain text #: troubleshooting.adoc:15 msgid "" "indexterm:[drive failure]indexterm:[disk failure]How to deal with hard drive" " failure depends on the way DRBD is configured to handle disk I/O errors " "(see <>), and on the type of meta data configured " "(see <>)." msgstr "" "indexterm:[drive failure]indexterm:[disk " "failure]如何处理硬盘故障取决于DRBD处理磁盘I/O错误的配置方式(请参见<>),以及配置的元数据类型(请参见<>)。" #. type: delimited block = #: troubleshooting.adoc:21 msgid "" "For the most part, the steps described here apply only if you run DRBD " "directly on top of physical hard drives. They generally do not apply in case" " you are running DRBD layered on top of" msgstr "在大多数情况下,这里描述的步骤仅适用于直接在物理硬盘上运行DRBD的情况。它们通常不适用于在" #. type: delimited block = #: troubleshooting.adoc:24 msgid "" "an MD software RAID set (in this case, use `mdadm` to manage drive " "replacement)," msgstr "MD软件RAID集(在本例中,使用 `mdadm` 管理驱动器更换)," #. type: delimited block = #: troubleshooting.adoc:25 msgid "device-mapper RAID (use `dmraid`)," msgstr "设备映射器RAID(使用 `dmraid` )," #. type: delimited block = #: troubleshooting.adoc:27 msgid "" "a hardware RAID appliance (follow the vendor's instructions on how to deal " "with failed drives)," msgstr "一个硬件RAID设备(遵循供应商关于如何处理故障驱动器的说明)," #. type: delimited block = #: troubleshooting.adoc:29 msgid "" "some non-standard device-mapper virtual block devices (see the device mapper" " documentation)." msgstr "一些非标准设备映射器虚拟块设备(请参阅设备映射器文档)。" #. type: Title ==== #: troubleshooting.adoc:32 #, no-wrap msgid "Manually detaching DRBD from your hard drive" msgstr "从硬盘手动分离DRBD" #. type: Plain text #: troubleshooting.adoc:37 msgid "" "indexterm:[drbdadm, detach]If DRBD is <> (not recommended), you must first detach the DRBD " "resource, that is, disassociate it from its backing storage:" msgstr "" "indexterm:[drbdadm,detach]如果DRBD是<>(不推荐),则必须首先分离DRBD资源,即,将其与其备份存储解除关联:" #. type: delimited block - #: troubleshooting.adoc:40 #, no-wrap msgid "# drbdadm detach \n" msgstr "# drbdadm detach \n" #. type: Plain text #: troubleshooting.adoc:46 msgid "" "By running the `drbdadm status` or the `drbdadm dstate` command, you will " "now be able to verify that the resource is now in indexterm:[diskless " "mode]indexterm:[diskless (disk state)]indexterm:[disk state, " "Diskless]_diskless mode_:" msgstr "" "通过运行 `drbdadm status` 或 `drbdadm dstate` 命令,您现在可以验证资源是否现在处于indexterm:[diskless " "mode]indexterm:[diskless(disk state)]indexterm:[disk state,diskless] _diskless mode_:" #. type: delimited block - #: troubleshooting.adoc:55 #, no-wrap msgid "" "# drbdadm status \n" " role:Primary\n" " volume:0 disk:Diskless\n" " role:Secondary\n" " volume:0 peer-disk:UpToDate\n" "# drbdadm dstate \n" "Diskless/UpToDate\n" msgstr "" "# drbdadm status \n" " role:Primary\n" " volume:0 disk:Diskless\n" " role:Secondary\n" " volume:0 peer-disk:UpToDate\n" "# drbdadm dstate \n" "Diskless/UpToDate\n" #. type: Plain text #: troubleshooting.adoc:59 msgid "" "If the disk failure has occured on your primary node, you may combine this " "step with a switch-over operation." msgstr "如果主节点上发生磁盘故障,则可以将此步骤与切换操作相结合。" #. type: Title ==== #: troubleshooting.adoc:61 #, no-wrap msgid "Automatic detach on I/O error" msgstr "I/O错误时自动分离" #. type: Plain text #: troubleshooting.adoc:69 msgid "" "If DRBD is <> (the recommended option), DRBD should have automatically detached " "the resource from its backing storage already, without manual intervention. " "You may still use the `drbdadm status` command to verify that the resource " "is in fact running in diskless mode." msgstr "" "如果DRBD是<>时自动分离(推荐选项),DRBD应该已经自动将资源从其备份存储中分离,而无需手动干预。您仍然可以使用 `drbdadm status` " "命令来验证资源实际上是在无盘模式下运行的。" #. type: Title ==== #: troubleshooting.adoc:71 #, no-wrap msgid "Replacing a failed disk when using internal meta data" msgstr "使用内部元数据时替换故障磁盘" #. type: Plain text #: troubleshooting.adoc:77 msgid "" "If using <>, it is sufficient to " "bind the DRBD device to the new hard disk. If the new hard disk has to be " "addressed by another Linux device name than the defective disk, the DRBD " "configuration file has to be modified accordingly." msgstr "" "如果使用<>,则足以将DRBD设备绑定到新硬盘。如果新硬盘必须用另一个Linux设备名而不是缺陷磁盘寻址,则必须相应地修改DRBD配置文件。" #. type: Plain text #: troubleshooting.adoc:80 msgid "" "This process involves creating a new meta data set, then re-attaching the " "resource: indexterm:[drbdadm, create-md]" msgstr "此过程包括创建新的元数据集,然后重新附加资源:indexterm:[drbdadm,create-md]" #. type: delimited block - #: troubleshooting.adoc:88 troubleshooting.adoc:111 #, no-wrap msgid "" "# drbdadm create-md \n" "v08 Magic number not found\n" "Writing meta data...\n" "initialising activity log\n" "NOT initializing bitmap\n" "New drbd meta data block sucessfully created.\n" msgstr "" "# drbdadm create-md \n" "v08 Magic number not found\n" "Writing meta data...\n" "initialising activity log\n" "NOT initializing bitmap\n" "New drbd meta data block sucessfully created.\n" #. type: delimited block - #: troubleshooting.adoc:90 #, no-wrap msgid "# drbdadm attach \n" msgstr "# drbdadm attach \n" #. type: Plain text #: troubleshooting.adoc:95 msgid "" "Full synchronization of the new hard disk starts instantaneously and " "automatically. You will be able to monitor the synchronization's progress " "via `drbdadm status --verbose`, as with any background synchronization." msgstr "新硬盘的完全同步将立即自动启动。您将能够通过 `drbdadm status --verbose` 监视同步的进度,就像任何后台同步一样。" #. type: Title ==== #: troubleshooting.adoc:97 #, no-wrap msgid "Replacing a failed disk when using external meta data" msgstr "使用外部元数据时替换故障磁盘" #. type: Plain text #: troubleshooting.adoc:103 msgid "" "When using <>, the procedure is " "basically the same. However, DRBD is not able to recognize independently " "that the hard drive was swapped, thus an additional step is required." msgstr "" "使用<>时,程序基本相同。然而,DRBD无法独立地识别硬盘驱动器已被交换,因此需要额外的步骤。" #. type: delimited block - #: troubleshooting.adoc:114 #, no-wrap msgid "" "# drbdadm attach \n" "# drbdadm invalidate \n" msgstr "" "# drbdadm attach \n" "# drbdadm invalidate \n" #. type: Plain text #: troubleshooting.adoc:119 msgid "" "Make sure to run `drbdadm invalidate` on the node __*without*__ good data; " "this command will cause the local contents to be overwritten with data from " "the peers, so running this command on the wrong node might lose data!" msgstr "" "请确保在 __*没有*__ 完好数据的节点上运行 `drbdadm invalidate` " "此命令将导致本地内容被对等方的数据覆盖,因此在错误的节点上运行此命令可能会丢失数据!" #. type: Plain text #: troubleshooting.adoc:122 msgid "" "Here, the `drbdadm invalidate` command triggers synchronization. Again, sync" " progress may be observed via `drbdadm status --verbose`." msgstr "" "这里,`drbdadm invalidate` 命令触发同步。同样,可以通过 `drbdadm status --verbose` 来观察同步进度。" #. type: Title === #: troubleshooting.adoc:124 #, no-wrap msgid "Dealing with node failure" msgstr "处理节点故障" #. type: Plain text #: troubleshooting.adoc:135 msgid "" "indexterm:[node failure]When DRBD detects that its peer node is down (either" " by true hardware failure or manual intervention), DRBD changes its " "connection state from _Connected_ to _Connecting_ and waits for the peer " "node to re-appear. The DRBD resource is then said to operate in " "_disconnected mode_. In disconnected mode, the resource and its associated " "block device are fully usable, and may be promoted and demoted as necessary," " but no block modifications are being replicated to the peer node. Instead, " "DRBD stores which blocks are being modified while disconnected, on a per-" "peer basis." msgstr "" "indexterm:[node " "failure]当DRBD检测到其对等节点关闭时(通过真正的硬件故障或手动干预)," "DRBD将其连接状态从 _Connected_ 更改为 _Connecting_ ,并等待对等节点重新出现。" "然后,DRBD资源被称为在 _disconnected mode_ 模式下工作。在断开连接模式下," "资源及其关联的块设备完全可用,并且可以根据需要升级和降级," "但不会将块修改复制到对等节点。相反,DRBD以每个对等点为基础存储断开连接时正在修改的块。" #. type: Title ==== #: troubleshooting.adoc:137 #, no-wrap msgid "Dealing with temporary secondary node failure" msgstr "处理临时辅助节点故障" #. type: Plain text #: troubleshooting.adoc:147 msgid "" "indexterm:[node failure]If a node that currently has a resource in the " "secondary role fails temporarily (due to, for example, a memory problem that" " is subsequently rectified by replacing RAM), no further intervention is " "necessary — besides the obvious necessity to repair the failed node and " "bring it back online. When that happens, the two nodes will simply re-" "establish connectivity upon system start-up. After this, DRBD synchronizes " "all modifications made on the primary node in the meantime to the secondary " "node." msgstr "" "indexterm:[node " "failure]如果当前具有次要角色中的资源的节点暂时" "出现故障(例如,由于随后通过替换RAM纠正的内存问题),则无需进一步干预-" "除了修复故障节点并使其重新联机的明显必要性之外。当这种情况发生时," "两个节点只需在系统启动时重新建立连接。在此之后,DRBD将同时在主节点上所做的所有修改同步到辅助节点。" #. type: Plain text #: troubleshooting.adoc:155 msgid "" "At this point, due to the nature of DRBD's re-synchronization algorithm, the" " resource is briefly inconsistent on the secondary node. During that short " "time window, the secondary node can not switch to the Primary role if the " "peer is unavailable. Thus, the period in which your cluster is not redundant" " consists of the actual secondary node down time, plus the subsequent re-" "synchronization." msgstr "" "此时,由于DRBD的重新同步算法的性质,资源在次要节点上短暂地不一致。" "在短时间内,如果对等节点不可用,则辅助节点无法切换到主角色。" "因此,集群不冗余的时间段由实际的辅助节点停机时间加上随后的重新同步组成。" #. type: Plain text #: troubleshooting.adoc:159 msgid "" "Please note that with DRBD 9 more than two nodes can be connected for each " "resource, so for e.g. 4 nodes a single failing secondary still leaves two " "other secondaries available for failover." msgstr "请注意,使用DRBD 9,每个资源可以连接两个以上的节点,因此对于例如4个节点,一个失败的辅助节点仍然保留两个其他的辅助节点用于故障转移。" #. type: Title ==== #: troubleshooting.adoc:161 #, no-wrap msgid "Dealing with temporary primary node failure" msgstr "处理临时主节点故障" #. type: Plain text #: troubleshooting.adoc:169 msgid "" "indexterm:[node failure]From DRBD's standpoint, failure of the primary node " "is almost identical to a failure of the secondary node. The surviving node " "detects the peer node's failure, and switches to disconnected mode. DRBD " "does _not_ promote the surviving node to the primary role; it is the cluster" " management application's responsibility to do so." msgstr "" "indexterm:[node " "failure]从DRBD的角度来看,主节点的故障几乎等同于次节点的故障。幸存节点检测到对等节点的故障,并切换到断开模式。DRBD不会将幸存节点提升为主要角色;集群管理应用程序有责任这样做。" #. type: Plain text #: troubleshooting.adoc:175 msgid "" "When the failed node is repaired and returns to the cluster, it does so in " "the secondary role, thus, as outlined in the previous section, no further " "manual intervention is necessary. Again, DRBD does not change the resource " "role back, it is up to the cluster manager to do so (if so configured)." msgstr "" "当故障节点被修复并返回集群时,它将以次要角色执行此操作,因此,如前一节所述,不需要进一步的手动干预。同样,DRBD不会重新更改资源角色,这取决于集群管理器是否这样做(如果这样配置的话)。" #. type: Plain text #: troubleshooting.adoc:179 msgid "" "DRBD ensures block device consistency in case of a primary node failure by " "way of a special mechanism. For a detailed discussion, refer to " "<>." msgstr "DRBD通过一种特殊的机制,在主节点发生故障的情况下保证块设备的一致性。有关详细讨论,请参阅<>。" #. type: Title ==== #: troubleshooting.adoc:181 #, no-wrap msgid "Dealing with permanent node failure" msgstr "处理永久性节点故障" #. type: Plain text #: troubleshooting.adoc:185 msgid "" "indexterm:[node failure]If a node suffers an unrecoverable problem or " "permanent destruction, you must follow the following steps:" msgstr "indexterm:[node failure]如果节点遇到不可恢复的问题或永久性破坏,则必须执行以下步骤:" #. type: Plain text #: troubleshooting.adoc:188 msgid "" "Replace the failed hardware with one with similar performance and disk " "capacity." msgstr "将出现故障的硬件替换为具有类似性能和磁盘容量的硬件。" #. type: Plain text #: troubleshooting.adoc:194 msgid "" "Replacing a failed node with one with worse performance characteristics is " "possible, but not recommended. Replacing a failed node with one with less " "disk capacity is not supported, and will cause DRBD to refuse to connect to " "the replaced nodefootnote:[It couldn't replicate the data, anyway!]." msgstr "" "可以用性能较差的节点替换出现故障的节点,但不建议这样做。不支持将出现故障的节点替换为磁盘容量较小的节点,这将导致DRBD拒绝连接到被替换的节点footnote:[无论如何,它无法复制数据!]." #. type: Plain text #: troubleshooting.adoc:196 msgid "Install the base system and applications." msgstr "安装基本系统和应用程序。" #. type: Plain text #: troubleshooting.adoc:198 msgid "" "Install DRBD and copy `/etc/drbd.conf` and all of `/etc/drbd.d/` from one of" " the surviving nodes." msgstr "安装DRBD并从一个幸存的节点复制 `/etc/drbd.conf` 和所有 `/etc/drbd.d/` 文件。" #. type: Plain text #: troubleshooting.adoc:199 msgid "Follow the steps outlined in <>, but stop short" msgstr "按照<>中概述的步骤操作,但不要忘记参考" #. type: Plain text #: troubleshooting.adoc:200 msgid "of <>." msgstr " <>." #. type: Plain text #: troubleshooting.adoc:204 msgid "" "Manually starting a full device synchronization is not necessary at this " "point, it will commence automatically upon connection to the surviving " "primary and/or secondary node(s)." msgstr "此时不需要手动启动完全设备同步,它将在连接到幸存的主节点和/或辅助节点时自动启动。" #. type: Title === #: troubleshooting.adoc:206 #, no-wrap msgid "Manual split brain recovery" msgstr "手动恢复裂脑" #. type: Plain text #: troubleshooting.adoc:214 msgid "" "indexterm:[split brain]DRBD detects split brain at the time connectivity " "becomes available again and the peer nodes exchange the initial DRBD " "protocol handshake. If DRBD detects that both nodes are (or were at some " "point, while disconnected) in the primary role, it immediately tears down " "the replication connection. The tell-tale sign of this is a message like the" " following appearing in the system log:" msgstr "" "indexterm:[split brain]DRBD在连接再次可用且对等节点交换初始DRBD协议握手时检测到split " "brain。如果DRBD检测到这两个节点(或者在某个点上,在断开连接的情况下)都处于主角色中,它会立即断开复制连接。这是一条类似以下信息的信号,显示在系统日志中:" #. type: delimited block - #: troubleshooting.adoc:217 #, no-wrap msgid "Split-Brain detected, dropping connection!\n" msgstr "Split-Brain detected, dropping connection!\n" #. type: Plain text #: troubleshooting.adoc:227 msgid "" "After split brain has been detected, one node will always have the resource " "in a indexterm:[StandAlone (connection state)]indexterm:[connection " "state]_StandAlone_ connection state. The other might either also be in the " "_StandAlone_ state (if both nodes detected the split brain simultaneously), " "or in indexterm:[Connecting (connection state)] indexterm:[connection " "state]_Connecting_ (if the peer tore down the connection before the other " "node had a chance to detect split brain)." msgstr "" "检测到裂脑后,一个节点的资源将始终处于indexterm:[StandAlone (connection state)]indexterm:[connection state] _StandAlone_ 连接状态。另一个节点也可能处于 _StandAlone_ 状态(如果两个节点同时检测到裂脑),或者处于indexterm:[Connecting (connection state)]indexterm:[connection state] _Connecting_(如果对等节点在另一个节点有机会检测到裂脑之前断开了连接)。" #. type: Plain text #: troubleshooting.adoc:233 msgid "" "At this point, unless you configured DRBD to automatically recover from " "split brain, you must manually intervene by selecting one node whose " "modifications will be discarded (this node is referred to as the " "indexterm:[split brain]_split brain victim_). This intervention is made with" " the following commands:" msgstr "" "此时,除非您将DRBD配置为自动从裂脑恢复,否则必须通过选择一个将放弃其修改的节点(该节点称为indexterm:[split brain]_split brain victim_)进行手动干预。使用以下命令进行干预:" #. type: delimited block = #: troubleshooting.adoc:237 msgid "This is still _work in progress_." msgstr "这项工作仍在进行中。" #. type: delimited block = #: troubleshooting.adoc:239 msgid "Expect rough edges and changes." msgstr "期待能大致有所改观。" #. [NOTE] #. =========================== #. The split brain victim needs to be in the connection state of #. _StandAlone_ or the following commands will return an error. #. You can ensure it is standalone by issuing: #. ---------- #. # drbdadm disconnect #. ---------- #. =========================== #. type: delimited block - #: troubleshooting.adoc:260 #, no-wrap msgid "" "# drbdadm disconnect \n" "# drbdadm secondary \n" "# drbdadm connect --discard-my-data \n" msgstr "" "# drbdadm disconnect \n" "# drbdadm secondary \n" "# drbdadm connect --discard-my-data \n" #. type: Plain text #: troubleshooting.adoc:264 msgid "" "On the other node (the indexterm:[split brain]_split brain survivor_), if " "its connection state is also _StandAlone_, you would enter:" msgstr "" "在另一个节点(indexterm:[split brain]_split brain " "survivor_)上,如果其连接状态也是 _StandAlone_ 的,则输入:" #. type: delimited block - #: troubleshooting.adoc:268 #, no-wrap msgid "" "# drbdadm disconnect \n" "# drbdadm connect \n" msgstr "" "# drbdadm disconnect \n" "# drbdadm connect \n" #. type: Plain text #: troubleshooting.adoc:272 msgid "" "You may omit this step if the node is already in the _Connecting_ state; it " "will then reconnect automatically." msgstr "如果节点已处于 _Connecting_ 状态,则可以省略此步骤;然后将自动重新连接。" #. type: Plain text #: troubleshooting.adoc:276 msgid "" "Upon connection, your split brain victim immediately changes its connection " "state to _SyncTarget_, and gets its modifications overwritten by the other " "node(s)." msgstr "连接后,裂脑受害者立即将其连接状态更改为 _SyncTarget_,并由其他节点覆盖其修改。" #. type: Plain text #: troubleshooting.adoc:281 msgid "" "The split brain victim is not subjected to a full device synchronization. " "Instead, it has its local modifications rolled back, and any modifications " "made on the split brain survivor(s) propagate to the victim." msgstr "裂脑受害者不受全设备同步的影响。取而代之的是,它的局部修改被回滚,对裂脑幸存者所做的任何修改都会传播给受害者。" #. type: Plain text #: troubleshooting.adoc:284 msgid "" "After re-synchronization has completed, the split brain is considered " "resolved and the nodes form a fully consistent, redundant replicated storage" " system again." msgstr "在重新同步完成后,裂脑被视为已解决,节点再次形成完全一致的冗余复制存储系统。"