Debian Codegraph @

UG9/cn/xen.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=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: Title ==
20 #: xen.adoc:2
21 #, no-wrap
22 msgid "Using Xen with DRBD"
23 msgstr "在DRBD中使用Xen"
24
25 #. type: Plain text
26 #: xen.adoc:7
27 msgid ""
28 "indexterm:[Xen]This chapter outlines the use of DRBD as a Virtual Block "
29 "Device (VBD) for virtualization environments using the Xen hypervisor."
30 msgstr "indexterm:[Xen]本章概述了将DRBD用作虚拟块设备(VBD)的方法,用于使用Xen虚拟机监控程序的虚拟化环境。"
31
32 #. type: Title ===
33 #: xen.adoc:9
34 #, no-wrap
35 msgid "Xen primer"
36 msgstr "Xen基础"
37
38 #. type: Plain text
39 #: xen.adoc:17
40 msgid ""
41 "Xen is a virtualization framework originally developed at the University of "
42 "Cambridge (UK), and later being maintained by XenSource, Inc. (now a part of"
43 " Citrix). It is included in reasonably recent releases of most Linux "
44 "distributions, such as Debian GNU/Linux (since version 4.0), SUSE Linux "
45 "Enterprise Server (since release 10), Red Hat Enterprise Linux (since "
46 "release 5), and many others."
47 msgstr ""
48 "Xen是一个虚拟化框架,最初在剑桥大学(英国)开发,后来由XenSource,Inc.维护(现在是Citrix的一部分)。它包含在大多数Linux发行版的最新版本中,如Debian"
49 " GNU/Linux(4.0版以后)、SUSE Linux Enterprise Server(10版以后)、Red Hat Enterprise "
50 "Linux(5版以后)和许多其他发行版。"
51
52 #. type: Plain text
53 #: xen.adoc:26
54 msgid ""
55 "Xen uses paravirtualization — a virtualization method involving a high "
56 "degree of cooperation between the virtualization host and guest virtual "
57 "machines — with selected guest operating systems for improved performance in"
58 " comparison to conventional virtualization solutions (which are typically "
59 "based on hardware emulation). Xen also supports full hardware emulation on "
60 "CPUs that support the appropriate virtualization extensions; in Xen "
61 "parlance, this is known as HVM ( \"hardware-assisted virtual machine\")."
62 msgstr ""
63 "Xen使用半虚拟化(一种虚拟化方法,涉及虚拟化主机和来宾虚拟机之间的高度协作)和选定的来宾操作系统,与传统的虚拟化解决方案(通常基于硬件仿真)相比,可提高性能。Xen还支持在支持适当虚拟化扩展的cpu上进行完全硬件仿真;用Xen的话说,这就是HVM( \"硬件辅助虚拟机\" )。"
64
65 #. type: Plain text
66 #: xen.adoc:31
67 msgid ""
68 "At the time of writing, CPU extensions supported by Xen for HVM are Intel's "
69 "Virtualization Technology (VT, formerly codenamed \"Vanderpool\"), and AMD's"
70 " Secure Virtual Machine (SVM, formerly known as \"Pacifica\")."
71 msgstr ""
72 "在撰写本文时,Xen for "
73 "HVM支持的CPU扩展是英特尔的虚拟化技术(VT,以前的代号为 \"Vanderpool\")和AMD的安全虚拟机(SVM,以前的代号为 \"Pacifica\")。"
74
75 #. type: Plain text
76 #: xen.adoc:35
77 msgid ""
78 "Xen supports indexterm:[Xen, live migration]_live migration_, which refers "
79 "to the capability of transferring a running guest operating system from one "
80 "physical host to another, without interruption."
81 msgstr ""
82 "Xen支持indexterm:[Xen,live migration]_live "
83 "migration_,它是指在不中断的情况下,将正在运行的来宾操作系统从一个物理主机传输到另一个物理主机的能力。"
84
85 #. type: Plain text
86 #: xen.adoc:44
87 msgid ""
88 "When a DRBD resource is used as a replicated Virtual Block Device (VBD) for "
89 "Xen, it serves to make the entire contents of a domU's virtual disk "
90 "available on two servers, which can then be configured for automatic fail-"
91 "over. That way, DRBD does not only provide redundancy for Linux servers (as "
92 "in non-virtualized DRBD deployment scenarios), but also for any other "
93 "operating system that can be virtualized under Xen — which, in essence, "
94 "includes any operating system available on 32- or 64-bit Intel compatible "
95 "architectures."
96 msgstr ""
97 "当DRBD资源用作Xen的复制虚拟块设备(VBD)时,它用于使domU虚拟磁盘的全部内容在两台服务器上可用,然后可以将其配置为自动故障转移。这样,DRBD不仅为Linux服务器提供冗余(在非虚拟化DRBD部署场景中),而且也为可以在Xen下虚拟化的任何其他操作系统提供冗余,Xen实际上包括32位或64位Intel兼容体系结构上可用的任何操作系统。"
98
99 #. type: Title ===
100 #: xen.adoc:46
101 #, no-wrap
102 msgid "Setting DRBD module parameters for use with Xen"
103 msgstr "设置DRBD模块参数以用于Xen"
104
105 #. type: Plain text
106 #: xen.adoc:51
107 msgid ""
108 "For Xen Domain-0 kernels, it is recommended to load the DRBD module with the"
109 " parameter `disable_sendpage` set to `1`. To do so, create (or open) the "
110 "file `/etc/modprobe.d/drbd.conf` and enter the following line:"
111 msgstr ""
112 "对于Xen Domain-0内核,建议加载DRBD模块,并将参数 `disable_"
113 "sendpage` 设置为 `1`。为此,创建(或打开)文件 `/etc/modprobe.d/drbd.conf` ,并输入以下行:"
114
115 #. type: delimited block -
116 #: xen.adoc:55
117 #, no-wrap
118 msgid "options drbd disable_sendpage=1\n"
119 msgstr "options drbd disable_sendpage=1\n"
120
121 #. type: Title ===
122 #: xen.adoc:58
123 #, no-wrap
124 msgid "Creating a DRBD resource suitable to act as a Xen VBD"
125 msgstr "创建适合用作Xen VBD的DRBD资源"
126
127 #. type: Plain text
128 #: xen.adoc:66
129 msgid ""
130 "Configuring a DRBD resource that is to be used as a Virtual Block Device for"
131 " Xen is fairly straightforward -- in essence, the typical configuration "
132 "matches that of a DRBD resource being used for any other purpose. However, "
133 "if you want to enable live migration for your guest instance, you need to "
134 "enable indexterm:[Dual-Primary mode]<<s-dual-primary-mode,dual-primary "
135 "mode>>for this resource:"
136 msgstr ""
137 "配置将用作Xen虚拟块设备的DRBD资源相当简单 - 实际上,典型配置与用于任何其他目的的DRBD资源的配置相匹配。但是,如果要为来宾实例启用实时迁移,则需要为此资源启用indexterm:[Dual-Primary mode]<<s-dual-"
138 "primary-mode,dual-primary mode>>:"
139
140 #. type: delimited block -
141 #: xen.adoc:76
142 #, no-wrap
143 msgid ""
144 "resource <resource> {\n"
145 " net {\n"
146 " allow-two-primaries yes;\n"
147 " ...\n"
148 " }\n"
149 " ...\n"
150 "}\n"
151 msgstr ""
152 "resource <resource> {\n"
153 " net {\n"
154 " allow-two-primaries yes;\n"
155 " ...\n"
156 " }\n"
157 " ...\n"
158 "}\n"
159
160 #. type: Plain text
161 #: xen.adoc:82
162 msgid ""
163 "Enabling dual-primary mode is necessary because Xen, before initiating live "
164 "migration, checks for write access on all VBDs a resource is configured to "
165 "use on both the source and the destination host for the migration."
166 msgstr "启用dual-primary模式是必要的,因为Xen在启动实时迁移之前,会检查资源配置为在源主机和目标主机上用于迁移的所有VBD上的写访问。"
167
168 #. type: Title ===
169 #: xen.adoc:84
170 #, no-wrap
171 msgid "Using DRBD VBDs"
172 msgstr "使用DRBD VBDs"
173
174 #. type: Plain text
175 #: xen.adoc:89
176 msgid ""
177 "In order to use a DRBD resource as the virtual block device, you must add a "
178 "line like the following to your Xen domU configuration: indexterm:[Xen]"
179 msgstr "为了将DRBD资源用作虚拟块设备,必须在Xen domU配置中添加如下行:indexterm:[Xen]"
180
181 #. type: delimited block -
182 #: xen.adoc:93
183 #, no-wrap
184 msgid "disk = [ 'drbd:<resource>,xvda,w' ]\n"
185 msgstr "disk = [ 'drbd:<resource>,xvda,w' ]\n"
186
187 #. type: Plain text
188 #: xen.adoc:97
189 msgid ""
190 "This example configuration makes the DRBD resource named _resource_ "
191 "available to the domU as `/dev/xvda` in read/write mode (`w`)."
192 msgstr "此示例配置使名为 _resource_ 的DRBD资源在读/写模式(`w`)下以 `/dev/xvda` 的形式对domU可用。"
193
194 #. type: Plain text
195 #: xen.adoc:101
196 msgid ""
197 "Of course, you may use multiple DRBD resources with a single domU. In that "
198 "case, simply add more entries like the one provided in the example to the "
199 "`disk` option, separated by commas."
200 msgstr "当然,您可以将多个DRBD资源与一个domU一起使用。在这种情况下,只需在 `disk` 选项中添加更多类似于示例中提供的条目,并用逗号分隔。"
201
202 #. type: Plain text
203 #: xen.adoc:105
204 msgid ""
205 "There are three sets of circumstances under which you cannot use this "
206 "approach:"
207 msgstr "在以下三种情况下,您不能使用此方法:"
208
209 #. type: Plain text
210 #: xen.adoc:107
211 msgid "You are configuring a fully virtualized (HVM) domU."
212 msgstr "您正在配置完全虚拟化(HVM)domU。"
213
214 #. type: Plain text
215 #: xen.adoc:110
216 msgid ""
217 "You are installing your domU using a graphical installation utility, _and_ "
218 "that graphical installer does not support the `drbd:` syntax."
219 msgstr "您正在使用图形安装实用程序安装domU,图形安装程序不支持 `drbd:` 语法。"
220
221 #. type: Plain text
222 #: xen.adoc:115
223 msgid ""
224 "You are configuring a domU without the `kernel`, `initrd`, and `extra` "
225 "options, relying instead on `bootloader` and `bootloader_args` to use a Xen "
226 "pseudo-bootloader, _and_ that pseudo-bootloader does not support the `drbd:`"
227 " syntax."
228 msgstr ""
229 "您正在配置一个没有 `kernel`、 `initrd` 和 `extra` 选项的domU,依赖 `bootloader` 和 `bootloader_args` 参数来使用Xen"
230 " pseudo-bootloader,该pseudo-bootloader不支持 `drbd:` 语法。"
231
232 #. type: Plain text
233 #: xen.adoc:120
234 msgid ""
235 "pygrub+ (prior to Xen 3.3) and `domUloader.py` (shipped with Xen on SUSE "
236 "Linux Enterprise Server 10) are two examples of pseudo-bootloaders that do "
237 "not support the `drbd:` virtual block device configuration syntax."
238 msgstr ""
239 "pygrub+(在Xen 3.3之前)和 `domUloader.py`(在SUSE "
240 "Linux企业服务器10上随Xen一起提供)是两个不支持 `drbd:` 虚拟块设备配置语法的伪引导加载程序示例。"
241
242 #. type: Plain text
243 #: xen.adoc:123
244 msgid ""
245 "`pygrub` from Xen 3.3 forward, and the `domUloader.py` version that ships "
246 "with SLES 11 _do_ support this syntax."
247 msgstr "自Xen 3.3 以后的 `pygrub` 和SLES 11后附带的 `domUloader.py` 版本都支持这种语法。"
248
249 #. type: Plain text
250 #: xen.adoc:129
251 msgid ""
252 "Under these circumstances, you must use the traditional `phy:` device syntax"
253 " and the DRBD device name that is associated with your resource, not the "
254 "resource name. That, however, requires that you manage DRBD state "
255 "transitions outside Xen, which is a less flexible approach than that "
256 "provided by the `drbd` resource type."
257 msgstr ""
258 "在这些情况下,必须使用传统的 `phy:` 设备语法和与资源关联的DRBD设备名,而不是资源名。但是,这要求您在Xen之外管理DRBD状态转换,这是一种比 `DRBD` 资源类型提供的更不灵活的方法。"
259
260 #. type: Title ===
261 #: xen.adoc:131
262 #, no-wrap
263 msgid "Starting, stopping, and migrating DRBD-backed domU's"
264 msgstr "启动、停止和迁移DRBD支持的domU"
265
266 #. type: Block title
267 #: xen.adoc:133
268 #, no-wrap
269 msgid "Starting the domU"
270 msgstr "启动domU"
271
272 #. type: Plain text
273 #: xen.adoc:136
274 msgid ""
275 "Once you have configured your DRBD-backed domU, you may start it as you "
276 "would any other domU:"
277 msgstr "一旦配置了DRBD支持的domU,就可以像启动其他domU一样启动它:"
278
279 #. type: delimited block -
280 #: xen.adoc:140
281 #, no-wrap
282 msgid ""
283 "# xm create <domU>\n"
284 "Using config file \"/etc/xen/<domU>\".\n"
285 "Started domain <domU>\n"
286 msgstr ""
287 "# xm create <domU>\n"
288 "Using config file \"/etc/xen/<domU>\".\n"
289 "Started domain <domU>\n"
290
291 #. type: Plain text
292 #: xen.adoc:144
293 msgid ""
294 "In the process, the DRBD resource you configured as the VBD will be promoted"
295 " to the primary role, and made accessible to Xen as expected."
296 msgstr "在此过程中,您配置为VBD的DRBD资源将提升为主要角色,并按预期让Xen访问。"
297
298 #. type: Block title
299 #: xen.adoc:146
300 #, no-wrap
301 msgid "Stopping the domU"
302 msgstr "停止domU"
303
304 #. type: Plain text
305 #: xen.adoc:148
306 msgid "This is equally straightforward:"
307 msgstr "这同样直截了当:"
308
309 #. type: delimited block -
310 #: xen.adoc:151
311 #, no-wrap
312 msgid ""
313 "# xm shutdown -w <domU>\n"
314 "Domain <domU> terminated.\n"
315 msgstr ""
316 "# xm shutdown -w <domU>\n"
317 "Domain <domU> terminated.\n"
318
319 #. type: Plain text
320 #: xen.adoc:155
321 msgid ""
322 "Again, as you would expect, the DRBD resource is returned to the secondary "
323 "role after the domU is successfully shut down."
324 msgstr "同样,如您所料,在domU成功关闭后,DRBD资源将返回到次要角色。"
325
326 #. type: Block title
327 #: xen.adoc:157
328 #, no-wrap
329 msgid "Migrating the domU"
330 msgstr "迁移domU"
331
332 #. type: Plain text
333 #: xen.adoc:159
334 msgid "This, too, is done using the usual Xen tools:"
335 msgstr "这也是使用常用的Xen工具完成的:"
336
337 #. type: delimited block -
338 #: xen.adoc:161
339 #, no-wrap
340 msgid "# xm migrate --live <domU> <destination-host>\n"
341 msgstr "# xm migrate --live <domU> <destination-host>\n"
342
343 #. type: Plain text
344 #: xen.adoc:165
345 msgid ""
346 "In this case, several administrative steps are automatically taken in rapid "
347 "succession:"
348 msgstr "在这种情况下,会自动连续快速地执行几个管理步骤:"
349
350 #. type: Plain text
351 #: xen.adoc:166
352 msgid "The resource is promoted to the primary role on _destination-host_."
353 msgstr "资源将提升为目标主机上的主要角色。"
354
355 #. type: Plain text
356 #: xen.adoc:167
357 msgid "Live migration of _domU_ is initiated on the local host."
358 msgstr "本地主机上启动了 _domU_ 的实时迁移。"
359
360 #. type: Plain text
361 #: xen.adoc:169
362 msgid ""
363 "When migration to the destination host has completed, the resource is "
364 "demoted to the secondary role locally."
365 msgstr "迁移到目标主机完成后,资源将在本地降级为次要角色。"
366
367 #. type: Plain text
368 #: xen.adoc:173
369 msgid ""
370 "The fact that both resources must briefly run in the primary role on both "
371 "hosts is the reason for having to configure the resource in dual-primary "
372 "mode in the first place."
373 msgstr "两个资源必须在两台主机上以主角色短暂运行,这是首先必须以dual-primary模式配置资源的原因。"
374
375 #. type: Title ===
376 #: xen.adoc:176
377 #, no-wrap
378 msgid "Internals of DRBD/Xen integration"
379 msgstr "DRBD/Xen集成的内部机制"
380
381 #. type: Plain text
382 #: xen.adoc:179
383 msgid "Xen supports two Virtual Block Device types natively:"
384 msgstr "Xen本机支持两种虚拟块设备类型:"
385
386 #. type: Block title
387 #: xen.adoc:180
388 #, no-wrap
389 msgid "`phy`"
390 msgstr "`phy`"
391
392 #. type: Plain text
393 #: xen.adoc:184
394 msgid ""
395 "This device type is used to hand \"physical\" block devices, available in "
396 "the host environment, off to a guest domU in an essentially transparent "
397 "fashion."
398 msgstr "此设备类型用于将主机环境中可用的 \"physical\" 块设备以基本透明的方式移交给来宾domU。"
399
400 #. type: Block title
401 #: xen.adoc:185
402 #, no-wrap
403 msgid "`file`"
404 msgstr "`file`"
405
406 #. type: Plain text
407 #: xen.adoc:190
408 msgid ""
409 "This device type is used to make file-based block device images available to"
410 " the guest domU. It works by creating a loop block device from the original "
411 "image file, and then handing that block device off to the domU in much the "
412 "same fashion as the `phy` device type does."
413 msgstr ""
414 "此设备类型用于使基于文件的块设备映像对来宾domU可用。它的工作原理是从原始图像文件创建一个循环块设备,然后以与 `phy` 设备类型几乎相同的方式将该块设备传递给domU。"
415
416 #. type: Plain text
417 #: xen.adoc:196
418 msgid ""
419 "If a Virtual Block Device configured in the `disk` option of a domU "
420 "configuration uses any prefix other than `phy:`, `file:`, or no prefix at "
421 "all (in which case Xen defaults to using the `phy` device type), Xen expects"
422 " to find a helper script named ``block-``_prefix_ in the Xen scripts "
423 "directory, commonly `/etc/xen/scripts`."
424 msgstr ""
425 "如果在domU配置的 `disk` 选项中配置的虚拟块设备使用除 `phy:` 、 `file:` 之外的任何前缀,或者根本不使用前缀(在这种情况下,Xen默认使用 `phy` 设备类型),Xen希望在Xen"
426 " scripts目录(通常是 `/etc/Xen/scripts` )中找到名为 ``block-`` _prefix_ 的助手脚本。"
427
428 #. type: Plain text
429 #: xen.adoc:201
430 msgid ""
431 "The DRBD distribution provides such a script for the `drbd` device type, "
432 "named `/etc/xen/scripts/block-drbd`. This script handles the necessary DRBD "
433 "resource state transitions as described earlier in this chapter."
434 msgstr ""
435 "DRBD发行版为 `drbd` 设备类型提供了这样一个脚本,名为 `/etc/xen/scripts/block-"
436 "drbd` 。该脚本处理必要的DRBD资源状态转换,如本章前面所述。"
437
438 #. type: Title ===
439 #: xen.adoc:203
440 #, no-wrap
441 msgid "Integrating Xen with Pacemaker"
442 msgstr "Xen与Pacemaker的集成"
443
444 #. type: Plain text
445 #: xen.adoc:209
446 msgid ""
447 "indexterm:[Xen]indexterm:[Heartbeat]In order to fully capitalize on the "
448 "benefits provided by having a DRBD-backed Xen VBD's, it is recommended to "
449 "have Heartbeat manage the associated domU's as Heartbeat resources."
450 msgstr ""
451 "indexterm:[Xen]indexterm:[Heartbeat]为了充分利用由DRBD支持的Xen "
452 "VBD提供的好处,建议让Heartbeat将关联的domU作为Heartbeat资源进行管理。"
453
454 #. type: Plain text
455 #: xen.adoc:215
456 msgid ""
457 "You may configure a Xen domU as a Pacemaker resource, and automate resource "
458 "failover. To do so, use the Xen OCF resource agent. If you are using the "
459 "`drbd` Xen device type described in this chapter, you will _not_ need to "
460 "configure any separate `drbd` resource for use by the Xen cluster resource. "
461 "Instead, the `block-drbd` helper script will do all the necessary resource "
462 "transitions for you."
463 msgstr ""
464 "您可以将Xen domU配置为Pacemaker资源,并自动进行资源故障转移。为此,请使用Xen "
465 "OCF资源代理。如果您使用本章中描述的 `drbd` Xen设备类型,则不需要配置任何单独的 `drbd` 资源以供Xen群集资源使用。相反,`block-"
466 "drbd` 助手脚本将为您执行所有必要的资源转换。"