| 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 |
#: fundamentals.adoc:2 |
| 21 |
#, no-wrap |
| 22 |
msgid "DRBD Fundamentals" |
| 23 |
msgstr "DRBD基础" |
| 24 |
|
| 25 |
#. type: Plain text |
| 26 |
#: fundamentals.adoc:8 |
| 27 |
msgid "" |
| 28 |
"DRBD is a software-based, shared-nothing, replicated storage solution " |
| 29 |
"mirroring the content of block devices (hard disks, partitions, logical " |
| 30 |
"volumes etc.) between hosts." |
| 31 |
msgstr "DRBD是一个基于软件的、无共享、复制存储解决方案,它在主机之间镜像块设备(硬盘、分区、逻辑卷等)的内容。" |
| 32 |
|
| 33 |
#. type: Plain text |
| 34 |
#: fundamentals.adoc:10 |
| 35 |
msgid "DRBD mirrors data" |
| 36 |
msgstr "DRBD镜像数据" |
| 37 |
|
| 38 |
#. type: Plain text |
| 39 |
#: fundamentals.adoc:13 |
| 40 |
#, no-wrap |
| 41 |
msgid "" |
| 42 |
"*in real time*. Replication occurs continuously while applications\n" |
| 43 |
"modify the data on the device.\n" |
| 44 |
msgstr "" |
| 45 |
"*实时*: 当应用程序修改设备上的数据时,数据的副本更改是连续进行的。\n" |
| 46 |
|
| 47 |
#. type: Plain text |
| 48 |
#: fundamentals.adoc:16 |
| 49 |
#, no-wrap |
| 50 |
msgid "" |
| 51 |
"*transparently*. Applications need not be aware that the data is stored on\n" |
| 52 |
"multiple hosts.\n" |
| 53 |
msgstr "" |
| 54 |
"*透明*: 应用程序不会意识到数据实际上是存储在多台主机上的。\n" |
| 55 |
|
| 56 |
#. type: Plain text |
| 57 |
#: fundamentals.adoc:22 |
| 58 |
#, no-wrap |
| 59 |
msgid "" |
| 60 |
"*synchronously* or *asynchronously*. With synchronous mirroring, applications\n" |
| 61 |
"are notified of write completions after the writes have been carried out on\n" |
| 62 |
"all (connected) hosts. With asynchronous mirroring, applications are notified of write\n" |
| 63 |
"completions when the writes have completed locally, which usually is before\n" |
| 64 |
"they have propagated to the other hosts.\n" |
| 65 |
msgstr "" |
| 66 |
"*同步* or *异步*: 当使用同步镜像数据时,只有在所有(连接上的)主机上都完成写操作后,才会通知应用程序写完成。当使用异步镜像数据时,在本地完成写入时(通常在镜像数据传输到其他节点前),就会通知应用程序写入完成。\n" |
| 67 |
|
| 68 |
#. type: Title === |
| 69 |
#: fundamentals.adoc:25 |
| 70 |
#, no-wrap |
| 71 |
msgid "Kernel module" |
| 72 |
msgstr "内核模块" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: fundamentals.adoc:33 |
| 76 |
msgid "" |
| 77 |
"DRBD's core functionality is implemented by way of a Linux kernel module. " |
| 78 |
"Specifically, DRBD constitutes a driver for a virtual block device, so DRBD " |
| 79 |
"is situated right near the bottom of a system's I/O stack. Because of this, " |
| 80 |
"DRBD is extremely flexible and versatile, which makes it a replication " |
| 81 |
"solution suitable for adding high availability to just about any " |
| 82 |
"application." |
| 83 |
msgstr "" |
| 84 |
"DRBD的核心功能是通过Linux内核模块实现的。具体来说,DRBD构成虚拟块设备的驱动程序,因此DRBD位于系统的I/O堆栈的底部附近。因此,DRBD非常灵活和通用,这使得它成为一个复制解决方案,适合为几乎任何应用程序添加高可用性。" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: fundamentals.adoc:40 |
| 88 |
msgid "" |
| 89 |
"DRBD is, by definition and as mandated by the Linux kernel architecture, " |
| 90 |
"agnostic of the layers above it. Thus, it is impossible for DRBD to " |
| 91 |
"miraculously add features to upper layers that these do not possess. For " |
| 92 |
"example, DRBD cannot auto-detect file system corruption or add active-active" |
| 93 |
" clustering capability to file systems like ext3 or XFS." |
| 94 |
msgstr "" |
| 95 |
"根据定义和Linux内核体系结构的要求,DRBD与上面各层无关。因此,DRBD不可能奇迹般地向上层添加它们不具备的特性。例如,DRBD无法自动检测文件系统损坏,也无法向ext3或XFS等文件系统添加活动群集功能。" |
| 96 |
|
| 97 |
#. type: Block title |
| 98 |
#: fundamentals.adoc:42 |
| 99 |
#, no-wrap |
| 100 |
msgid "DRBD's position within the Linux I/O stack" |
| 101 |
msgstr "DRBD在Linux I/O堆栈中的位置" |
| 102 |
|
| 103 |
#. type: Target for macro image |
| 104 |
#: fundamentals.adoc:43 |
| 105 |
#, no-wrap |
| 106 |
msgid "images/drbd-in-kernel.svg" |
| 107 |
msgstr "images/drbd-in-kernel.svg" |
| 108 |
|
| 109 |
#. type: Title === |
| 110 |
#: fundamentals.adoc:46 |
| 111 |
#, no-wrap |
| 112 |
msgid "User space administration tools" |
| 113 |
msgstr "用户空间管理工具" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: fundamentals.adoc:51 |
| 117 |
msgid "" |
| 118 |
"DRBD comes with a set of administration tools which communicate with the " |
| 119 |
"kernel module in order to configure and administer DRBD resources. From top-" |
| 120 |
"level to bottom-most these are:" |
| 121 |
msgstr "DRBD附带了一组管理工具,这些工具与内核模块通信,以便配置和管理DRBD资源。从上到下列举如下:" |
| 122 |
|
| 123 |
#. type: Block title |
| 124 |
#: fundamentals.adoc:52 |
| 125 |
#, no-wrap |
| 126 |
msgid "`drbdmanage`" |
| 127 |
msgstr "`drbdmanage`" |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: fundamentals.adoc:58 |
| 131 |
msgid "" |
| 132 |
"Provided as a separate project, this is the recommended way to orchestrate " |
| 133 |
"DRBD resources in a multi-node cluster. DRBD Manage uses one DRBD 9 resource" |
| 134 |
" to store its cluster-wide configuration data, and offers a quick and easy " |
| 135 |
"way to perform the most often needed administrative tasks, by calling " |
| 136 |
"external programs like `lvcreate` and `drbdadm`." |
| 137 |
msgstr "" |
| 138 |
"作为单独的项目提供,这是在多节点集群中编排DRBD资源的推荐方法。DRBD Manage使用一个DRBD " |
| 139 |
"9资源来存储其集群范围的配置数据,并通过调用诸如 `lvcreate` 和 `drbdadm` 之类的外部程序,提供了一种快速简便的方法来执行最常需要的管理任务。" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: fundamentals.adoc:61 |
| 143 |
msgid "" |
| 144 |
"Please see <<ch-admin-drbdmanage,the DRBD Manage entry>> in this " |
| 145 |
"documentation for more details." |
| 146 |
msgstr "有关详细信息,请参见本文档中的<<ch-admin-drbdmanage,the DRBD Manage entry>>。" |
| 147 |
|
| 148 |
#. type: Block title |
| 149 |
#: fundamentals.adoc:62 |
| 150 |
#, no-wrap |
| 151 |
msgid "`drbdadm`" |
| 152 |
msgstr "`drbdadm`" |
| 153 |
|
| 154 |
#. type: Plain text |
| 155 |
#: fundamentals.adoc:68 |
| 156 |
msgid "" |
| 157 |
"The high-level administration tool of the DRBD-utils program suite. Obtains" |
| 158 |
" all DRBD configuration parameters from the configuration file " |
| 159 |
"`/etc/drbd.conf` and acts as a front-end for `drbdsetup` and `drbdmeta`. " |
| 160 |
"`drbdadm` has a _dry-run_ mode, invoked with the `-d` option, that shows " |
| 161 |
"which `drbdsetup` and `drbdmeta` calls `drbdadm` would issue without " |
| 162 |
"actually calling those commands." |
| 163 |
msgstr "" |
| 164 |
"DRBD-" |
| 165 |
"utils程序套件的高级管理工具。从配置文件`/etc/DRBD.conf`获取所有DRBD配置参数,并充当 `drbdsetup` 和 `drbdmeta` 的前端。`drbdadm` 有一个用 `-d` 选项调用的" |
| 166 |
" _dry-run_ 模式,它显示哪些 `drbdsetup` 和 `drbdmeta` 调用 `drbdadm` ,而不实际调用这些命令。" |
| 167 |
|
| 168 |
#. type: Block title |
| 169 |
#: fundamentals.adoc:69 |
| 170 |
#, no-wrap |
| 171 |
msgid "`drbdsetup`" |
| 172 |
msgstr "`drbdsetup`" |
| 173 |
|
| 174 |
#. type: Plain text |
| 175 |
#: fundamentals.adoc:74 |
| 176 |
msgid "" |
| 177 |
"Configures the DRBD module that was loaded into the kernel. All parameters " |
| 178 |
"to `drbdsetup` must be passed on the command line. The separation between " |
| 179 |
"`drbdadm` and `drbdsetup` allows for maximum flexibility. Most users will " |
| 180 |
"rarely need to use `drbdsetup` directly, if at all." |
| 181 |
msgstr "" |
| 182 |
"配置加载到内核中的DRBD模块。`drbdsetup` 的所有参数都必须在命令行上传递。`drbdadm` 和 `drbdsetup` 之间的分离带来了最大程度上的灵活性。在绝大多数情况下,大多数用户几乎不需要直接使用 `drbdsetup`。" |
| 183 |
|
| 184 |
#. type: Block title |
| 185 |
#: fundamentals.adoc:75 |
| 186 |
#, no-wrap |
| 187 |
msgid "`drbdmeta`" |
| 188 |
msgstr "`drbdmeta`" |
| 189 |
|
| 190 |
#. type: Plain text |
| 191 |
#: fundamentals.adoc:78 |
| 192 |
msgid "" |
| 193 |
"Allows to create, dump, restore, and modify DRBD meta data structures. Like " |
| 194 |
"`drbdsetup`, most users will only rarely need to use `drbdmeta` directly." |
| 195 |
msgstr "允许创建、转储、还原和修改DRBD元数据结构。与 `drbdsetup` 一样,大多数用户很少直接使用 `drbdmeta`。" |
| 196 |
|
| 197 |
#. type: Title === |
| 198 |
#: fundamentals.adoc:80 |
| 199 |
#, no-wrap |
| 200 |
msgid "Resources" |
| 201 |
msgstr "资源" |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: fundamentals.adoc:84 |
| 205 |
msgid "" |
| 206 |
"In DRBD, _resource_ is the collective term that refers to all aspects of a " |
| 207 |
"particular replicated data set. These include:" |
| 208 |
msgstr "在DRBD中,_资源_ 是指特定复制数据集的所有方面的集合术语。其中包括:" |
| 209 |
|
| 210 |
#. type: Block title |
| 211 |
#: fundamentals.adoc:85 |
| 212 |
#, no-wrap |
| 213 |
msgid "Resource name" |
| 214 |
msgstr "资源名称" |
| 215 |
|
| 216 |
#. type: Plain text |
| 217 |
#: fundamentals.adoc:88 |
| 218 |
msgid "" |
| 219 |
"This can be any arbitrary, US-ASCII name not containing whitespace by which " |
| 220 |
"the resource is referred to." |
| 221 |
msgstr "可以是任意的US-ASCII名称,不包含空白字符,用于说明该引用资源。" |
| 222 |
|
| 223 |
#. type: Block title |
| 224 |
#: fundamentals.adoc:89 |
| 225 |
#, no-wrap |
| 226 |
msgid "Volumes" |
| 227 |
msgstr "卷" |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: fundamentals.adoc:96 |
| 231 |
msgid "" |
| 232 |
"Any resource is a replication group consisting of one of more _volumes_ that" |
| 233 |
" share a common replication stream. DRBD ensures write fidelity across all " |
| 234 |
"volumes in the resource. Volumes are numbered starting with `0`, and there " |
| 235 |
"may be up to 65,535 volumes in one resource. A volume contains the " |
| 236 |
"replicated data set, and a set of metadata for DRBD internal use." |
| 237 |
msgstr "" |
| 238 |
"任何资源都是一个复制组,由共享同一复制流的多个 _卷_ 之一组成。DRBD确保了资源中所有卷的写保真度。卷的编号以 `0` 开头,一个资源中最多可以有65535个卷。卷包含复制的数据集和一组供DRBD内部使用的元数据。" |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: fundamentals.adoc:99 |
| 242 |
msgid "" |
| 243 |
"At the `drbdadm` level, a volume within a resource can be addressed by the " |
| 244 |
"resource name and volume number as `__resource__/__volume__`." |
| 245 |
msgstr "在 `drbdadm` 级别,可以通过资源名称和卷号将资源中的卷寻址为 `__resource__/__volume__`。" |
| 246 |
|
| 247 |
#. At the `drbdsetup` level, a volume is addressed by its device minor |
| 248 |
#. number. |
| 249 |
#. At the `drbdmeta` level, a volume is addressed by the name of the |
| 250 |
#. underlying |
| 251 |
#. device. |
| 252 |
#. FIXME: Users don't care which major device number is assigned to DRBD. |
| 253 |
#. Likewise, they don't care about minor device numbers if they don't have |
| 254 |
#. to. |
| 255 |
#. We refer to device as /dev/drbdX almost everywhere, so do we have to |
| 256 |
#. mention |
| 257 |
#. minors here at all? |
| 258 |
#. type: Block title |
| 259 |
#: fundamentals.adoc:109 |
| 260 |
#, no-wrap |
| 261 |
msgid "DRBD device" |
| 262 |
msgstr "DRBD设备" |
| 263 |
|
| 264 |
#. type: Plain text |
| 265 |
#: fundamentals.adoc:117 |
| 266 |
msgid "" |
| 267 |
"This is a virtual block device managed by DRBD. It has a device major number" |
| 268 |
" of 147, and its minor numbers are numbered from 0 onwards, as is customary." |
| 269 |
" Each DRBD device corresponds to a volume in a resource. The associated " |
| 270 |
"block device is usually named `/dev/drbd__X__`, where `_X_` is the device " |
| 271 |
"minor number. `udev` will typically also create symlinks containing the " |
| 272 |
"resource name and volume number, as in `/dev/drbd/by-res/__resource__/__vol-nr__`." |
| 273 |
msgstr "" |
| 274 |
"这是一个由DRBD管理的虚拟块设备。它的设备主编号为147,次编号从0开始,这是Linux中的惯例。每个DRBD设备对应于资源中的一个卷。关联的块设备通常命名为`/dev/drbd__X__`,其中`_X_`是设备的次要编号。`udev`通常还会创建包含资源名和卷号的符号链接," |
| 275 |
"如`/dev/drbd/by-res/__resource__/__vol-nr__`。" |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: fundamentals.adoc:122 |
| 279 |
msgid "" |
| 280 |
"Very early DRBD versions hijacked NBD's device major number 43. This is " |
| 281 |
"long obsolete; 147 is the http://www.lanana.org/docs/device-list/[LANANA-" |
| 282 |
"registered] DRBD device major." |
| 283 |
msgstr "" |
| 284 |
"早期的DRBD版本劫持了NBD的设备主要编号43。这已经过时很久了;147是 " |
| 285 |
"http://www.lanana.org/docs/device-list/[LANANA-registered]" |
| 286 |
" 中定义的DRBD 主设备号。" |
| 287 |
|
| 288 |
#. type: Block title |
| 289 |
#: fundamentals.adoc:123 |
| 290 |
#, no-wrap |
| 291 |
msgid "Connection" |
| 292 |
msgstr "连接" |
| 293 |
|
| 294 |
#. type: Plain text |
| 295 |
#: fundamentals.adoc:129 |
| 296 |
msgid "" |
| 297 |
"A _connection_ is a communication link between two hosts that share a " |
| 298 |
"replicated data set. With DRBD 9 each resource can be defined on multiple " |
| 299 |
"hosts; with the current versions this requires a full-meshed connection " |
| 300 |
"setup between these hosts (i.e. each host connected to every other for that " |
| 301 |
"resource)" |
| 302 |
msgstr "" |
| 303 |
"_连接_ 是共享复制数据集的两台主机之间的通信链路。在DRBD " |
| 304 |
"9中,每个资源可以在多个主机上定义;在当前版本中,这需要在这些主机之间建立一个完整的网状连接(即,每个主机都为该资源彼此连接)" |
| 305 |
|
| 306 |
#. type: Plain text |
| 307 |
#: fundamentals.adoc:133 |
| 308 |
msgid "" |
| 309 |
"At the `drbdadm` level, a connection is addressed by the resource and the " |
| 310 |
"connection name (the latter defaulting to the peer hostname), like " |
| 311 |
"`__resource__:__connection__`." |
| 312 |
msgstr "在 `drbdadm` 级别,连接由资源和连接名(后者默认为对等主机名)寻址,如 `__resource__:__connection__`。" |
| 313 |
|
| 314 |
#. At the `drbdsetup` level, a connection is addressed by its two replication |
| 315 |
#. endpoints identified by address family (optional), address (required), and |
| 316 |
#. port (optional). |
| 317 |
#. type: Title === |
| 318 |
#: fundamentals.adoc:139 |
| 319 |
#, no-wrap |
| 320 |
msgid "Resource roles" |
| 321 |
msgstr "资源角色" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: fundamentals.adoc:143 |
| 325 |
msgid "" |
| 326 |
"indexterm:[Primary]indexterm:[Secondary]indexterm:[role]In DRBD, every " |
| 327 |
"<<s-resources,resource>> has a role, which may be _Primary_ or _Secondary_." |
| 328 |
msgstr "" |
| 329 |
"indexterm:[Primary]indexterm:[Secondary]indexterm:[role]在DRBD中,每个<<s-resources,resource>>都有一个角色,该角色可以是 _Primary_ 或 _Secondary_ 。" |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: fundamentals.adoc:151 |
| 333 |
msgid "" |
| 334 |
"The choice of terms here is not arbitrary. These roles were deliberately not" |
| 335 |
" named \"Active\" and \"Passive\" by DRBD's creators. _Primary_ vs. " |
| 336 |
"_secondary_ refers to a concept related to availability of *storage*, " |
| 337 |
"whereas _active_ vs. _passive_ refers to the availability of an " |
| 338 |
"*application*. It is usually the case in a high-availability environment " |
| 339 |
"that the _primary_ node is also the _active_ one, but this is by no means " |
| 340 |
"necessary." |
| 341 |
msgstr "" |
| 342 |
"这里的术语选择不是任意的。这些角色被DRBD的创造者特意命名为\"Active\"和\"Passive\"。_Primary_ 与 _secondary_ 是指与 *存储* 的可用性相关的概念,而 _active_ 与 _passive_ 是指 *应用程序* 的可用性。在高可用性环境中,通常情况下 _primary_ 节点也是 _active_ 节点,但这并不是必需的。" |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: fundamentals.adoc:155 |
| 346 |
msgid "" |
| 347 |
"A DRBD device in the _primary_ role can be used unrestrictedly for read and " |
| 348 |
"write operations. It may be used for creating and mounting file systems, raw" |
| 349 |
" or direct I/O to the block device, etc." |
| 350 |
msgstr "处于 _primary_ 角色的DRBD设备可以不受限制地用于读写操作。它可用于创建和装载文件系统、原始或直接I/O到块设备等。" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: fundamentals.adoc:162 |
| 354 |
msgid "" |
| 355 |
"A DRBD device in the _secondary_ role receives all updates from the peer " |
| 356 |
"node's device, but otherwise disallows access completely. It can not be used" |
| 357 |
" by applications, neither for read nor write access. The reason for " |
| 358 |
"disallowing even read-only access to the device is the necessity to maintain" |
| 359 |
" cache coherency, which would be impossible if a secondary resource were " |
| 360 |
"made accessible in any way." |
| 361 |
msgstr "" |
| 362 |
"处于 _secondary_ 角色的DRBD设备接收来自对等节点设备的所有更新,但在其他情况下完全不允许访问。它不能被应用程序使用,也不能用于读写访问。甚至不允许对设备进行只读访问的原因是必须保持缓存一致性,如果以任何方式访问辅助资源,这是不可能的。" |
| 363 |
|
| 364 |
#. type: Plain text |
| 365 |
#: fundamentals.adoc:167 |
| 366 |
msgid "" |
| 367 |
"The resource's role can, of course, be changed, either by <<s-switch-" |
| 368 |
"resource-roles,manual intervention>>, by way of some automated algorithm by " |
| 369 |
"a cluster management application, or <<s-automatic-" |
| 370 |
"promotion,automatically>>. Changing the resource role from secondary to " |
| 371 |
"primary is referred to as _promotion_, whereas the reverse operation is " |
| 372 |
"termed _demotion_." |
| 373 |
msgstr "" |
| 374 |
"当然,资源的角色可以通过<<s-switch-resource-roles,manual " |
| 375 |
"intervention>>,调用集群管理应用程序的一些自动算法,或者<<s-automatic-" |
| 376 |
"promotion,automatically>>来更改。将资源角色从次要角色更改为主要角色称为 _promotion_ (升级),而反向操作称为 _demotion_ (降级)。" |