Debian Codegraph @

UG9/cn/administration-linstor.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 msgid ""
7 msgstr ""
8 "Project-Id-Version: \n"
9 "POT-Creation-Date: 2020-03-02 15:09+0000\n"
10 "PO-Revision-Date: 2020-03-05 15:33+0800\n"
11 "Language: zh\n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15 "Last-Translator: \n"
16 "Language-Team: \n"
17 "X-Generator: Poedit 2.0.6\n"
18
19 #. type: Title ==
20 #: administration-linstor.adoc:3
21 #, no-wrap
22 msgid "Basic administrative tasks / Setup"
23 msgstr "基本管理任务/设置"
24
25 #. type: Plain text
26 #: administration-linstor.adoc:10
27 msgid ""
28 "LINSTOR is a configuration management system for storage on Linux systems. It manages LVM logical volumes and/or ZFS ZVOLs on a cluster of nodes. It leverages DRBD for "
29 "replication between different nodes and to provide block storage devices to users and applications. It manages snapshots, encryption and caching of HDD backed data in SSDs via "
30 "bcache."
31 msgstr ""
32 "LINSTOR是一个用于Linux系统上存储的配置管理系统。它管理节点集群上的LVM逻辑卷和/或ZFS ZVOLs。它利用DRBD在不同节点之间进行复制,并为用户和应用程序提供块存储设备。它通过bcache管理"
33 "SSD中HDD备份数据的快照、加密和缓存。"
34
35 #. Troubleshooting for LINSTOR guide?
36 #. This chapter outlines typical administrative tasks encountered during
37 #. day-to-day operations. It does not cover troubleshooting tasks, these
38 #. are covered in detail in <<ch-troubleshooting>>.
39 #. type: Title ===
40 #: administration-linstor.adoc:20
41 #, no-wrap
42 msgid "Concepts and Terms"
43 msgstr "概念和术语"
44
45 #. type: Plain text
46 #: administration-linstor.adoc:24
47 msgid ""
48 "This section goes over core concepts and terms that you will need to familiarize yourself with to understand how LINSTOR works and deploys storage. The section is laid out in a "
49 "\"ground up\" approach."
50 msgstr "本节将介绍一些核心概念和术语,您需要熟悉这些概念和术语才能理解LINSTOR是如何工作和部署存储的。这一部分是以 \"ground up\" 的方式布置的。"
51
52 #. type: Title ====
53 #: administration-linstor.adoc:26
54 #, no-wrap
55 msgid "Installable Components"
56 msgstr "可安装组件"
57
58 #. type: Title =====
59 #: administration-linstor.adoc:27
60 #, no-wrap
61 msgid "linstor-controller"
62 msgstr "linstor-controller"
63
64 #. type: Plain text
65 #: administration-linstor.adoc:29
66 msgid "A LINSTOR setup requires at least one active controller and one or more satellites."
67 msgstr "LINSTOR设置至少需要一个活动的controller和一个或多个satellites。"
68
69 #. Once the chapter on making your controller HA is done we need to link that
70 #. here
71 #. type: Plain text
72 #: administration-linstor.adoc:37
73 msgid ""
74 "The _linstor-controller_ contains the database that holds all configuration information for the whole cluster. It makes all decisions that need to have a view of the whole "
75 "cluster. The controller is typically deployed as a HA service using Pacemaker and DRBD as it is a crucial part of the system. Multiple controllers can be used for LINSTOR but "
76 "only one can be active."
77 msgstr ""
78 "_linstor-controller_ 包含保存整个集群的所有配置信息的数据库。它做出所有需要查看整个集群的决策。由于控制器是系统的关键部分,因此通常使用Pacemaker和DRBD将其部署为HA服务。多个控制"
79 "器可用于LINSTOR,但只能有一个处于活动状态。"
80
81 #. type: Title =====
82 #: administration-linstor.adoc:38
83 #, no-wrap
84 msgid "linstor-satellite"
85 msgstr "linstor-satellite"
86
87 #. type: Plain text
88 #: administration-linstor.adoc:43
89 msgid ""
90 "The _linstor-satellite_ runs on each node where LINSTOR consumes local storage or provides storage to services. It is stateless; it receives all the information it needs from "
91 "the controller. It runs programs like `lvcreate` and `drbdadm`. It acts like a node agent."
92 msgstr ""
93 "_linstor-satellite_ 运行在每个LINSTOR使用本地存储或为服务提供存储的节点上。它是无状态的;它从控制器接收所需的所有信息。它运行 `lvcreate` 和 `drbdadm` 等程序。它行为方式就像一个"
94 "节点代理。"
95
96 #. type: Title =====
97 #: administration-linstor.adoc:44
98 #, no-wrap
99 msgid "linstor-client"
100 msgstr "linstor-client"
101
102 #. type: Plain text
103 #: administration-linstor.adoc:47
104 msgid "The _linstor-client_ is a command line utility that you use to issue commands to the system and to investigate the status of the system."
105 msgstr "_linstor-client_ 是一个命令行实用程序,用于向系统发送命令并检查系统的状态。"
106
107 #. type: Title ====
108 #: administration-linstor.adoc:48
109 #, no-wrap
110 msgid "Objects"
111 msgstr "对象"
112
113 #. type: Plain text
114 #: administration-linstor.adoc:51
115 msgid "Objects are the end result which LINSTOR presents to the end-user or application, such as; Kubernetes/OpenShift, a replicated block device (DRBD), NVMeOF target, etc."
116 msgstr "对象是LINSTOR呈现给最终用户或应用程序的最终结果,例如Kubernetes/OpenShift、复制块设备(DRBD)、NVMeOF目标等。"
117
118 #. type: Plain text
119 #: administration-linstor.adoc:52 administration-linstor.adoc:792
120 #, no-wrap
121 msgid "Node"
122 msgstr "节点"
123
124 #. type: Plain text
125 #: administration-linstor.adoc:55
126 msgid "Node's are a server or container that participate in a LINSTOR cluster. The _Node_ attribute defines:"
127 msgstr "节点是参与LINSTOR集群的服务器或容器。 _Node_ 属性定义如下:"
128
129 #. type: Plain text
130 #: administration-linstor.adoc:57
131 msgid "Determines which LINSTOR cluster the node participates in"
132 msgstr "确定节点参与哪个LINSTOR集群"
133
134 #. type: Plain text
135 #: administration-linstor.adoc:58
136 msgid "Sets the role of the node: Controller, Satellite, Auxiliary"
137 msgstr "设置节点的角色:Controller, Satellite, Auxiliary"
138
139 #. type: Plain text
140 #: administration-linstor.adoc:59
141 #, no-wrap
142 msgid "*NetInterface* objects define the node's connectivity\n"
143 msgstr "*网络接口* 对象定义了节点的网络连接\n"
144
145 #. type: Title =====
146 #: administration-linstor.adoc:60
147 #, no-wrap
148 msgid "NetInterface"
149 msgstr "网络接口"
150
151 #. type: Plain text
152 #: administration-linstor.adoc:62
153 msgid "As the name implies, this is how you define the interface/address of a node's network interface."
154 msgstr "顾名思义,这就是定义节点网络接口的接口/地址的方式。"
155
156 #. type: Title =====
157 #: administration-linstor.adoc:63
158 #, no-wrap
159 msgid "Definitions"
160 msgstr "Definitions"
161
162 #. type: Plain text
163 #: administration-linstor.adoc:69
164 msgid ""
165 "Definitions define attributes of an object, they can be thought of as profile or template. Objects created will inherit the configuration defined in the definitions. A "
166 "definition must be defined prior to creating the associated object. For example; you must create a _ResourceDefinition_ prior to creating the _Resource_"
167 msgstr ""
168 "Definitions定义了一个对象的属性,它们可以被看作是概要文件或模板。创建的对象将继承definitions中定义的配置。必须在创建关联对象之前定义definitions。例如,在创建 _Resource_ 之前,必"
169 "须先创建 _ResourceDefinition__"
170
171 #. type: Labeled list
172 #: administration-linstor.adoc:70
173 #, no-wrap
174 msgid "StoragePoolDefinition :"
175 msgstr "StoragePoolDefinition :"
176
177 #. type: Plain text
178 #: administration-linstor.adoc:72
179 msgid "Defines the name of a storage pool"
180 msgstr "定义存储池的名称"
181
182 #. type: Labeled list
183 #: administration-linstor.adoc:73
184 #, no-wrap
185 msgid "ResourceDefinition :"
186 msgstr "ResourceDefinition :"
187
188 #. type: Plain text
189 #: administration-linstor.adoc:75
190 msgid "Resource definitions define the following attributes of a resource:"
191 msgstr "资源 definitions定义资源的以下属性:"
192
193 #. type: Plain text
194 #: administration-linstor.adoc:76
195 msgid "The name of a DRBD resource"
196 msgstr "DRBD资源的名称"
197
198 #. type: Plain text
199 #: administration-linstor.adoc:77
200 msgid "The TCP port for DRBD to use for the resource's connection"
201 msgstr "用于资源连接的DRBD的TCP端口"
202
203 #. type: Labeled list
204 #: administration-linstor.adoc:78
205 #, no-wrap
206 msgid "VolumeDefinition :"
207 msgstr "VolumeDefinition :"
208
209 #. type: Plain text
210 #: administration-linstor.adoc:80
211 msgid "Volume definitions define the following:"
212 msgstr "Volume definitions 定义如下:"
213
214 #. type: Plain text
215 #: administration-linstor.adoc:82
216 msgid "A volume of a DRBD resource"
217 msgstr "DRBD资源的卷"
218
219 #. type: Plain text
220 #: administration-linstor.adoc:83
221 msgid "The size of the volume"
222 msgstr "卷的大小"
223
224 #. type: Plain text
225 #: administration-linstor.adoc:84
226 msgid "The volume number of the DRBD resource's volume"
227 msgstr "DRBD资源卷的卷号"
228
229 #. type: Plain text
230 #: administration-linstor.adoc:85
231 msgid "The meta data properties of the volume"
232 msgstr "卷的元数据属性"
233
234 #. type: Plain text
235 #: administration-linstor.adoc:86
236 msgid "The minor number to use for the DRBD device associated with the DRBD volume"
237 msgstr "用于与DRBD卷关联的DRBD设备的次要编号"
238
239 #. type: Title =====
240 #: administration-linstor.adoc:87
241 #, no-wrap
242 msgid "StoragePool"
243 msgstr "StoragePool"
244
245 #. type: Plain text
246 #: administration-linstor.adoc:89
247 msgid "The _StoragePool_ identifies storage in the context of LINSTOR. It defines:"
248 msgstr "_StoragePool_ 用于标识LINSTOR上下文中的存储。它定义了:"
249
250 #. type: Plain text
251 #: administration-linstor.adoc:91
252 msgid "The configuration of a storage pool on a specific node"
253 msgstr "特定节点上存储池的配置"
254
255 #. type: Plain text
256 #: administration-linstor.adoc:92
257 msgid "The storage back-end driver to use for the storage pool on the cluster node (LVM, ZFS, etc)"
258 msgstr "用于群集节点上的存储池的存储后端驱动程序(LVM、ZFS等)"
259
260 #. type: Plain text
261 #: administration-linstor.adoc:93
262 msgid "The parameters and configuration to pass to the storage backed driver"
263 msgstr "要传递给存储备份驱动程序的参数和配置"
264
265 #. type: Plain text
266 #: administration-linstor.adoc:94 administration-linstor.adoc:790
267 #, no-wrap
268 msgid "Resource"
269 msgstr "Resource"
270
271 #. type: Plain text
272 #: administration-linstor.adoc:97
273 msgid "LINSTOR has now has expanded its capabilities to manage a broader set of storage technologies outside of just DRBD. A _Resource_:"
274 msgstr "LINSTOR现在已经扩展了它的能力,在DRBD之外管理更广泛的存储技术。 _Resource_ 包括:"
275
276 #. type: Plain text
277 #: administration-linstor.adoc:99
278 msgid "Represents the placement of a DRBD resource, as defined within the _ResourceDefinition_"
279 msgstr "表示在 _ResourceDefinition_ 中定义的DRBD资源的位置"
280
281 #. type: Plain text
282 #: administration-linstor.adoc:100
283 msgid "Places a resource on a node in the cluster"
284 msgstr "在群集中的节点上放置资源"
285
286 #. type: Plain text
287 #: administration-linstor.adoc:101
288 msgid "Defines the placement of a _ResourceDefinition_ on a node"
289 msgstr "定义节点上 _ResourceDefinition_ 的位置"
290
291 #. type: Title =====
292 #: administration-linstor.adoc:102
293 #, no-wrap
294 msgid "Volume"
295 msgstr "Volume"
296
297 #. type: Plain text
298 #: administration-linstor.adoc:107
299 msgid ""
300 "Volumes are a subset of a _Resource_. A _Resource_ could have multiple volumes, for example you may wish to have your database stored on slower storage than your logs in your "
301 "MySQL cluster. By keeping the _volumes_ under a single _resource_ you are essentially creating a consistency group. The _Volume_ attribute can define also define attributes "
302 "on a more granular level."
303 msgstr ""
304 "Volumes是 _Resource_ 的子集。一个 _Resource_ 可能有多个volumes,例如,您可能希望将数据库存储在比MySQL集群中的日志慢的存储上。通过将 _volumes_ 保持在单个 _resource_ 下,实际上就"
305 "是在创建一致性组。 _Volume_ 属性还可以定义更细粒度级别的属性。"
306
307 #. type: Title ===
308 #: administration-linstor.adoc:109
309 #, no-wrap
310 msgid "Broader Context"
311 msgstr "更广泛的背景"
312
313 #. type: Plain text
314 #: administration-linstor.adoc:116
315 msgid ""
316 "While LINSTOR might be used to make the management of DRBD more convenient, it is often integrated with software stacks higher up. Such integration exist already for "
317 "Kubernetes, OpenStack, OpenNebula and Proxmox. Chapters specific to deploying LINSTOR in these environments are included in this guide."
318 msgstr ""
319 "虽然LINSTOR可以用来使DRBD的管理更加方便,但它通常与更高层次的软件栈集成。这种集成已经存在于Kubernetes、OpenStack、OpenNebula和Proxmox中。本指南中包含了在这些环境中部署LINSTOR的"
320 "特定章节。"
321
322 #. type: Plain text
323 #: administration-linstor.adoc:118
324 msgid "The southbound drivers used by LINSTOR are LVM, thinLVM and ZFS."
325 msgstr "LINSTOR使用的南向驱动程序是LVM、thinLVM和ZFS。"
326
327 #. type: Title ===
328 #: administration-linstor.adoc:120
329 #, no-wrap
330 msgid "Packages"
331 msgstr "包"
332
333 #. type: Plain text
334 #: administration-linstor.adoc:123
335 msgid "LINSTOR is packaged in both the .rpm and the .deb variants:"
336 msgstr "LINSTOR以.rpm和.deb两种包分发:"
337
338 #. type: Plain text
339 #: administration-linstor.adoc:127
340 msgid "_linstor-client_ contains the command line client program. It depends on python which is usually already installed. In RHEL 8 systems you will need to symlink python"
341 msgstr "_linstor-client_ 包含命令行客户端程序。这取决于通常已经安装的python。在RHEL8系统中,需要创建python符号链接"
342
343 #. type: Plain text
344 #: administration-linstor.adoc:130
345 msgid ""
346 "_linstor-controller_ and _linstor-satellite_ Both contain systemd unit files for the services. They depend on Java runtime environment (JRE) version 1.8 (headless) or higher."
347 msgstr "_linstor-controller_ 和 _linstor-satellite_ 都包含服务的系统单元文件。它们依赖于Java runtime environment(JRE)1.8版(headless)或更高版本。"
348
349 #. type: Plain text
350 #: administration-linstor.adoc:133
351 msgid "For further detail about these packages see the <<Installable Components,Installable Components>> section above."
352 msgstr "有关这些软件包的更多详细信息,请参见上面的<<Installable Components,Installable Components>>部分。"
353
354 #. type: Plain text
355 #: administration-linstor.adoc:136
356 msgid "If you have a support subscription to LINBIT, you will have access to our certified binaries via our repositories."
357 msgstr "如果您订阅了LINBIT的支持,那么您将可以通过我们的官方仓库访问我们经过认证的二进制文件。"
358
359 #. type: Title ===
360 #: administration-linstor.adoc:138
361 #, no-wrap
362 msgid "Installation"
363 msgstr "安装"
364
365 #. type: Plain text
366 #: administration-linstor.adoc:141
367 msgid "If you want to use LINSTOR in containers skip this Topic and use the \"Containers\" section below for the installation."
368 msgstr "如果要在容器中使用LINSTOR,请跳过此主题并使用下面的 \"容器\" 部分进行安装。"
369
370 #. type: Title ====
371 #: administration-linstor.adoc:145
372 #, no-wrap
373 msgid "Ubuntu Linux"
374 msgstr "Ubuntu Linux"
375
376 #. type: Plain text
377 #: administration-linstor.adoc:149
378 msgid ""
379 "If you want to have the option of creating replicated storage using DRBD, you will need to install _drbd-dkms_ and _drbd-utils_. These packages will need to be installed on all "
380 "nodes. You will also need to choose a volume manager, either ZFS or LVM, in this instance we're using LVM."
381 msgstr "如果您想选择使用DRBD创建复制存储,则需要安装 _drbd-dkms_ 和 _drbd-utils_ 。这些包需要安装在所有节点上。您还需要选择一个卷管理器,ZFS或LVM,在本例中我们使用的是LVM。"
382
383 #. type: delimited block -
384 #: administration-linstor.adoc:152
385 #, no-wrap
386 msgid "# apt install -y drbd-dkms drbd-utils lvm2\n"
387 msgstr "# apt install -y drbd-dkms drbd-utils lvm2\n"
388
389 #. type: Plain text
390 #: administration-linstor.adoc:155 administration-linstor.adoc:189 administration-linstor.adoc:219
391 msgid ""
392 "Depending on whether your node is a LINSTOR controller, satellite, or both (Combined) will determine what packages are required on that node. For combined type nodes, we'll "
393 "need both the controller and satellite LINSTOR package."
394 msgstr "根据节点是LINSTOR controller、satellite还是两者(组合)将确定该节点上需要哪些包。对于组合型节点,我们需要controller和satellite 的LINSTOR包。"
395
396 #. type: Plain text
397 #: administration-linstor.adoc:157 administration-linstor.adoc:191 administration-linstor.adoc:223
398 msgid "Combined node:"
399 msgstr "组合节点:"
400
401 #. type: delimited block -
402 #: administration-linstor.adoc:160
403 #, no-wrap
404 msgid "# apt install linstor-controller linstor-satellite linstor-client\n"
405 msgstr "# apt install linstor-controller linstor-satellite linstor-client\n"
406
407 #. type: Plain text
408 #: administration-linstor.adoc:163 administration-linstor.adoc:197 administration-linstor.adoc:229
409 msgid "That will make our remaining nodes our Satellites, so we'll need to install the following packages on them:"
410 msgstr "这将使我们剩余的节点成为我们的Satellites,因此我们需要在它们上安装以下软件包:"
411
412 #. type: delimited block -
413 #: administration-linstor.adoc:166
414 #, no-wrap
415 msgid "# apt install linstor-satellite linstor-client\n"
416 msgstr "# apt install linstor-satellite linstor-client\n"
417
418 #. type: Title ====
419 #: administration-linstor.adoc:170
420 #, no-wrap
421 msgid "SUSE Linux Enterprise Server"
422 msgstr "SUSE Linux企业服务器"
423
424 #. type: Plain text
425 #: administration-linstor.adoc:174
426 msgid "SLES High Availability Extension (HAE) includes DRBD."
427 msgstr "SLES高可用性扩展(HAE)包括DRBD。"
428
429 #. type: Plain text
430 #: administration-linstor.adoc:177
431 msgid "On SLES, DRBD is normally installed via the software installation component of YaST2. It comes bundled with the High Availabilty package selection."
432 msgstr "在SLES上,DRBD通常通过YaST2的软件安装组件安装。它与高可用性软件包捆绑在一起。"
433
434 #. type: Plain text
435 #: administration-linstor.adoc:180
436 msgid ""
437 "As we download DRBD's newest module we can check if the LVM-tools are up to date as well. User who prefer a command line install may simply issue the following command to get "
438 "the newest DRBD and LVM version:"
439 msgstr "当我们下载DRBD的最新模块时,我们可以检查LVM工具是否也是最新的。喜欢命令行安装的用户可用以下命令获得最新的DRBD和LVM版本:"
440
441 #. type: delimited block -
442 #: administration-linstor.adoc:183
443 #, no-wrap
444 msgid "# zypper install drbd lvm2\n"
445 msgstr "# zypper install drbd lvm2\n"
446
447 #. type: delimited block -
448 #: administration-linstor.adoc:194
449 #, no-wrap
450 msgid "# zypper install linstor-controller linstor-satellite linstor-client\n"
451 msgstr "# zypper install linstor-controller linstor-satellite linstor-client\n"
452
453 #. type: delimited block -
454 #: administration-linstor.adoc:200
455 #, no-wrap
456 msgid "# zypper install linstor-satellite linstor-client\n"
457 msgstr "# zypper install linstor-satellite linstor-client\n"
458
459 #. type: Title ====
460 #: administration-linstor.adoc:204
461 #, no-wrap
462 msgid "CentOS"
463 msgstr "CentOS"
464
465 #. type: Plain text
466 #: administration-linstor.adoc:209
467 msgid ""
468 "CentOS has had DRBD 8 since release 5. For DRBD 9 you'll need to look at EPEL and similar sources. Alternatively, if you have an active support contract with LINBIT you can "
469 "utilize our RHEL 8 repositories. DRBD can be installed using `yum`. We can also check for the newest version of the LVM-tools as well."
470 msgstr ""
471 "CentOS从第5版开始就有了DRBD 8。对于DRBD 9,您需要查看EPEL和类似的源代码。或者,如果您与LINBIT有签订支持合同,您可以利用我们的RHEL 8存储库。可以使用 `yum` 安装DRBD。我们也可以检"
472 "查最新版本的LVM工具。"
473
474 #. type: Plain text
475 #: administration-linstor.adoc:212
476 msgid "LINSTOR *requires* DRBD 9 if you wish to have replicated storage. This requires an external repository to be configured, either LINBIT's or a 3rd parties."
477 msgstr "如果要复制存储,LINSTOR *需要* DRBD 9。这需要配置外部存储库,可以是LINBIT的,也可以是第三方的。"
478
479 #. type: delimited block -
480 #: administration-linstor.adoc:215
481 #, no-wrap
482 msgid "# yum install drbd kmod-drbd lvm2\n"
483 msgstr "# yum install drbd kmod-drbd lvm2\n"
484
485 #. type: Plain text
486 #: administration-linstor.adoc:221
487 msgid "On RHEL 8 systems you will need to install python2 for the linstor-client to work."
488 msgstr "在RHEL8系统上,需要安装python2才能让linstor客户端工作。"
489
490 #. type: delimited block -
491 #: administration-linstor.adoc:226
492 #, no-wrap
493 msgid "# yum install linstor-controller linstor-satellite linstor-client\n"
494 msgstr "# yum install linstor-controller linstor-satellite linstor-client\n"
495
496 #. type: delimited block -
497 #: administration-linstor.adoc:232
498 #, no-wrap
499 msgid "# yum install linstor-satellite linstor-client\n"
500 msgstr "# yum install linstor-satellite linstor-client\n"
501
502 #. type: Title ===
503 #: administration-linstor.adoc:236
504 #, no-wrap
505 msgid "Upgrading"
506 msgstr "升级"
507
508 #. type: Plain text
509 #: administration-linstor.adoc:242
510 msgid ""
511 "LINSTOR doesn't support rolling upgrade, controller and satellites must have the same version, otherwise the controller with discard the satellite with a `VERSION_MISMATCH`. "
512 "But this isn't a problem, as the satellite won't do any actions as long it isn't connected to a controller and DRBD will not be disrupted by any means."
513 msgstr ""
514 "LINSTOR不支持滚动升级,controller和satellites必须具有相同的版本,否则controller将丢弃具有 `版本不匹配` 的satellite。但这不是问题,因为satellite不会做任何动作,只要它没有连接到"
515 "controller,DRBD就不会被任何方式中断。"
516
517 #. type: Plain text
518 #: administration-linstor.adoc:248
519 msgid ""
520 "If you are using the embedded default H2 database and the linstor-controller package is upgraded an automatic backup file of the database will be created in the default `/var/"
521 "lib/linstor` directory. This file is a good restore point if for any reason a linstor-controller database migration should fail, than it is recommended to report the error to "
522 "Linbit and restore the old database file and downgrade to your previous controller version."
523 msgstr ""
524 "如果您使用的是嵌入的H2数据库,并且升级了linstor-controller包,那么将在默认的 `/var/lib/linstor` 目录中创建数据库的自动备份文件。如果由于任何原因linstor-controller数据库迁移失"
525 "败,则此文件是一个很好的还原点,建议将错误报告给Linbit并还原旧的数据库文件并降级到以前的controller版本。"
526
527 #. type: Plain text
528 #: administration-linstor.adoc:251
529 msgid "If you use any external database or etcd, it is recommended to do a manually backup of your current database to have a restore point."
530 msgstr "如果使用任何外部数据库或etcd,建议手动备份当前数据库以获得还原点。"
531
532 #. type: Plain text
533 #: administration-linstor.adoc:256
534 msgid ""
535 "So first upgrade the `linstor-controller`, `linstor-client` package on you controller host and restart the `linstor-controller`, the controller should start and all of it's "
536 "client should show `OFFLINE(VERSION_MISMATCH)`. After that you can continue upgrading `linstor-satellite` on all satellite nodes and restart them, after a short reconnection "
537 "time they should all show `ONLINE` again and your upgrade is finished."
538 msgstr ""
539 "因此,首先升级controller主机上的 `linstor-controller` 和 `linstor-client` 包,然后重新启动 `linstor-controler`, controller应启动,其所有客户端应显示 `OFFLINE(VERSION_MISMATCH)"
540 "`。之后,您可以继续升级所有卫星节点上的`linstor-satellite`, 并重新启动它们,在短时间重新连接后,它们都应再次显示 `ONLINE`,并且您的升级已完成。"
541
542 #. type: Title ===
543 #: administration-linstor.adoc:259
544 #, no-wrap
545 msgid "Containers"
546 msgstr "容器"
547
548 #. type: Plain text
549 #: administration-linstor.adoc:263
550 msgid "LINSTOR is also available as containers. The base images are available in LINBIT's container registry, `drbd.io`."
551 msgstr "LINSTOR也可用容器运行。基础镜像可以在LINBIT的容器registry仓库 `drbd.io` 中找到。"
552
553 #. type: Plain text
554 #: administration-linstor.adoc:266
555 msgid "In order to access the images, you first have to login to the registry (reach out to [email protected] for credentials):"
556 msgstr "要访问这些镜像,首先必须登录registry(访问[email protected]获取凭据):"
557
558 #. type: delimited block -
559 #: administration-linstor.adoc:269
560 #, no-wrap
561 msgid "# docker login drbd.io\n"
562 msgstr "# docker login drbd.io\n"
563
564 #. type: Plain text
565 #: administration-linstor.adoc:272
566 msgid "The containers available in this repo are:"
567 msgstr "此repo中可用的容器包括:"
568
569 #. type: Plain text
570 #: administration-linstor.adoc:274
571 msgid "drbd.io/drbd9:rhel8"
572 msgstr "drbd.io/drbd9:rhel8"
573
574 #. type: Plain text
575 #: administration-linstor.adoc:275
576 msgid "drbd.io/drbd9:rhel7"
577 msgstr "drbd.io/drbd9:rhel7"
578
579 #. type: Plain text
580 #: administration-linstor.adoc:276
581 msgid "drbd.io/drbd9:bionic"
582 msgstr "drbd.io/drbd9:bionic"
583
584 #. type: Plain text
585 #: administration-linstor.adoc:277
586 msgid "drbd.io/linstor-csi"
587 msgstr "drbd.io/linstor-csi"
588
589 #. type: Plain text
590 #: administration-linstor.adoc:278
591 msgid "drbd.io/linstor-controller"
592 msgstr "drbd.io/linstor-controller"
593
594 #. type: Plain text
595 #: administration-linstor.adoc:279
596 msgid "drbd.io/linstor-satellite"
597 msgstr "drbd.io/linstor-satellite"
598
599 #. type: Plain text
600 #: administration-linstor.adoc:280
601 msgid "drbd.io/linstor-client"
602 msgstr "drbd.io/linstor-client"
603
604 #. type: Plain text
605 #: administration-linstor.adoc:283
606 msgid ""
607 "An up to date list of available images with versions can be retrieved by opening http://drbd.io in your browser. Make sure to access the host via \"http\", as the registry's "
608 "images themselves are served via \"https\"."
609 msgstr "通过在浏览器中打开http://drbd.io,可以可用image的最新列表。确保通过 \"http\"访问主机,因为registry的image本身通过 \"https\"提供服务。"
610
611 #. type: Plain text
612 #: administration-linstor.adoc:289
613 msgid ""
614 "To load the kernel module, needed only for LINSTOR satellites, you'll need to run a `drbd9` container in privileged mode. The kernel module containers either retrieve an "
615 "official LINBIT package from a customer repository, or they try to build the kernel modules from source. If you intend to build from source, you need to have the according "
616 "kernel headers (e.g., `kernel-devel`) installed on the host. There are 3 ways to execute such a module load container:"
617 msgstr ""
618 "要加载仅用于LINSTOR satellites 的内核模块,需要在特权模式下运行 `drbd9` 容器。内核模块容器要么从客户存储库中检索正式的LINBIT包,要么尝试从源代码构建内核模块。如果要从源代码构"
619 "建,则需要在主机上安装相应的内核头文件(例如, `kernel-devel`) 。执行这样的模块加载容器有三种方法:"
620
621 #. type: Plain text
622 #: administration-linstor.adoc:291
623 msgid "Specifying a LINBIT node hash and a distribution."
624 msgstr "指定LINBIT节点哈希和容器版本。"
625
626 #. type: Plain text
627 #: administration-linstor.adoc:292
628 msgid "Bind-mounting an existing repository configuration."
629 msgstr "绑定装入现有仓库配置。"
630
631 #. type: Plain text
632 #: administration-linstor.adoc:293
633 msgid "Not doing one of the above to trigger a build from source."
634 msgstr "不执行上述操作之一, 直接从源代码触发生成。"
635
636 #. type: Plain text
637 #: administration-linstor.adoc:295
638 msgid "Example using a hash and a distribution:"
639 msgstr "使用哈希和容器版本的示例:"
640
641 #. type: delimited block -
642 #: administration-linstor.adoc:300
643 #, no-wrap
644 msgid ""
645 "# docker run -it --rm --privileged -v /lib/modules:/lib/modules \\\n"
646 " -e LB_DIST=rhel7.7 -e LB_HASH=ThisIsMyNodeHash \\\n"
647 " drbd.io/drbd9:rhel7\n"
648 msgstr ""
649 "# docker run -it --rm --privileged -v /lib/modules:/lib/modules \\\n"
650 " -e LB_DIST=rhel7.7 -e LB_HASH=ThisIsMyNodeHash \\\n"
651 " drbd.io/drbd9:rhel7\n"
652
653 #. type: Plain text
654 #: administration-linstor.adoc:303
655 msgid "Example using an existing repo config."
656 msgstr "使用现有repo配置的示例。"
657
658 #. type: delimited block -
659 #: administration-linstor.adoc:308
660 #, no-wrap
661 msgid ""
662 "# docker run -it --rm --privileged -v /lib/modules:/lib/modules \\\n"
663 " -v /etc/yum.repos.d/linbit.repo:/etc/yum.repos.d/linbit.repo:ro \\\n"
664 " drbd.io/drbd9:rhel7\n"
665 msgstr ""
666 "# docker run -it --rm --privileged -v /lib/modules:/lib/modules \\\n"
667 " -v /etc/yum.repos.d/linbit.repo:/etc/yum.repos.d/linbit.repo:ro \\\n"
668 " drbd.io/drbd9:rhel7\n"
669
670 #. type: Plain text
671 #: administration-linstor.adoc:312
672 msgid ""
673 "In both cases (hash + distribution, as well as bind-mounting) the hash or config has to be from a node that has a special property set. Feel free to contact our support, and we "
674 "set this property."
675 msgstr "在这两种情况下(哈系+版本以及绑定挂载),哈系或配置必须来自具有特殊属性集的节点。请随时与我们的支持联系,我们将设置此属性。"
676
677 #. type: Plain text
678 #: administration-linstor.adoc:314
679 msgid "Example building from shipped source (RHEL based):"
680 msgstr "从已分发代码生成的示例(基于RHEL):"
681
682 #. type: delimited block -
683 #: administration-linstor.adoc:319
684 #, no-wrap
685 msgid ""
686 "# docker run -it --rm --privileged -v /lib/modules:/lib/modules \\\n"
687 " -v /usr/src:/usr/src:ro \\\n"
688 " drbd.io/drbd9:rhel7\n"
689 msgstr ""
690 "# docker run -it --rm --privileged -v /lib/modules:/lib/modules \\\n"
691 " -v /usr/src:/usr/src:ro \\\n"
692 " drbd.io/drbd9:rhel7\n"
693
694 #. type: Plain text
695 #: administration-linstor.adoc:322
696 msgid "Example building from shipped source (Debian based):"
697 msgstr "从已发代码构建的示例(基于Debian):"
698
699 #. type: delimited block -
700 #: administration-linstor.adoc:327
701 #, no-wrap
702 msgid ""
703 "# docker run -it --rm --privileged -v /lib/modules:/lib/modules \\\n"
704 " -v /usr/src:/usr/src:ro -v /usr/lib:/usr/lib:ro \\\n"
705 " drbd.io/drbd9:bionic\n"
706 msgstr ""
707 "# docker run -it --rm --privileged -v /lib/modules:/lib/modules \\\n"
708 " -v /usr/src:/usr/src:ro -v /usr/lib:/usr/lib:ro \\\n"
709 " drbd.io/drbd9:bionic\n"
710
711 #. type: Plain text
712 #: administration-linstor.adoc:331
713 msgid "Do *not* bind-mount `/usr/lib` on RHEL based systems! And do *not* forget to bind-mount it on Debian based ones."
714 msgstr "*不要* bind-mount `/usr/lib` 到基于RHEL的系统上!也不要把它bind-mount到基于Debian的系统上。"
715
716 #. type: Plain text
717 #: administration-linstor.adoc:338
718 msgid ""
719 "For now (i.e., pre DRBD 9 version \"9.0.17\"), you must use the containerized DRBD kernel module, as opposed to loading a kernel module onto the host system. If you intend to "
720 "use the containers you should not install the DRBD kernel module on your host systems. For DRBD version 9.0.17 or greater, you can install the kernel module as usual on the "
721 "host system, but you need to make sure to load the module with the `usermode_helper=disabled` parameter (e.g., `modprobe drbd usermode_helper=disabled`)."
722 msgstr ""
723 "到现在为止(即,DRBD 9之前的版本 \\9.0.17\"),您必须使用容器化DRBD内核模块,而不是将内核模块加载到主机系统上。如果要使用容器,则不应在主机系统上安装DRBD内核模块。对于DRBD版本"
724 "9.0.17或更高版本,可以像往常一样在主机系统上安装内核模块,但需要确保使用 `usermode_helper=disabled`参数(例如, `modprobe drbd usermode_helper=disabled` )加载模块。"
725
726 #. type: Plain text
727 #: administration-linstor.adoc:340
728 msgid "Then run the LINSTOR satellite container, also privileged, as a daemon:"
729 msgstr "然后以守护进程的身份运行LINSTOR satellite容器, 也需具有特权:"
730
731 #. type: delimited block -
732 #: administration-linstor.adoc:343
733 #, no-wrap
734 msgid "# docker run -d --name=linstor-satellite --net=host -v /dev:/dev --privileged drbd.io/linstor-satellite\n"
735 msgstr "# docker run -d --name=linstor-satellite --net=host -v /dev:/dev --privileged drbd.io/linstor-satellite\n"
736
737 #. type: Plain text
738 #: administration-linstor.adoc:347
739 msgid "`net=host` is required for the containerized `drbd-utils` to be able to communicate with the host-kernel via netlink."
740 msgstr "`net=host` 是容器化的 `drbd-utils` 通过netlink与主机内核通信所必需的。"
741
742 #. type: Plain text
743 #: administration-linstor.adoc:350
744 msgid "To run the LINSTOR controller container as a daemon, mapping ports `3370`, `3376` and `3377` on the host to the container:"
745 msgstr "要将LINSTOR控制器容器作为守护进程运行,请将主机上的端口 `3370` 、 `3376` 和 `3377` 映射到该容器:"
746
747 #. type: delimited block -
748 #: administration-linstor.adoc:353
749 #, no-wrap
750 msgid "# docker run -d --name=linstor-controller -p 3370:3370 -p 3376:3376 -p 3377:3377 drbd.io/linstor-controller\n"
751 msgstr "# docker run -d --name=linstor-controller -p 3370:3370 -p 3376:3376 -p 3377:3377 drbd.io/linstor-controller\n"
752
753 #. type: Plain text
754 #: administration-linstor.adoc:358
755 msgid ""
756 "To interact with the containerized LINSTOR cluster, you can either use a LINSTOR client installed on a system via packages, or via the containerized LINSTOR client. To use the "
757 "LINSTOR client container:"
758 msgstr "要与容器化LINSTOR集群交互,可以使用通过包安装在系统上的LINSTOR客户端,也可以通过容器化LINSTOR客户端。要使用LINSTOR客户端容器,请执行以下操作:"
759
760 #. type: delimited block -
761 #: administration-linstor.adoc:361
762 #, no-wrap
763 msgid "# docker run -it --rm -e LS_CONTROLLERS=<controller-host-IP-address> drbd.io/linstor-client node list\n"
764 msgstr "# docker run -it --rm -e LS_CONTROLLERS=<controller-host-IP-address> drbd.io/linstor-client node list\n"
765
766 #. type: Plain text
767 #: administration-linstor.adoc:366
768 msgid "From this point you would use the LINSTOR client to initialize your cluster and begin creating resources using the typical LINSTOR patterns."
769 msgstr "从这里开始,您可以使用LINSTOR客户端初始化集群,并开始使用典型的LINSTOR模式创建资源。"
770
771 #. type: Plain text
772 #: administration-linstor.adoc:368
773 msgid "To stop and remove a daemonized container and image:"
774 msgstr "要停止并删除守护的容器和映像,请执行以下操作:"
775
776 #. type: delimited block -
777 #: administration-linstor.adoc:372
778 #, no-wrap
779 msgid ""
780 "# docker stop linstor-controller\n"
781 "# docker rm linstor-controller\n"
782 msgstr ""
783 "# docker stop linstor-controller\n"
784 "# docker rm linstor-controller\n"
785
786 #. type: Title ===
787 #: administration-linstor.adoc:375
788 #, no-wrap
789 msgid "Initializing your cluster"
790 msgstr "初始化集群"
791
792 #. type: Plain text
793 #: administration-linstor.adoc:377
794 msgid "We assume that the following steps are accomplished on *all* cluster nodes:"
795 msgstr "我们假设在 *所有* 集群节点上已完成以下步骤:"
796
797 #. type: Plain text
798 #: administration-linstor.adoc:379
799 msgid "The DRBD9 kernel module is installed and loaded"
800 msgstr "DRBD9内核模块已安装并加载"
801
802 #. type: Plain text
803 #: administration-linstor.adoc:380
804 msgid "`drbd-utils` are installed"
805 msgstr "已安装 `drbd-utils`"
806
807 #. type: Plain text
808 #: administration-linstor.adoc:381
809 msgid "`LVM` tools are installed"
810 msgstr "`LVM` 工具已安装"
811
812 #. type: Plain text
813 #: administration-linstor.adoc:382
814 msgid "`linstor-controller` and/or `linstor-satellite` its dependencies are installed"
815 msgstr "`linstor-controller` 和/或 `linstor-satellite` 的依赖项已安装"
816
817 #. type: Plain text
818 #: administration-linstor.adoc:383
819 msgid "The `linstor-client` is installed on the `linstor-controller` node"
820 msgstr "`linstor-client` 已安装在 `linstor-controller` 节点上"
821
822 #. type: Plain text
823 #: administration-linstor.adoc:385
824 msgid "Start and enable the linstor-controller service on the host where it has been installed:"
825 msgstr "在已安装linstor-controller的主机上启动并启用该服务:"
826
827 #. type: delimited block -
828 #: administration-linstor.adoc:388
829 #, no-wrap
830 msgid "# systemctl enable --now linstor-controller\n"
831 msgstr "# systemctl enable --now linstor-controller\n"
832
833 #. type: Plain text
834 #: administration-linstor.adoc:392
835 msgid "If you are sure the linstor-controller service gets automatically enabled on installation you can use the following command as well:"
836 msgstr "如果您确定linstor控制器服务在安装时自动启用,则还可以使用以下命令:"
837
838 #. type: delimited block -
839 #: administration-linstor.adoc:395
840 #, no-wrap
841 msgid "# systemctl start linstor-controller\n"
842 msgstr "# systemctl start linstor-controller\n"
843
844 #. type: Title ===
845 #: administration-linstor.adoc:398
846 #, no-wrap
847 msgid "Using the LINSTOR client"
848 msgstr "使用LINSTOR客户端"
849
850 #. type: Plain text
851 #: administration-linstor.adoc:403
852 msgid ""
853 "Whenever you run the LINSTOR command line client, it needs to know where your linstor-controller runs. If you do not specify it, it will try to reach a locally running linstor-"
854 "controller listening on IP `127.0.0.1` port `3376`. Therefore we will use the `linstor-client` on the same host as the `linstor-controller`."
855 msgstr ""
856 "无论何时运行LINSTOR命令行客户端,它都需要知道listor-controller的运行位置。如果不指定它,它将尝试访问本地运行的linstor-controller,该控制器侦听IP `127.0.0.1` 端口是 `3376` 。这"
857 "样,我们可以在与 `linstor-controller` 相同的主机上使用 `linstor-client` 。"
858
859 #. type: Plain text
860 #: administration-linstor.adoc:406
861 msgid "The `linstor-satellite` requires ports 3366 and 3367. The `linstor-controller` requires ports 3376 and 3377. Make sure you have these ports allowed on your firewall."
862 msgstr "`linstor-satellite` 需要端口3366和3367。 `linstor-controller` 需要端口3376和3377。确保防火墙上允许这些端口。"
863
864 #. type: delimited block -
865 #: administration-linstor.adoc:409
866 #, no-wrap
867 msgid "# linstor node list\n"
868 msgstr "# linstor node list\n"
869
870 #. type: Plain text
871 #: administration-linstor.adoc:411
872 msgid "should give you an empty list and not an error message."
873 msgstr "应该输出一个空列表,而不是一条错误信息。"
874
875 #. type: Plain text
876 #: administration-linstor.adoc:416
877 msgid ""
878 "You can use the `linstor` command on any other machine, but then you need to tell the client how to find the linstor-controller. As shown, this can be specified as a command "
879 "line option, an environment variable, or in a global file:"
880 msgstr "您可以在任何其他机器上使用 `linstor` 命令,但随后您需要告诉客户端如何找到linstor-controller。如下所示,可以将其指定为命令行选项、环境变量或全局文件:"
881
882 #. type: delimited block -
883 #: administration-linstor.adoc:420
884 #, no-wrap
885 msgid ""
886 "# linstor --controllers=alice node list\n"
887 "# LS_CONTROLLERS=alice linstor node list\n"
888 msgstr ""
889 "# linstor --controllers=alice node list\n"
890 "# LS_CONTROLLERS=alice linstor node list\n"
891
892 #. type: Plain text
893 #: administration-linstor.adoc:424
894 msgid "Alternatively you can create the `/etc/linstor/linstor-client.conf` file and populate it like below."
895 msgstr "或者,您可以创建 `/etc/linstor/linstor-client.conf` 文件,并按如下方式填充它。"
896
897 #. type: delimited block -
898 #: administration-linstor.adoc:429
899 #, no-wrap
900 msgid ""
901 "[global]\n"
902 "controllers=alice\n"
903 msgstr ""
904 "[global]\n"
905 "controllers=alice\n"
906
907 #. type: Plain text
908 #: administration-linstor.adoc:434
909 msgid "If you have multiple linstor-controllers configured you can simply specify them all in a comma separated list. The linstor-client will simply try them in the order listed."
910 msgstr "如果配置了多个linstor控制器,只需在逗号分隔的列表中指定它们即可。linstor客户机会按照列出的顺序进行尝试。"
911
912 #. type: Plain text
913 #: administration-linstor.adoc:439
914 msgid ""
915 "The linstor-client commands can also be used in a much faster and convenient way by only writing the starting letters of the parameters e.g.: `linstor node list` -> `linstor n "
916 "l`"
917 msgstr "linstor-client命令也可以通过只写参数的起始字母来快速方便地使用,例如: `linstor node list` -> `linstor n l`"
918
919 #. type: Title ===
920 #: administration-linstor.adoc:441
921 #, no-wrap
922 msgid "Adding nodes to your cluster"
923 msgstr "向集群添加节点"
924
925 #. type: Plain text
926 #: administration-linstor.adoc:444
927 msgid "The next step is to add nodes to your LINSTOR cluster. You need to provide:"
928 msgstr "下一步是将节点添加到LINSTOR集群。您需要提供:"
929
930 #. type: Plain text
931 #: administration-linstor.adoc:446
932 msgid "A node name which *must* match the output of `uname -n`"
933 msgstr "一个节点名,*必须* 匹配 `uname -n` 的输出`"
934
935 #. type: Plain text
936 #: administration-linstor.adoc:447
937 msgid "The IP address of the node."
938 msgstr "节点的IP地址。"
939
940 #. type: delimited block -
941 #: administration-linstor.adoc:450
942 #, no-wrap
943 msgid "# linstor node create bravo 10.43.70.3\n"
944 msgstr "# linstor node create bravo 10.43.70.3\n"
945
946 #. type: Plain text
947 #: administration-linstor.adoc:455
948 msgid ""
949 "When you use `linstor node list` you will see that the new node is marked as offline. Now start and enable the linstor-satellite on that node so that the service comes up on "
950 "reboot as well:"
951 msgstr "使用 `linstor node list`时,将看到新节点标记为脱机。现在启动并启用该节点上的 linstor-satellite,以便服务在重新启动时也启动:"
952
953 #. type: delimited block -
954 #: administration-linstor.adoc:457
955 #, no-wrap
956 msgid "# systemctl enable --now linstor-satellite\n"
957 msgstr "# systemctl enable --now linstor-satellite\n"
958
959 #. type: Plain text
960 #: administration-linstor.adoc:462
961 msgid "You can also use `systemctl start linstor-satellite` if you are sure that the service is already enabled as default and comes up on reboot."
962 msgstr "如果您确定该服务已默认启用并在重新启动时启动,则还可以使用 `systemctl start linstor-satellite` 。"
963
964 #. type: Plain text
965 #: administration-linstor.adoc:466
966 msgid ""
967 "About 10 seconds later you will see the status in `linstor node list` becoming online. Of course the satellite process may be started before the controller knows about the "
968 "existence of the satellite node."
969 msgstr "大约10秒后,您将看到 `linstor node list` 中的状态变为联机。当然,在controller知道satellite节点的存在之前,satellite进程已经启动完毕。"
970
971 #. type: Plain text
972 #: administration-linstor.adoc:470
973 msgid "In case the node which hosts your controller should also contribute storage to the LINSTOR cluster, you have to add it as a node and start the linstor-satellite as well."
974 msgstr "如果承载controller的节点也应该为LINSTOR集群提供存储空间,则必须将其添加为节点并启动linstor-satellite。"
975
976 #. type: Title ===
977 #: administration-linstor.adoc:472
978 #, no-wrap
979 msgid "Storage pools"
980 msgstr "存储池"
981
982 #. type: Plain text
983 #: administration-linstor.adoc:479
984 msgid ""
985 "<<StoragePool,StoragePools>> identify storage in the context of LINSTOR. To group storage pools from multiple nodes, simply use the same name on each node. For example, one "
986 "valid approach is to give all SSDs one name and all HDDs another."
987 msgstr ""
988 "<<StoragePool,StoragePools>>在LINSTOR上下文中用于标识存储。要对多个节点的存储池进行分组,只需在每个节点上使用相同的名称。例如,一种有效的方法是给所有的ssd取一个名字,给所有的hdd"
989 "取另一个名字。"
990
991 #. type: Plain text
992 #: administration-linstor.adoc:485
993 msgid ""
994 "On each host contributing storage, you need to create either an LVM VG or a ZFS zPool. The VGs and zPools identified with one LINSTOR storage pool name may have different VG or "
995 "zPool names on the hosts, but do yourself a favor and use the same VG or zPool name on all nodes."
996 msgstr ""
997 "在每个提供存储的主机上,您需要创建LVM VG或ZFS zPool。使用一个LINSTOR存储池名称标识的VG和zPool在主机上可能有不同的VG或zPool名称,但请您自己考虑,是否在所有节点上使用相同的VG或"
998 "zPool名称。"
999
1000 #. type: delimited block -
1001 #: administration-linstor.adoc:488
1002 #, no-wrap
1003 msgid "# vgcreate vg_ssd /dev/nvme0n1 /dev/nvme1n1 [...]\n"
1004 msgstr "# vgcreate vg_ssd /dev/nvme0n1 /dev/nvme1n1 [...]\n"
1005
1006 #. type: Plain text
1007 #: administration-linstor.adoc:491
1008 msgid "These then need to be registered with LINSTOR:"
1009 msgstr "然后需要向LINSTOR注册:"
1010
1011 #. type: delimited block -
1012 #: administration-linstor.adoc:495
1013 #, no-wrap
1014 msgid ""
1015 "# linstor storage-pool create lvm alpha pool_ssd vg_ssd\n"
1016 "# linstor storage-pool create lvm bravo pool_ssd vg_ssd\n"
1017 msgstr ""
1018 "# linstor storage-pool create lvm alpha pool_ssd vg_ssd\n"
1019 "# linstor storage-pool create lvm bravo pool_ssd vg_ssd\n"
1020
1021 #. type: Plain text
1022 #: administration-linstor.adoc:503
1023 msgid ""
1024 "The storage pool name and common metadata is referred to as a _storage pool definition_. The listed commands create a storage pool definition implicitly. You can see that by "
1025 "using `linstor storage-pool-definition list`. Creating storage pool definitions explicitly is possible but not necessary."
1026 msgstr ""
1027 "存储池名称和公共元数据称为 _存储池定义_ 。上面列出的命令隐式创建了存储池定义。使用 `linstor storage-pool-definition list` 可以看到这一点。也可以显式创建存储池定义,但不是必需"
1028 "的。"
1029
1030 #. type: Plain text
1031 #: administration-linstor.adoc:505
1032 msgid "To list your storage-pools you can use:"
1033 msgstr "要列出您可以使用的存储池,请执行以下操作:"
1034
1035 #. type: delimited block -
1036 #: administration-linstor.adoc:508
1037 #, no-wrap
1038 msgid "# linstor storage-pool list\n"
1039 msgstr "# linstor storage-pool list\n"
1040
1041 #. type: Plain text
1042 #: administration-linstor.adoc:511 administration-linstor.adoc:526
1043 msgid "or using the short version"
1044 msgstr "或者使用短版本"
1045
1046 #. type: delimited block -
1047 #: administration-linstor.adoc:514
1048 #, no-wrap
1049 msgid "# linstor sp l\n"
1050 msgstr "# linstor sp l\n"
1051
1052 #. type: Plain text
1053 #: administration-linstor.adoc:520
1054 msgid ""
1055 "In case anything goes wrong with the storage pool's VG/zPool, e.g. the VG having been renamed or somehow became invalid you can delete the storage pool in LINSTOR with the "
1056 "following command, given that only resources with all their volumes in the so-called 'lost' storage pool are attached. This feature is available since LINSTOR v0.9.13."
1057 msgstr ""
1058 "如果存储池的VG/zPool出现任何问题,例如VG已被重命名或以某种方式变得无效,您可以使用以下命令删除LINSTOR中的存储池,前提是只有资源及其所有卷都位于所谓的 `lost` 存储池中。此功能自"
1059 "LINSTOR v0.9.13起可用。"
1060
1061 #. type: delimited block -
1062 #: administration-linstor.adoc:523
1063 #, no-wrap
1064 msgid "# linstor storage-pool lost alpha pool_ssd\n"
1065 msgstr "# linstor storage-pool lost alpha pool_ssd\n"
1066
1067 #. type: delimited block -
1068 #: administration-linstor.adoc:529
1069 #, no-wrap
1070 msgid "# linstor sp lo alpha pool_ssd\n"
1071 msgstr "# linstor sp lo alpha pool_ssd\n"
1072
1073 #. type: Plain text
1074 #: administration-linstor.adoc:536
1075 msgid ""
1076 "Should the deletion of the storage pool be prevented due to attached resources or snapshots with some of its volumes in another still functional storage pool, hints will be "
1077 "given in the 'status' column of the corresponding list-command (e.g. `linstor resource list`). After deleting the LINSTOR-objects in the lost storage pool manually, the lost-"
1078 "command can be executed again to ensure a complete deletion of the storage pool and its remaining objects."
1079 msgstr ""
1080 "如果由于附加的资源或快照(其中一些卷位于另一个仍在运行的存储池中)而阻止删除存储池,则会在相应list命令的 `status` 列中给出提示(例如 `linstor resource list` ) 手动删除丢失的存"
1081 "储池中的LINSTOR对象后,可以再次执行lost命令,以确保完全删除了存储池及其剩余对象。"
1082
1083 #. type: Title ====
1084 #: administration-linstor.adoc:538
1085 #, no-wrap
1086 msgid "A storage pool per backend device"
1087 msgstr "每个后端设备的存储池"
1088
1089 #. type: Plain text
1090 #: administration-linstor.adoc:544
1091 msgid ""
1092 "In clusters where you have only one kind of storage and the capability to hot-repair storage devices, you may choose a model where you create one storage pool per physical "
1093 "backing device. The advantage of this model is to confine failure domains to a single storage device."
1094 msgstr "在仅只有一种存储和热修复存储设备功能的集群中,可以选择一种模型,在该模型中为每个物理备份设备创建一个存储池。此模型的优点是将故障域限制在单个存储设备上。"
1095
1096 #. type: Title ===
1097 #: administration-linstor.adoc:546
1098 #, no-wrap
1099 msgid "Resource groups"
1100 msgstr "资源组"
1101
1102 #. type: Plain text
1103 #: administration-linstor.adoc:553
1104 msgid ""
1105 "A resource group is a parent object of a resource definition where all property changes made on a resource group will be inherited by it's resource definition children. The "
1106 "resource group also stores settings for automatic placement rules and can spawn a resource definition depending on the stored rules."
1107 msgstr "资源组是资源定义的父对象,其中对资源组所做的所有属性更改都将由其资源定义的子级继承。资源组还存储自动放置规则的设置,并可以根据存储的规则生成资源定义。"
1108
1109 #. type: Plain text
1110 #: administration-linstor.adoc:558
1111 msgid ""
1112 "In simpler terms, resource groups are like templates that define characteristics of resources created from them. Changes to these pseudo templates will be applied to all "
1113 "resources that were created from the resource group, retroactively."
1114 msgstr "简单地说,资源组就像模板,定义从它们创建的资源的特性。对这些伪模板的更改将应用于从资源组中创建的所有资源,并具有追溯性。"
1115
1116 #. type: Plain text
1117 #: administration-linstor.adoc:564
1118 msgid ""
1119 "Using resource groups to define how you'd like your resources provisioned should be considered the de facto method for deploying volumes provisioned by LINSTOR. Chapters that "
1120 "follow which describe creating each _resource_ from a _resource-definition_ and _volume-definition_ should only be used in special scenarios."
1121 msgstr "使用资源组定义资源配置方式应被视为部署由LINSTOR配置的卷的典型方法。后面描述从 _资源定义_ 和 _卷定义_ 创建每个 _资源_ 的章节应仅在特殊情况下使用。"
1122
1123 #. type: Plain text
1124 #: administration-linstor.adoc:569
1125 msgid ""
1126 "Even if you choose not to create and use _resource-groups_ in your LINSTOR cluster, all resources created from _resource-definitions_ and _volume-definitions_ will exist in the "
1127 "'DfltRscGrp' _resource-group_."
1128 msgstr "即使您选择不在LINSTOR集群中创建和使用 _资源组_ ,从 _资源定义_ 和 _卷定义_ 创建的所有资源都将存在于 `DfltRscGrp` _资源组_ 中。"
1129
1130 #. type: Plain text
1131 #: administration-linstor.adoc:572
1132 msgid "A simple pattern for deploying resources using resource groups would look like this:"
1133 msgstr "使用资源组部署资源的简单模式如下:"
1134
1135 #. type: delimited block -
1136 #: administration-linstor.adoc:577
1137 #, no-wrap
1138 msgid ""
1139 "# linstor resource-group create my_ssd_group --storage-pool pool_ssd --place-count 2\n"
1140 "# linstor volume-group create my_ssd_group\n"
1141 "# linstor resource-group spawn-resources my_ssd_group my_ssd_res 20G\n"
1142 msgstr ""
1143 "# linstor resource-group create my_ssd_group --storage-pool pool_ssd --place-count 2\n"
1144 "# linstor volume-group create my_ssd_group\n"
1145 "# linstor resource-group spawn-resources my_ssd_group my_ssd_res 20G\n"
1146
1147 #. type: Plain text
1148 #: administration-linstor.adoc:582
1149 msgid ""
1150 "The commands above would result in a resource named 'my_ssd_res' with a 20GB volume replicated twice being automatically provisioned from nodes who participate in the storage "
1151 "pool named 'pool_ssd'."
1152 msgstr "上述命令创建出一个名为 `my_ssd_res` 的资源,其中一个定义了双副本数的20GB卷将从名为 `pool_ssd` 的存储池的节点自动配置。"
1153
1154 #. type: Plain text
1155 #: administration-linstor.adoc:589
1156 msgid ""
1157 "A more useful pattern could be to create a resource group with settings you've determined are optimal for your use case. Perhaps you have to run nightly online verifications of "
1158 "your volumes' consistency, in that case, you could create a resource group with the 'verify-alg' of your choice already set so that resources spawned from the group are pre-"
1159 "configured with 'verify-alg' set:"
1160 msgstr ""
1161 "一个更有用的模式可能是创建一个资源组,其中的设置是您确定的最适合您的用例的。也许您必须对卷的一致性进行夜间联机验证,在这种情况下,您可以创建一个资源组,其中已经设置了您选择的 "
1162 "`verify-alg` ,以便从该组生成的资源预先配置为 `verify-alg` 集:"
1163
1164 #. type: delimited block -
1165 #: administration-linstor.adoc:597
1166 #, no-wrap
1167 msgid ""
1168 "# linstor resource-group create my_verify_group --storage-pool pool_ssd --place-count 2\n"
1169 "# linstor resource-group drbd-options --verify-alg crc32c my_verify_group\n"
1170 "# linstor volume-group create my_verify_group\n"
1171 "# for i in {00..19}; do\n"
1172 " linstor resource-group spawn-resources my_verify_group res$i 10G\n"
1173 " done\n"
1174 msgstr ""
1175 "# linstor resource-group create my_verify_group --storage-pool pool_ssd --place-count 2\n"
1176 "# linstor resource-group drbd-options --verify-alg crc32c my_verify_group\n"
1177 "# linstor volume-group create my_verify_group\n"
1178 "# for i in {00..19}; do\n"
1179 " linstor resource-group spawn-resources my_verify_group res$i 10G\n"
1180 " done\n"
1181
1182 #. type: Plain text
1183 #: administration-linstor.adoc:601
1184 msgid "The commands above result in twenty 10GiB resources being created each with the 'crc32c' 'verify-alg' pre-configured."
1185 msgstr "上述命令创建出20个10GiB资源,每个资源都预先配置了 `crc32c` 和 `verify alg`。"
1186
1187 #. type: Plain text
1188 #: administration-linstor.adoc:608
1189 msgid ""
1190 "You can tune the settings of individual resources or volumes spawned from resource groups by setting options on the respective _resource-definition_ or _volume-definition_. For "
1191 "example, if 'res11' from the example above is used by a very active database receiving lots of small random writes, you might want to increase the 'al-extents' for that "
1192 "specific resource:"
1193 msgstr ""
1194 "您可以通过在相应的 _资源定义_ 或 _卷定义_ 上设置选项来优化从资源组派生的单个资源或卷的设置。例如,如果上面示例中的 `res11` 被一个接收大量小的随机写入的、非常活跃的数据库使用,则"
1195 "可能需要增加该特定资源的 `al-extents` :"
1196
1197 #. type: delimited block -
1198 #: administration-linstor.adoc:611
1199 #, no-wrap
1200 msgid "# linstor resource-definition drbd-options --al-extents 6007 res11\n"
1201 msgstr "# linstor resource-definition drbd-options --al-extents 6007 res11\n"
1202
1203 #. type: Plain text
1204 #: administration-linstor.adoc:620
1205 msgid ""
1206 "If you configure a setting in a _resource-definition_ that is already configured on the _resource-group_ it was spawned from, the value set in the _resource-definition_ will "
1207 "override the value set on the parent _resource-group_. For example, if the same 'res11' was required to use the slower but more secure 'sha256' hash algorithm in it's "
1208 "verifications, setting the 'verify-alg' on the _resource-definition_ for 'res11' would override the value set on the _resource-group_:"
1209 msgstr ""
1210 "如果在 _资源定义_ 中配置的设置已在其派生的 _资源组_ 上配置,则 _资源定义_ 中设置的值将覆盖父 _资源组_ 上设置的值。例如,如果要求相同的 `res11` 在其验证中使用较慢但更安全的 "
1211 "`sha256` 哈希算法,则在 `res11` 的 _资源定义_ 上设置的 `verify-alg` 值将覆盖其在 _资源组_ 中设置的值:"
1212
1213 #. type: delimited block -
1214 #: administration-linstor.adoc:623
1215 #, no-wrap
1216 msgid "# linstor resource-definition drbd-options --verify-alg sha256 res11\n"
1217 msgstr "# linstor resource-definition drbd-options --verify-alg sha256 res11\n"
1218
1219 #. type: Plain text
1220 #: administration-linstor.adoc:630
1221 msgid ""
1222 "A rule of thumb for the hierarchy in which settings are inherited is the value \"closer\" to the resource or volume wins: _volume-definition_ settings take precedence over "
1223 "_volume-group_ settings, and _resource-definition_ settings take precedence over _resource-group_ settings."
1224 msgstr "继承设置的层次结构的一个经验法则是 \"更接近\" 资源或卷的值: _卷定义_ 设置优先于 _卷组_ 设置, _资源定义_ 设置优先于 _资源组_ 设置。"
1225
1226 #. type: Title ===
1227 #: administration-linstor.adoc:633
1228 #, no-wrap
1229 msgid "Cluster configuration"
1230 msgstr "集群配置"
1231
1232 #. type: Title ====
1233 #: administration-linstor.adoc:636
1234 #, no-wrap
1235 msgid "Available storage plugins"
1236 msgstr "可用的存储插件"
1237
1238 #. type: Plain text
1239 #: administration-linstor.adoc:639
1240 msgid "indexterm:[linstor, storage plugins]"
1241 msgstr "indexterm:[linstor, storage plugins]"
1242
1243 #. type: Plain text
1244 #: administration-linstor.adoc:641
1245 msgid "LINSTOR has the following supported storage plugins as of writing:"
1246 msgstr "LINSTOR支持如下的存储插件:"
1247
1248 #. type: Plain text
1249 #: administration-linstor.adoc:643
1250 msgid "Thick LVM"
1251 msgstr "Thick LVM"
1252
1253 #. type: Plain text
1254 #: administration-linstor.adoc:645
1255 msgid "Thin LVM with a single thin pool"
1256 msgstr "Thin LVM with a single thin pool"
1257
1258 #. type: Plain text
1259 #: administration-linstor.adoc:647
1260 msgid "Thick ZFS"
1261 msgstr "Thick ZFS"
1262
1263 #. type: Plain text
1264 #: administration-linstor.adoc:649
1265 msgid "Thin ZFS"
1266 msgstr "Thin ZFS"
1267
1268 #. type: Title ===
1269 #: administration-linstor.adoc:651
1270 #, no-wrap
1271 msgid "Creating and deploying resources/volumes"
1272 msgstr "创建和部署资源/卷"
1273
1274 #. type: Plain text
1275 #: administration-linstor.adoc:654
1276 msgid "In the following scenario we assume that the goal is to create a resource 'backups' with a size of '500 GB' that is replicated among three cluster nodes."
1277 msgstr "在下面的场景中,我们假设目标是创建一个大小为 `500 GB` 的资源 `备份`,该资源在三个集群节点之间复制。"
1278
1279 #. type: Plain text
1280 #: administration-linstor.adoc:656
1281 msgid "First, we create a new resource definition:"
1282 msgstr "首先,我们创建一个新的资源定义:"
1283
1284 #. type: delimited block -
1285 #: administration-linstor.adoc:659
1286 #, no-wrap
1287 msgid "# linstor resource-definition create backups\n"
1288 msgstr "# linstor resource-definition create backups\n"
1289
1290 #. type: Plain text
1291 #: administration-linstor.adoc:662
1292 msgid "Second, we create a new volume definition within that resource definition:"
1293 msgstr "其次,我们在该资源定义中创建一个新的卷定义:"
1294
1295 #. type: delimited block -
1296 #: administration-linstor.adoc:665
1297 #, no-wrap
1298 msgid "# linstor volume-definition create backups 500G\n"
1299 msgstr "# linstor volume-definition create backups 500G\n"
1300
1301 #. type: Plain text
1302 #: administration-linstor.adoc:668
1303 msgid "If you want to change the size of the volume-definition you can simply do that by:"
1304 msgstr "如果要更改卷定义的大小,只需执行以下操作:"
1305
1306 #. type: delimited block -
1307 #: administration-linstor.adoc:671
1308 #, no-wrap
1309 msgid "# linstor volume-definition set-size backups 0 100G\n"
1310 msgstr "# linstor volume-definition set-size backups 0 100G\n"
1311
1312 #. type: Plain text
1313 #: administration-linstor.adoc:676
1314 msgid ""
1315 "The parameter `0` is the number of the volume in the resource `backups`. You have to provide this parameter , because resources can have multiple volumes and they are "
1316 "identified by a so called volume-number. This number can be found by listing the volume-definitions."
1317 msgstr "参数 `0` 是资源 `backups` 中的卷数。必须提供此参数,因为资源可以有多个卷,并且它们由所谓的卷号标识。这个数字可以通过列出卷定义来找到。"
1318
1319 #. type: Plain text
1320 #: administration-linstor.adoc:679
1321 msgid "The size of a volume-definition can only be decreased if it has no resource. Despite of that the size can be increased even with an deployed resource."
1322 msgstr "只有在没有资源的情况下,才能减小卷定义的大小。尽管如此,即使部署了资源,也可以增加大小。"
1323
1324 #. type: Plain text
1325 #: administration-linstor.adoc:683
1326 msgid ""
1327 "So far we have only created objects in LINSTOR's database, not a single LV was created on the storage nodes. Now you have the choice of delegating the task of placement to "
1328 "LINSTOR or doing it yourself."
1329 msgstr "到目前为止,我们只在LINSTOR的数据库中创建了对象,没有在存储节点上创建一个LV。现在你可以选择将安置任务派发给LINSTOR,或者自己做。"
1330
1331 #. type: Title ====
1332 #: administration-linstor.adoc:685
1333 #, no-wrap
1334 msgid "Manual placement"
1335 msgstr "手动放置"
1336
1337 #. type: Plain text
1338 #: administration-linstor.adoc:689
1339 msgid "With the `resource create` command you may assign a resource definition to named nodes explicitly."
1340 msgstr "使用 `resource create` 命令,可以将资源定义显式分配给命名节点。"
1341
1342 #. type: delimited block -
1343 #: administration-linstor.adoc:694
1344 #, no-wrap
1345 msgid ""
1346 "# linstor resource create alpha backups --storage-pool pool_hdd\n"
1347 "# linstor resource create bravo backups --storage-pool pool_hdd\n"
1348 "# linstor resource create charlie backups --storage-pool pool_hdd\n"
1349 msgstr ""
1350 "# linstor resource create alpha backups --storage-pool pool_hdd\n"
1351 "# linstor resource create bravo backups --storage-pool pool_hdd\n"
1352 "# linstor resource create charlie backups --storage-pool pool_hdd\n"
1353
1354 #. type: Title ====
1355 #: administration-linstor.adoc:697
1356 #, no-wrap
1357 msgid "Autoplace"
1358 msgstr "自动放置"
1359
1360 #. type: Plain text
1361 #: administration-linstor.adoc:701
1362 msgid "The value after autoplace tells LINSTOR how many replicas you want to have. The storage-pool option should be obvious."
1363 msgstr "autoplace之后的值告诉LINSTOR您想要多少个副本。storage-pool 选项应该很明显。"
1364
1365 #. type: delimited block -
1366 #: administration-linstor.adoc:703
1367 #, no-wrap
1368 msgid "# linstor resource create backups --auto-place 3 --storage-pool pool_hdd\n"
1369 msgstr "# linstor resource create backups --auto-place 3 --storage-pool pool_hdd\n"
1370
1371 #. type: Plain text
1372 #: administration-linstor.adoc:706
1373 msgid "Maybe not so obvious is that you may omit the `--storage-pool` option, then LINSTOR may select a storage pool on its own. The selection follows these rules:"
1374 msgstr "可能不太明显的是,您可以省略 `--storage-pool` 选项,然后LINSTOR可以自己选择一个存储池。选择遵循以下规则:"
1375
1376 #. type: Plain text
1377 #: administration-linstor.adoc:708
1378 msgid "Ignore all nodes and storage pools the current user has no access to"
1379 msgstr "忽略当前用户无权访问的所有节点和存储池"
1380
1381 #. type: Plain text
1382 #: administration-linstor.adoc:709
1383 msgid "Ignore all diskless storage pools"
1384 msgstr "忽略所有无磁盘存储池"
1385
1386 #. type: Plain text
1387 #: administration-linstor.adoc:710
1388 msgid "Ignore all storage pools not having enough free space"
1389 msgstr "忽略没有足够可用空间的所有存储池"
1390
1391 #. type: Plain text
1392 #: administration-linstor.adoc:713
1393 msgid "From the remaining storage pools, LINSTOR currently chooses the one with the most available free space."
1394 msgstr "从剩余的存储池中,LINSTOR会选择可用空间最多的存储池。"
1395
1396 #. type: Plain text
1397 #: administration-linstor.adoc:717
1398 msgid ""
1399 "If everything went right the DRBD-resource has now been created by LINSTOR. This can be checked by looking for the DRBD block device with the `lsblk` command which should look "
1400 "like `drbd0000` or similar."
1401 msgstr "如果一切顺利,DRBD资源现在已经由LINSTOR创建。这时可以通过使用 `lsblk` 命令查找DRBD块设备来检查,设备名应该类似于 `drbd0000` 。"
1402
1403 #. type: Plain text
1404 #: administration-linstor.adoc:721
1405 msgid "Now we should be able to mount the block device of our resource and start using LINSTOR."
1406 msgstr "现在我们应该可以加载我们资源的块设备并开始使用LINSTOR。"
1407
1408 #. type: Title ==
1409 #: administration-linstor.adoc:723
1410 #, no-wrap
1411 msgid "Further LINSTOR tasks"
1412 msgstr "高阶LINSTOR任务"
1413
1414 #. type: Title ===
1415 #: administration-linstor.adoc:726
1416 #, no-wrap
1417 msgid "DRBD clients"
1418 msgstr "DRBD客户端"
1419
1420 #. type: Plain text
1421 #: administration-linstor.adoc:733
1422 msgid ""
1423 "By using the `--drbd-diskless` option instead of `--storage-pool` you can have a permanently diskless DRBD device on a node. This means that the resource will appear as block "
1424 "device and can be mounted to the filesystem without an existing storage-device. The data of the resource is accessed over the network on another nodes with the same resource."
1425 msgstr ""
1426 "通过使用 `--drbd-diskless` 选项而不是 `--storage-pool` ,可以在节点上拥有永久无盘drbd设备。这意味着资源将显示为块设备,并且可以在没有现有存储设备的情况下装载到文件系统。资源的数"
1427 "据通过网络在具有相同资源的其他节点上访问。"
1428
1429 #. type: delimited block -
1430 #: administration-linstor.adoc:736
1431 #, no-wrap
1432 msgid "# linstor resource create delta backups --drbd-diskless\n"
1433 msgstr "# linstor resource create delta backups --drbd-diskless\n"
1434
1435 #. type: Plain text
1436 #: administration-linstor.adoc:740
1437 msgid "The option `--diskless` was deprecated. Please use `--drbd-diskless` or `--nvme-initiator` instead."
1438 msgstr "不推荐使用选项 `--diskless`, 因为已过时。请改用 `--drbd-diskless` 或 `--nvme-initiator` 。"
1439
1440 #. type: Title ===
1441 #: administration-linstor.adoc:742
1442 #, no-wrap
1443 msgid "LINSTOR - DRBD consistency group/multiple volumes"
1444 msgstr "LINSTOR - DRBD一致性组/多个卷"
1445
1446 #. type: Plain text
1447 #: administration-linstor.adoc:747
1448 msgid ""
1449 "The so called consistency group is a feature from DRBD. It is mentioned in this user-guide, due to the fact that one of LINSTOR's main functions is to manage storage-clusters "
1450 "with DRBD. Multiple volumes in one resource are a consistency group."
1451 msgstr "所谓的一致性组是DRBD的一个特性。由于LINSTOR的主要功能之一是使用DRBD管理存储集群,因此本用户指南中提到了这一点。 单个资源中的多个卷是一个一致性组。"
1452
1453 #. type: Plain text
1454 #: administration-linstor.adoc:750
1455 msgid "This means that changes on different volumes from one resource are getting replicated in the same chronological order on the other Satellites."
1456 msgstr "这意味着一个资源的不同卷上的更改在其他Satellites上以相同的时间顺序复制。"
1457
1458 #. type: Plain text
1459 #: administration-linstor.adoc:753
1460 msgid "Therefore you don't have to worry about the timing if you have interdependent data on different volumes in a resource."
1461 msgstr "因此,如果资源中的不同卷上有相互依赖的数据,也不必担心时间问题。"
1462
1463 #. type: Plain text
1464 #: administration-linstor.adoc:755
1465 msgid "To deploy more than one volume in a LINSTOR-resource you have to create two volume-definitions with the same name."
1466 msgstr "要在LINSTOR资源中部署多个卷,必须创建两个同名的卷定义。"
1467
1468 #. type: delimited block -
1469 #: administration-linstor.adoc:759
1470 #, no-wrap
1471 msgid ""
1472 "# linstor volume-definition create backups 500G\n"
1473 "# linstor volume-definition create backups 100G\n"
1474 msgstr ""
1475 "# linstor volume-definition create backups 500G\n"
1476 "# linstor volume-definition create backups 100G\n"
1477
1478 #. type: Title ===
1479 #: administration-linstor.adoc:763
1480 #, no-wrap
1481 msgid "Volumes of one resource to different Storage-Pools"
1482 msgstr "一个资源到不同存储池的卷"
1483
1484 #. type: Plain text
1485 #: administration-linstor.adoc:766
1486 msgid "This can be achieved by setting the `StorPoolName` property to the volume definitions before the resource is deployed to the nodes:"
1487 msgstr "这可以通过在将资源部署到节点之前将 `StorPoolName` 属性设置为卷定义来实现:"
1488
1489 #. type: delimited block -
1490 #: administration-linstor.adoc:777
1491 #, no-wrap
1492 msgid ""
1493 "# linstor resource-definition create backups\n"
1494 "# linstor volume-definition create backups 500G\n"
1495 "# linstor volume-definition create backups 100G\n"
1496 "# linstor volume-definition set-property backups 0 StorPoolName pool_hdd\n"
1497 "# linstor volume-definition set-property backups 1 StorPoolName pool_ssd\n"
1498 "# linstor resource create alpha backups\n"
1499 "# linstor resource create bravo backups\n"
1500 "# linstor resource create charlie backups\n"
1501 msgstr ""
1502 "# linstor resource-definition create backups\n"
1503 "# linstor volume-definition create backups 500G\n"
1504 "# linstor volume-definition create backups 100G\n"
1505 "# linstor volume-definition set-property backups 0 StorPoolName pool_hdd\n"
1506 "# linstor volume-definition set-property backups 1 StorPoolName pool_ssd\n"
1507 "# linstor resource create alpha backups\n"
1508 "# linstor resource create bravo backups\n"
1509 "# linstor resource create charlie backups\n"
1510
1511 #. type: Plain text
1512 #: administration-linstor.adoc:782
1513 msgid ""
1514 "Since the `volume-definition create` command is used without the `--vlmnr` option LINSTOR assigned the volume numbers starting at 0. In the following two lines the 0 and 1 "
1515 "refer to these automatically assigned volume numbers."
1516 msgstr "由于使用 `volume-definition create` 命令时没有使用 `--vlmnr` 选项,因此LINSTOR将从0开始分配卷号。在以下两行中,0和1表示这些自动分配的卷号。"
1517
1518 #. type: Plain text
1519 #: administration-linstor.adoc:787
1520 msgid ""
1521 "Here the 'resource create' commands do not need a `--storage-pool` option. In this case LINSTOR uses a 'fallback' storage pool. Finding that storage pool, LINSTOR queries the "
1522 "properties of the following objects in the following order:"
1523 msgstr "这里的 `resource create` 命令不需要 `--storage-pool` 选项。在这种情况下,LINSTOR使用 `fallback` 存储池。找到该存储池后,LINSTOR按以下顺序查询以下对象的属性:"
1524
1525 #. type: Plain text
1526 #: administration-linstor.adoc:789
1527 msgid "Volume definition"
1528 msgstr "卷定义"
1529
1530 #. type: Plain text
1531 #: administration-linstor.adoc:791
1532 msgid "Resource definition"
1533 msgstr "资源定义"
1534
1535 #. type: Plain text
1536 #: administration-linstor.adoc:795
1537 msgid "If none of those objects contain a `StorPoolName` property, the controller falls back to a hard-coded 'DfltStorPool' string as a storage pool."
1538 msgstr "如果这些对象都不包含 `StorPoolName` 属性,则controller将返回硬编码的 `DfltStorPool` 字符串作为存储池。"
1539
1540 #. type: Plain text
1541 #: administration-linstor.adoc:799
1542 msgid ""
1543 "This also means that if you forgot to define a storage pool prior deploying a resource, you will get an error message that LINSTOR could not find the storage pool named "
1544 "'DfltStorPool'."
1545 msgstr "这还意味着,如果在部署资源之前忘记定义存储池,则会收到一条错误消息,即LINSTOR找不到名为 `DfltStorPool` 的存储池。"
1546
1547 #. type: Title ===
1548 #: administration-linstor.adoc:802
1549 #, no-wrap
1550 msgid "LINSTOR without DRBD"
1551 msgstr "无DRBD的LINSTOR"
1552
1553 #. type: Plain text
1554 #: administration-linstor.adoc:807
1555 msgid ""
1556 "LINSTOR can be used without DRBD as well. Without DRBD, LINSTOR is able to provision volumes from LVM and ZFS backed storage pools, and create those volumes on individual nodes "
1557 "in your LINSTOR cluster."
1558 msgstr "LINSTOR也可以在没有DRBD的情况下使用。没有DRBD,LINSTOR能够从LVM和ZFS支持的存储池中配置卷,并在LINSTOR集群中的各个节点上创建这些卷。"
1559
1560 #. type: Plain text
1561 #: administration-linstor.adoc:811
1562 msgid ""
1563 "Currently LINSTOR supports the creation of LVM and ZFS volumes with the option of layering some combinations of LUKS, DRBD, and/or NVMe-oF/NVMe-TCP on top of those volumes."
1564 msgstr "目前,LINSTOR支持创建LVM和ZFS卷,可以选择在这些卷上分层luk、DRBD和/或/NVMe-TCP的NVMe的某些组合。"
1565
1566 #. type: Plain text
1567 #: administration-linstor.adoc:814
1568 msgid "For example, assume we have a Thin LVM backed storage pool defined in our LINSTOR cluster named, `thin-lvm`:"
1569 msgstr "例如,我们在LINSTOR集群中定义了一个Thin LVM支持的存储池,名为 `thin-lvm`:"
1570
1571 #. type: delimited block -
1572 #: administration-linstor.adoc:825
1573 #, no-wrap
1574 msgid ""
1575 "# linstor --no-utf8 storage-pool list\n"
1576 "+--------------------------------------------------------------+\n"
1577 "| StoragePool | Node | Driver | PoolName | ... |\n"
1578 "|--------------------------------------------------------------|\n"
1579 "| thin-lvm | linstor-a | LVM_THIN | drbdpool/thinpool | ... |\n"
1580 "| thin-lvm | linstor-b | LVM_THIN | drbdpool/thinpool | ... |\n"
1581 "| thin-lvm | linstor-c | LVM_THIN | drbdpool/thinpool | ... |\n"
1582 "| thin-lvm | linstor-d | LVM_THIN | drbdpool/thinpool | ... |\n"
1583 "+--------------------------------------------------------------+\n"
1584 msgstr ""
1585 "# linstor --no-utf8 storage-pool list\n"
1586 "+--------------------------------------------------------------+\n"
1587 "| StoragePool | Node | Driver | PoolName | ... |\n"
1588 "|--------------------------------------------------------------|\n"
1589 "| thin-lvm | linstor-a | LVM_THIN | drbdpool/thinpool | ... |\n"
1590 "| thin-lvm | linstor-b | LVM_THIN | drbdpool/thinpool | ... |\n"
1591 "| thin-lvm | linstor-c | LVM_THIN | drbdpool/thinpool | ... |\n"
1592 "| thin-lvm | linstor-d | LVM_THIN | drbdpool/thinpool | ... |\n"
1593 "+--------------------------------------------------------------+\n"
1594
1595 #. type: Plain text
1596 #: administration-linstor.adoc:829
1597 msgid "We could use LINSTOR to create a Thin LVM on `linstor-d` that's 100GiB in size using the following commands:"
1598 msgstr "我们可以使用LINSTOR在 `linstor-d` 上创建一个100GiB大小的精简LVM,使用以下命令:"
1599
1600 #. type: delimited block -
1601 #: administration-linstor.adoc:835
1602 #, no-wrap
1603 msgid ""
1604 "# linstor resource-definition create rsc-1\n"
1605 "# linstor volume-definition create rsc-1 100GiB\n"
1606 "# linstor resource create --layer-list storage \\\n"
1607 " --storage-pool thin-lvm linstor-d rsc-1\n"
1608 msgstr ""
1609 "# linstor resource-definition create rsc-1\n"
1610 "# linstor volume-definition create rsc-1 100GiB\n"
1611 "# linstor resource create --layer-list storage \\\n"
1612 " --storage-pool thin-lvm linstor-d rsc-1\n"
1613
1614 #. type: Plain text
1615 #: administration-linstor.adoc:840
1616 msgid ""
1617 "You should then see you have a new Thin LVM on `linstor-d`. You can extract the device path from LINSTOR by listing your linstor resources with the `--machine-readable` flag "
1618 "set:"
1619 msgstr "你应该看到 `linstor-d` 上有一个新的瘦LVM。通过使用 `--machine-readable` 标志集列出LINSTOR资源,可以从LINSTOR提取设备路径:"
1620
1621 #. type: delimited block -
1622 #: administration-linstor.adoc:844
1623 #, no-wrap
1624 msgid ""
1625 "# linstor --machine-readable resource list | grep device_path\n"
1626 " \"device_path\": \"/dev/drbdpool/rsc-1_00000\",\n"
1627 msgstr ""
1628 "# linstor --machine-readable resource list | grep device_path\n"
1629 " \"device_path\": \"/dev/drbdpool/rsc-1_00000\",\n"
1630
1631 #. type: Plain text
1632 #: administration-linstor.adoc:849
1633 msgid ""
1634 "If you wanted to layer DRBD on top of this volume, which is the default `--layer-list` option in LINSTOR for ZFS or LVM backed volumes, you would use the following resource "
1635 "creation pattern instead:"
1636 msgstr "如果要将DRBD放置在此卷上(这是LINSTOR中ZFS或LVM支持的卷的默认 `--layer-list` 选项),可以使用以下资源创建模式:"
1637
1638 #. type: delimited block -
1639 #: administration-linstor.adoc:855
1640 #, no-wrap
1641 msgid ""
1642 "# linstor resource-definition create rsc-1\n"
1643 "# linstor volume-definition create rsc-1 100GiB\n"
1644 "# linstor resource create --layer-list drbd,storage \\\n"
1645 " --storage-pool thin-lvm linstor-d rsc-1\n"
1646 msgstr ""
1647 "# linstor resource-definition create rsc-1\n"
1648 "# linstor volume-definition create rsc-1 100GiB\n"
1649 "# linstor resource create --layer-list drbd,storage \\\n"
1650 " --storage-pool thin-lvm linstor-d rsc-1\n"
1651
1652 #. type: Plain text
1653 #: administration-linstor.adoc:859
1654 msgid "You would then see that you have a new Thin LVM backing a DRBD volume on `linstor-d`:"
1655 msgstr "然后,您将看到有一个新的 Thin LVM被创建出来用于支撑 `linstor-d` 上的DRBD卷:"
1656
1657 #. type: delimited block -
1658 #: administration-linstor.adoc:864
1659 #, no-wrap
1660 msgid ""
1661 "# linstor --machine-readable resource list | grep -e device_path -e backing_disk\n"
1662 " \"device_path\": \"/dev/drbd1000\",\n"
1663 " \"backing_disk\": \"/dev/drbdpool/rsc-1_00000\",\n"
1664 msgstr ""
1665 "# linstor --machine-readable resource list | grep -e device_path -e backing_disk\n"
1666 " \"device_path\": \"/dev/drbd1000\",\n"
1667 " \"backing_disk\": \"/dev/drbdpool/rsc-1_00000\",\n"
1668
1669 #. type: Plain text
1670 #: administration-linstor.adoc:867
1671 msgid "The following table shows which layer can be followed by which child-layer:"
1672 msgstr "下表显示了哪个层可以后跟哪个子层:"
1673
1674 #. type: Table
1675 #: administration-linstor.adoc:877
1676 #, no-wrap
1677 msgid ""
1678 "| Layer | Child layer\n"
1679 "\n"
1680 "| DRBD | WRITECACHE, NVME, LUKS, STORAGE\n"
1681 "| WRITECACHE | NVME, LUKS, STORAGE\n"
1682 "| NVME | WRITACACHE, LUKS, STORAGE\n"
1683 "| LUKS | STORAGE\n"
1684 "| STORAGE | -\n"
1685 msgstr ""
1686 "| Layer | Child layer\n"
1687 "\n"
1688 "| DRBD | WRITECACHE, NVME, LUKS, STORAGE\n"
1689 "| WRITECACHE | NVME, LUKS, STORAGE\n"
1690 "| NVME | WRITACACHE, LUKS, STORAGE\n"
1691 "| LUKS | STORAGE\n"
1692 "| STORAGE | -\n"
1693
1694 #. type: Plain text
1695 #: administration-linstor.adoc:880
1696 msgid "One layer can only occur once in the layer-list"
1697 msgstr "一个层只能在层列表中出现一次"
1698
1699 #. type: Plain text
1700 #: administration-linstor.adoc:883
1701 msgid "For information about the prerequisites for the `luks` layer, refer to the Encrypted Volumes section of this User's Guide."
1702 msgstr "有关 `luks`层的先决条件的信息,请参阅本用户指南的加密卷部分。"
1703
1704 #. type: Title ====
1705 #: administration-linstor.adoc:884
1706 #, no-wrap
1707 msgid "NVMe-oF/NVMe-TCP LINSTOR Layer"
1708 msgstr "NVME-OF/NVME-TCP Linstor Layer"
1709
1710 #. type: Plain text
1711 #: administration-linstor.adoc:893
1712 msgid ""
1713 "NVMe-oF/NVMe-TCP allows LINSTOR to connect diskless resources to a node with the same resource where the data is stored over NVMe fabrics. This leads to the advantage that "
1714 "resources can be mounted without using local storage by accessing the data over the network. LINSTOR is not using DRBD in this case, and therefore NVMe resources provisioned "
1715 "by LINSTOR are not replicated, the data is stored on one node."
1716 msgstr ""
1717 "NVMe-oF/NVMe-TCP允许LINSTOR将无盘资源连接到具有相同资源的节点,数据存储在NVMe结构上。这就带来了这样一个优势:通过网络访问数据,无需使用本地存储就可以装载资源。在这种情况下,"
1718 "LINSTOR不使用DRBD,因此不会复制LINSTOR提供的NVMe资源,数据存储在一个节点上。"
1719
1720 #. type: Plain text
1721 #: administration-linstor.adoc:899
1722 msgid ""
1723 "NVMe-oF only works on RDMA-capable networks and NVMe-TCP on every network that can carry IP traffic. If you want to know more about NVMe-oF/NVMe-TCP visit https://www.linbit."
1724 "com/en/nvme-linstor-swordfish/ for more information."
1725 msgstr ""
1726 "NVMe-oF仅在支持RDMA的网络上工作,NVMe-TCP在每个可以承载IP流量的网络上工作。如果您想了解有关NVMe-oF/NVMe-TCP的NVMe的更多信息,请访问https://www.linbit.com/en/nvme-linstor-"
1727 "swordfish/。"
1728
1729 #. type: Plain text
1730 #: administration-linstor.adoc:903
1731 msgid "To use NVMe-oF/NVMe-TCP with LINSTOR the package `nvme-cli` needs to be installed on every Node which acts as a Satellite and will use NVMe-oF/NVMe-TCP for a resource:"
1732 msgstr "要将NVMe-oF/NVMe-TCP与LINSTOR一起使用,需要在充当Satellite的每个节点上安装包 `nvme-cli`,并将NVMe-oF/NVMe-TCP用于资源:"
1733
1734 #. type: Plain text
1735 #: administration-linstor.adoc:906
1736 msgid "If you are not using Ubuntu use the suitable command for installing packages on your OS - SLES: zypper - CentOS: yum"
1737 msgstr "如果不使用Ubuntu,请使用合适的命令在OS安装软件包 - SLES: zypper - CentOS: yum"
1738
1739 #. type: delimited block -
1740 #: administration-linstor.adoc:909
1741 #, no-wrap
1742 msgid "# apt install nvme-cli\n"
1743 msgstr "# apt install nvme-cli\n"
1744
1745 #. type: Plain text
1746 #: administration-linstor.adoc:913
1747 msgid "To make a resource which uses NVMe-oF/NVMe-TCP an additional parameter has to be given as you create the resource-definition:"
1748 msgstr "要使资源使用NVMe-oF/NVMe-TCP,必须在创建资源定义时提供一个附加参数:"
1749
1750 #. type: delimited block -
1751 #: administration-linstor.adoc:916
1752 #, no-wrap
1753 msgid "# linstor resource-definition create nvmedata -l nvme,storage\n"
1754 msgstr "# linstor resource-definition create nvmedata -l nvme,storage\n"
1755
1756 #. type: Plain text
1757 #: administration-linstor.adoc:922
1758 msgid ""
1759 "As default the -l (layer-stack) parameter is set to `drbd, storage` when DRBD is used. If you want to create LINSTOR resources with neither NVMe nor DRBD you have to set the `-"
1760 "l` parameter to only `storage`."
1761 msgstr "默认情况下,使用DRBD时-l(layer-stack)参数设置为 `drbd, storage`。如果要创建既不使用NVMe也不使用DRBD的LINSTOR资源,则必须将 `-l` 参数设置为仅使用 `storage`。"
1762
1763 #. type: Plain text
1764 #: administration-linstor.adoc:924
1765 msgid "Create the volume-definition for our resource:"
1766 msgstr "为我们的资源创建卷定义:"
1767
1768 #. type: delimited block -
1769 #: administration-linstor.adoc:927
1770 #, no-wrap
1771 msgid "# linstor volume-definition create nvmedata 500G\n"
1772 msgstr "# linstor volume-definition create nvmedata 500G\n"
1773
1774 #. type: Plain text
1775 #: administration-linstor.adoc:932
1776 msgid "Before you create the resource on your nodes you have to know where the data will be stored locally and which node accesses it over the network."
1777 msgstr "在节点上创建资源之前,必须知道数据将在本地存储在哪里,以及哪个节点通过网络访问它。"
1778
1779 #. type: Plain text
1780 #: administration-linstor.adoc:934
1781 msgid "First we create the resource on the node where our data will be stored:"
1782 msgstr "首先,我们在存储数据的节点上创建资源:"
1783
1784 #. type: delimited block -
1785 #: administration-linstor.adoc:937
1786 #, no-wrap
1787 msgid "# linstor resource create alpha nvmedata --storage-pool pool_ssd\n"
1788 msgstr "# linstor resource create alpha nvmedata --storage-pool pool_ssd\n"
1789
1790 #. type: Plain text
1791 #: administration-linstor.adoc:941
1792 msgid "On the nodes where the resource-data will be accessed over the network, the resource has to be defined as diskless:"
1793 msgstr "在将通过网络访问资源数据的节点上,必须将资源定义为无盘:"
1794
1795 #. type: delimited block -
1796 #: administration-linstor.adoc:944
1797 #, no-wrap
1798 msgid "# linstor resource create beta nvmedata -d\n"
1799 msgstr "# linstor resource create beta nvmedata -d\n"
1800
1801 #. type: Plain text
1802 #: administration-linstor.adoc:947
1803 msgid "The `-d` parameter creates the resource on this node as diskless."
1804 msgstr "`-d` 参数将此节点上的资源创建为无盘。"
1805
1806 #. type: Plain text
1807 #: administration-linstor.adoc:950
1808 msgid "Now you can mount the resource `nvmedata` on one of your nodes."
1809 msgstr "现在,您可以在一个节点上装载资源 `nvmedata`。"
1810
1811 #. type: Plain text
1812 #: administration-linstor.adoc:954
1813 msgid "If your nodes have more than one NIC you should force the route between them for NVMe-of/NVME-TCP, otherwise multiple NIC's could cause troubles."
1814 msgstr "如果您的节点有多个NIC,您应该为NVMe-of/NVME-TCP指定它们之间的路由,否则多个NIC可能会导致问题。"
1815
1816 #. type: Title ====
1817 #: administration-linstor.adoc:956
1818 #, no-wrap
1819 msgid "Writecache Layer"
1820 msgstr "写入缓存层"
1821
1822 #. type: Plain text
1823 #: administration-linstor.adoc:962
1824 msgid ""
1825 "A https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/writecache.html[DM-Writecache] device is composed by two devices, one storage device and one cache device. "
1826 "LINSTOR can setup such a writecache device, but needs some additional information, like the storage pool and the size of the cache device."
1827 msgstr ""
1828 "一个 https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/writecache.html[DM writecache] 设备由两个设备、即一个存储设备和一个缓存设备组成。LINSTOR可以设置这样一个"
1829 "writecache设备,但是需要一些额外的信息,比如存储池和缓存设备的大小。"
1830
1831 #. type: delimited block -
1832 #: administration-linstor.adoc:966
1833 #, no-wrap
1834 msgid ""
1835 "# linstor storage-pool create lvm node1 lvmpool drbdpool\n"
1836 "# linstor storage-pool create lvm node1 pmempool pmempool\n"
1837 msgstr ""
1838 "# linstor storage-pool create lvm node1 lvmpool drbdpool\n"
1839 "# linstor storage-pool create lvm node1 pmempool pmempool\n"
1840
1841 #. type: delimited block -
1842 #: administration-linstor.adoc:969
1843 #, no-wrap
1844 msgid ""
1845 "# linstor resource-definition create r1\n"
1846 "# linstor volume-definition create r1 100G\n"
1847 msgstr ""
1848 "# linstor resource-definition create r1\n"
1849 "# linstor volume-definition create r1 100G\n"
1850
1851 #. type: delimited block -
1852 #: administration-linstor.adoc:972
1853 #, no-wrap
1854 msgid ""
1855 "# linstor volume-definition set-property r1 0 Writecache/PoolName pmempool\n"
1856 "# linstor volume-definition set-property r1 0 Writecache/Size 1%\n"
1857 msgstr ""
1858 "# linstor volume-definition set-property r1 0 Writecache/PoolName pmempool\n"
1859 "# linstor volume-definition set-property r1 0 Writecache/Size 1%\n"
1860
1861 #. type: delimited block -
1862 #: administration-linstor.adoc:974
1863 #, no-wrap
1864 msgid "# linstor resource create node1 r1 --storage-pool lvmpool --layer-list WRITECACHE,STORAGE\n"
1865 msgstr "# linstor resource create node1 r1 --storage-pool lvmpool --layer-list WRITECACHE,STORAGE\n"
1866
1867 #. type: Plain text
1868 #: administration-linstor.adoc:981
1869 msgid ""
1870 "The two properties set in the examples are mandatory, but can also be set on controller level which would act as a default for all resources with `WRITECACHE` in their `--layer-"
1871 "list`. However, please note that the `Writecache/PoolName` referes to the corresponding node. If the node does not have a storge-pool named `pmempool` you will get an error "
1872 "message."
1873 msgstr ""
1874 "示例中设置的两个属性是必需的,但也可以在controller级别上设置,这将作为其 `层列表` 中包含 `WRITECACHE` 的所有资源的默认值。但是,请注意, `Writecache/PoolName` 指的是相应的节点。"
1875 "如果节点没有名为 `pmempool` 的存储池,则会收到错误消息。"
1876
1877 #. type: Plain text
1878 #: administration-linstor.adoc:988
1879 msgid ""
1880 "The 4 mandatory parameters required by https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/writecache.html[DM-Writecache] are either configured via property or "
1881 "figured out by LINSTOR. The optional properties listed in the mentioned link can also be set via property. Please see `linstor controller set-property --help` for a list of "
1882 "`Writecache/*` property-keys."
1883 msgstr ""
1884 "在 https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/writecache.html[DM writecache] 中所需的4个必需参数要么通过属性配置,要么由LINSTOR计算。上述链接中列出的可选属"
1885 "性也可以通过属性进行设置。有关 `Writecache/*` 属性键的列表,请参见 `linstor controller set property--help` 。"
1886
1887 #. type: Plain text
1888 #: administration-linstor.adoc:992
1889 msgid ""
1890 "Using `--layer-list DRBD,WRITECACHE,STORAGE` while having DRBD configured to use external metadata, only the backing device will use a writecache, not the device holding the "
1891 "external metadata."
1892 msgstr "使用 `--layer-list DRBD,WRITECACHE,STORAGE` 将DRBD配置为使用外部元数据时,只有备份设备将使用writecache,而不是保存外部元数据的设备。"
1893
1894 #. type: Title ===
1895 #: administration-linstor.adoc:994
1896 #, no-wrap
1897 msgid "Managing Network Interface Cards"
1898 msgstr "管理网络接口卡"
1899
1900 #. type: Plain text
1901 #: administration-linstor.adoc:998
1902 msgid "LINSTOR can deal with multiple network interface cards (NICs) in a machine, they are called `netif` in LINSTOR speak."
1903 msgstr "LINSTOR可以在一台机器上处理多个网络接口卡(NICs),在LINSTOR中称为 `netif`。"
1904
1905 #. type: Plain text
1906 #: administration-linstor.adoc:1002
1907 msgid ""
1908 "When a satellite node is created a first `netif` gets created implicitly with the name `default`. Using the `--interface-name` option of the `node create` command you can give "
1909 "it a different name."
1910 msgstr "创建附属节点时,将隐式创建第一个名为 `default` 的 `netif` 。使用 `node create` 命令的 `--interface name` 选项,可以给它一个不同的名称。"
1911
1912 #. type: Plain text
1913 #: administration-linstor.adoc:1004
1914 msgid "Additional NICs are created like this:"
1915 msgstr "其他NIC的创建方式如下:"
1916
1917 #. type: delimited block -
1918 #: administration-linstor.adoc:1007
1919 #, no-wrap
1920 msgid ""
1921 "# linstor node interface create alpha 100G_nic 192.168.43.221\n"
1922 "# linstor node interface create alpha 10G_nic 192.168.43.231\n"
1923 msgstr ""
1924 "# linstor node interface create alpha 100G_nic 192.168.43.221\n"
1925 "# linstor node interface create alpha 10G_nic 192.168.43.231\n"
1926
1927 #. type: Plain text
1928 #: administration-linstor.adoc:1013
1929 msgid ""
1930 "NICs are identified by the IP address only, the name is arbitrary and is *not* related to the interface name used by Linux. The NICs can be assigned to storage pools so that "
1931 "whenever a resource is created in such a storage pool, the DRBD traffic will be routed through the specified NIC."
1932 msgstr "NIC仅由IP地址标识,名称是任意的,与Linux使用的接口名称 *无关* 。可以将NIC分配给存储池,以便每当在这样的存储池中创建资源时,DRBD通信通过其指定的NIC路由。"
1933
1934 #. type: delimited block -
1935 #: administration-linstor.adoc:1017
1936 #, no-wrap
1937 msgid ""
1938 "# linstor storage-pool set-property alpha pool_hdd PrefNic 10G_nic\n"
1939 "# linstor storage-pool set-property alpha pool_ssd PrefNic 100G_nic\n"
1940 msgstr ""
1941 "# linstor storage-pool set-property alpha pool_hdd PrefNic 10G_nic\n"
1942 "# linstor storage-pool set-property alpha pool_ssd PrefNic 100G_nic\n"
1943
1944 #. type: Plain text
1945 #: administration-linstor.adoc:1021
1946 msgid "FIXME describe how to route the controller +<->+ client communication through a specific `netif`."
1947 msgstr "FIXME 描述了如何通过特定的 `netif` 路由controller +<->+ 客户端通信。"
1948
1949 #. type: Title ===
1950 #: administration-linstor.adoc:1023
1951 #, no-wrap
1952 msgid "Encrypted volumes"
1953 msgstr "加密卷"
1954
1955 #. type: Plain text
1956 #: administration-linstor.adoc:1026
1957 msgid "LINSTOR can handle transparent encryption of drbd volumes. dm-crypt is used to encrypt the provided storage from the storage device."
1958 msgstr "LINSTOR可以处理drbd卷的透明加密。dm-crypt用于对存储设备中提供的存储进行加密。"
1959
1960 #. type: Plain text
1961 #: administration-linstor.adoc:1028
1962 msgid "Basic steps to use encryption:"
1963 msgstr "使用加密的基本步骤:"
1964
1965 #. type: Plain text
1966 #: administration-linstor.adoc:1030
1967 msgid "Disable user security on the controller (this will be obsolete once authentication works)"
1968 msgstr "在控制器上禁用用户安全性(一旦身份验证生效,这将被废弃)"
1969
1970 #. type: Plain text
1971 #: administration-linstor.adoc:1031
1972 msgid "Create a master passphrase"
1973 msgstr "创建主密码"
1974
1975 #. type: Plain text
1976 #: administration-linstor.adoc:1032
1977 msgid "Add `luks` to the layer-list"
1978 msgstr "将 `luks` 添加到层列表"
1979
1980 #. type: Plain text
1981 #: administration-linstor.adoc:1033
1982 msgid "Don't forget to re-enter the master passphrase after a controller restart."
1983 msgstr "不要忘记在controller重新启动后重新输入主密码。"
1984
1985 #. type: Title ====
1986 #: administration-linstor.adoc:1035
1987 #, no-wrap
1988 msgid "Disable user security"
1989 msgstr "禁用用户安全"
1990
1991 #. type: Plain text
1992 #: administration-linstor.adoc:1038
1993 msgid "Disabling the user security on the `Linstor` controller is a one time operation and is afterwards persisted."
1994 msgstr "在 `Linstor` controller上禁用用户安全性是一次操作,之后会被持久化。"
1995
1996 #. type: Plain text
1997 #: administration-linstor.adoc:1040
1998 msgid "Stop the running linstor-controller via systemd: `systemctl stop linstor-controller`"
1999 msgstr "通过 `systemctl stop linstor-controller` 停止正在运行的linstor控制器`"
2000
2001 #. type: Plain text
2002 #: administration-linstor.adoc:1041
2003 msgid "Start a linstor-controller in debug mode: `/usr/share/linstor-server/bin/Controller -c /etc/linstor -d`"
2004 msgstr "在调试模式下启动linstor控制器: `/usr/share/linstor-server/bin/Controller -c /etc/linstor -d`"
2005
2006 #. type: Plain text
2007 #: administration-linstor.adoc:1042
2008 msgid "In the debug console enter: `setSecLvl secLvl(NO_SECURITY)`"
2009 msgstr "在调试控制台中输入:`setSecLvl secLvl(NO_SECURITY)`"
2010
2011 #. type: Plain text
2012 #: administration-linstor.adoc:1043
2013 msgid "Stop linstor-controller with the debug shutdown command: `shutdown`"
2014 msgstr "使用调试关闭命令停止linstor控制器: `shutdown`"
2015
2016 #. type: Plain text
2017 #: administration-linstor.adoc:1044
2018 msgid "Start the controller again with systemd: `systemctl start linstor-controller`"
2019 msgstr "使用systemd重新启动控制器:`systemctl start linstor-controller`"
2020
2021 #. type: Title ====
2022 #: administration-linstor.adoc:1046
2023 #, no-wrap
2024 msgid "Encrypt commands"
2025 msgstr "加密命令"
2026
2027 #. type: Plain text
2028 #: administration-linstor.adoc:1048
2029 msgid "Below are details about the commands."
2030 msgstr "下面是有关命令的详细信息。"
2031
2032 #. type: Plain text
2033 #: administration-linstor.adoc:1051
2034 msgid "Before LINSTOR can encrypt any volume a master passphrase needs to be created. This can be done with the linstor-client."
2035 msgstr "在LINSTOR可以加密任何卷之前,需要创建主密码。这可以通过linstor客户端完成。"
2036
2037 #. type: delimited block -
2038 #: administration-linstor.adoc:1054
2039 #, no-wrap
2040 msgid "# linstor encryption create-passphrase\n"
2041 msgstr "# linstor encryption create-passphrase\n"
2042
2043 #. type: Plain text
2044 #: administration-linstor.adoc:1058
2045 msgid "`crypt-create-passphrase` will wait for the user to input the initial master passphrase (as all other crypt commands will with no arguments)."
2046 msgstr "`crypt create-passphrase`将等待用户输入初始主密码(因为所有其他crypt命令都没有参数)。"
2047
2048 #. type: Plain text
2049 #: administration-linstor.adoc:1060
2050 msgid "If you ever want to change the master passphrase this can be done with:"
2051 msgstr "如果您想更改主密码,可以使用以下方法:"
2052
2053 #. type: delimited block -
2054 #: administration-linstor.adoc:1063
2055 #, no-wrap
2056 msgid "# linstor encryption modify-passphrase\n"
2057 msgstr "# linstor encryption modify-passphrase\n"
2058
2059 #. type: Plain text
2060 #: administration-linstor.adoc:1068
2061 msgid ""
2062 "The `luks` layer can be added when creating the resource-definition or the resource itself, whereas the former method is recommended since it will be automatically applied to "
2063 "all resource created from that resource-definition."
2064 msgstr "`luks` 层可以在创建资源定义或资源本身时添加,而建议使用前一种方法,因为它将自动应用于从该资源定义创建的所有资源。"
2065
2066 #. type: delimited block -
2067 #: administration-linstor.adoc:1071
2068 #, no-wrap
2069 msgid "# linstor resource-definition create crypt_rsc --layer-list luks,storage\n"
2070 msgstr "# linstor resource-definition create crypt_rsc --layer-list luks,storage\n"
2071
2072 #. type: Plain text
2073 #: administration-linstor.adoc:1074
2074 msgid "To enter the master passphrase (after controller restart) use the following command:"
2075 msgstr "要输入主密码(在controller重新启动后),请使用以下命令:"
2076
2077 #. type: delimited block -
2078 #: administration-linstor.adoc:1077
2079 #, no-wrap
2080 msgid "# linstor encryption enter-passphrase\n"
2081 msgstr "# linstor encryption enter-passphrase\n"
2082
2083 #. type: Plain text
2084 #: administration-linstor.adoc:1082
2085 msgid ""
2086 "Whenever the linstor-controller is restarted, the user has to send the master passphrase to the controller, otherwise LINSTOR is unable to reopen or create encrypted volumes."
2087 msgstr "无论何时重新启动linstor controller,用户都必须向控制器发送主密码,否则linstor无法重新打开或创建加密卷。"
2088
2089 #. type: Title ===
2090 #: administration-linstor.adoc:1084
2091 #, no-wrap
2092 msgid "Checking the state of your cluster"
2093 msgstr "检查集群状态"
2094
2095 #. type: Plain text
2096 #: administration-linstor.adoc:1089
2097 msgid ""
2098 "LINSTOR provides various commands to check the state of your cluster. These commands start with a 'list-' prefix and provide various filtering and sorting options. The '--"
2099 "groupby' option can be used to group and sort the output in multiple dimensions."
2100 msgstr "LINSTOR提供各种命令来检查集群的状态。这些命令以 `list-` 前缀开头,并提供各种筛选和排序选项。`--groupby` 选项可用于按多个维度对输出进行分组和排序。"
2101
2102 #. type: delimited block -
2103 #: administration-linstor.adoc:1093
2104 #, no-wrap
2105 msgid ""
2106 "# linstor node list\n"
2107 "# linstor storage-pool list --groupby Size\n"
2108 msgstr ""
2109 "# linstor node list\n"
2110 "# linstor storage-pool list --groupby Size\n"
2111
2112 #. type: Title ===
2113 #: administration-linstor.adoc:1096
2114 #, no-wrap
2115 msgid "Managing snapshots"
2116 msgstr "管理快照"
2117
2118 #. type: Plain text
2119 #: administration-linstor.adoc:1098
2120 msgid "Snapshots are supported with thin LVM and ZFS storage pools."
2121 msgstr "精简LVM和ZFS存储池支持快照。"
2122
2123 #. type: Title ====
2124 #: administration-linstor.adoc:1100
2125 #, no-wrap
2126 msgid "Creating a snapshot"
2127 msgstr "创建快照"
2128
2129 #. type: Plain text
2130 #: administration-linstor.adoc:1103
2131 msgid "Assuming a resource definition named 'resource1' which has been placed on some nodes, a snapshot can be created as follows:"
2132 msgstr "假设在某些节点上放置了名为 `resource1` 的资源定义,则可以按如下方式创建快照:"
2133
2134 #. type: delimited block -
2135 #: administration-linstor.adoc:1106
2136 #, no-wrap
2137 msgid "# linstor snapshot create resource1 snap1\n"
2138 msgstr "# linstor snapshot create resource1 snap1\n"
2139
2140 #. type: Plain text
2141 #: administration-linstor.adoc:1111
2142 msgid "This will create snapshots on all nodes where the resource is present. LINSTOR will ensure that consistent snapshots are taken even when the resource is in active use."
2143 msgstr "这将在资源所在的所有节点上创建快照。LINSTOR将确保即使在资源处于活动使用状态时也创建一致的快照。"
2144
2145 #. type: Title ====
2146 #: administration-linstor.adoc:1113
2147 #, no-wrap
2148 msgid "Restoring a snapshot"
2149 msgstr "还原快照"
2150
2151 #. type: Plain text
2152 #: administration-linstor.adoc:1117
2153 msgid "The following steps restore a snapshot to a new resource. This is possible even when the original resource has been removed from the nodes where the snapshots were taken."
2154 msgstr "以下步骤将快照还原到新资源。即使原始资源已从创建快照的节点中删除,也可能发生这种情况。"
2155
2156 #. type: Plain text
2157 #: administration-linstor.adoc:1119
2158 msgid "First define the new resource with volumes matching those from the snapshot:"
2159 msgstr "首先使用与快照中的卷匹配的卷定义新资源:"
2160
2161 #. type: delimited block -
2162 #: administration-linstor.adoc:1123
2163 #, no-wrap
2164 msgid ""
2165 "# linstor resource-definition create resource2\n"
2166 "# linstor snapshot volume-definition restore --from-resource resource1 --from-snapshot snap1 --to-resource resource2\n"
2167 msgstr ""
2168 "# linstor resource-definition create resource2\n"
2169 "# linstor snapshot volume-definition restore --from-resource resource1 --from-snapshot snap1 --to-resource resource2\n"
2170
2171 #. type: Plain text
2172 #: administration-linstor.adoc:1127
2173 msgid "At this point, additional configuration can be applied if necessary. Then, when ready, create resources based on the snapshots:"
2174 msgstr "此时,如果需要,可以应用其他配置。然后,准备好后,根据快照创建资源:"
2175
2176 #. type: delimited block -
2177 #: administration-linstor.adoc:1130
2178 #, no-wrap
2179 msgid "# linstor snapshot resource restore --from-resource resource1 --from-snapshot snap1 --to-resource resource2\n"
2180 msgstr "# linstor snapshot resource restore --from-resource resource1 --from-snapshot snap1 --to-resource resource2\n"
2181
2182 #. type: Plain text
2183 #: administration-linstor.adoc:1135
2184 msgid ""
2185 "This will place the new resource on all nodes where the snapshot is present. The nodes on which to place the resource can also be selected explicitly; see the help (`linstor "
2186 "snapshot resource restore -h`)."
2187 msgstr "这将在快照所在的所有节点上放置新资源。也可以显式选择放置资源的节点;请参阅帮助( `linstor snapshot resource restore -h` )."
2188
2189 #. type: Title ====
2190 #: administration-linstor.adoc:1137
2191 #, no-wrap
2192 msgid "Rolling back to a snapshot"
2193 msgstr "回滚快照"
2194
2195 #. type: Plain text
2196 #: administration-linstor.adoc:1143
2197 msgid ""
2198 "LINSTOR can roll a resource back to a snapshot state. The resource must not be in use. That is, it may not be mounted on any nodes. If the resource is in use, consider "
2199 "whether you can achieve your goal by <<s-restoring_a_snapshot-linstor,restoring the snapshot>> instead."
2200 msgstr ""
2201 "LINSTOR可以将资源回滚到快照状态。回滚时资源不能被使用。也就是说,它不能安装在任何节点上。如果资源正在使用中,请考虑是否可以通过<<s-restoring_a_snapshot-linstor,restoring the "
2202 "snapshot>>来实现您的目标。"
2203
2204 #. type: Plain text
2205 #: administration-linstor.adoc:1145
2206 msgid "Rollback is performed as follows:"
2207 msgstr "回滚执行如下:"
2208
2209 #. type: delimited block -
2210 #: administration-linstor.adoc:1148
2211 #, no-wrap
2212 msgid "# linstor snapshot rollback resource1 snap1\n"
2213 msgstr "# linstor snapshot rollback resource1 snap1\n"
2214
2215 #. type: Plain text
2216 #: administration-linstor.adoc:1152
2217 msgid "A resource can only be rolled back to the most recent snapshot. To roll back to an older snapshot, first delete the intermediate snapshots."
2218 msgstr "资源只能回滚到最近的快照。要回滚到旧快照,请首先删除中间快照。"
2219
2220 #. type: Title ====
2221 #: administration-linstor.adoc:1154
2222 #, no-wrap
2223 msgid "Removing a snapshot"
2224 msgstr "删除快照"
2225
2226 #. type: Plain text
2227 #: administration-linstor.adoc:1156
2228 msgid "An existing snapshot can be removed as follows:"
2229 msgstr "可以按如下方式删除现有快照:"
2230
2231 #. type: delimited block -
2232 #: administration-linstor.adoc:1159
2233 #, no-wrap
2234 msgid "# linstor snapshot delete resource1 snap1\n"
2235 msgstr "# linstor snapshot delete resource1 snap1\n"
2236
2237 #. type: Title ===
2238 #: administration-linstor.adoc:1162
2239 #, no-wrap
2240 msgid "Setting options for resources"
2241 msgstr "设置资源选项"
2242
2243 #. type: Plain text
2244 #: administration-linstor.adoc:1168
2245 msgid ""
2246 "DRBD options are set using LINSTOR commands. Configuration in files such as `/etc/drbd.d/global_common.conf` that are not managed by LINSTOR will be ignored. The following "
2247 "commands show the usage and available options:"
2248 msgstr "DRBD选项是使用LINSTOR命令设置的。将忽略诸如 `/etc/drbd.d/global_common.conf` 文件中未由LINSTOR管理的配置。以下命令显示用法和可用选项:"
2249
2250 #. type: delimited block -
2251 #: administration-linstor.adoc:1174
2252 #, no-wrap
2253 msgid ""
2254 "# linstor controller drbd-options -h\n"
2255 "# linstor resource-definition drbd-options -h\n"
2256 "# linstor volume-definition drbd-options -h\n"
2257 "# linstor resource drbd-peer-options -h\n"
2258 msgstr ""
2259 "# linstor controller drbd-options -h\n"
2260 "# linstor resource-definition drbd-options -h\n"
2261 "# linstor volume-definition drbd-options -h\n"
2262 "# linstor resource drbd-peer-options -h\n"
2263
2264 #. type: Plain text
2265 #: administration-linstor.adoc:1178
2266 msgid "For instance, it is easy to set the DRBD protocol for a resource named `backups`:"
2267 msgstr "例如,很容易为名为 `backups` 的资源设置DRBD协议:"
2268
2269 #. type: delimited block -
2270 #: administration-linstor.adoc:1181
2271 #, no-wrap
2272 msgid "# linstor resource-definition drbd-options --protocol C backups\n"
2273 msgstr "# linstor resource-definition drbd-options --protocol C backups\n"
2274
2275 #. type: Title ===
2276 #: administration-linstor.adoc:1184
2277 #, no-wrap
2278 msgid "Adding and removing disks"
2279 msgstr "添加和删除磁盘"
2280
2281 #. type: Plain text
2282 #: administration-linstor.adoc:1188
2283 msgid "LINSTOR can convert resources between diskless and having a disk. This is achieved with the `resource toggle-disk` command, which has syntax similar to `resource create`."
2284 msgstr "LINSTOR可以在无盘和有盘之间转换资源。这是通过 `resource toggle disk` 命令实现的,该命令的语法类似于 `resource create` 。"
2285
2286 #. type: Plain text
2287 #: administration-linstor.adoc:1190
2288 msgid "For instance, add a disk to the diskless resource `backups` on 'alpha':"
2289 msgstr "例如,将磁盘添加到 `alpha` 上的无盘资源 `backups`:"
2290
2291 #. type: delimited block -
2292 #: administration-linstor.adoc:1193
2293 #, no-wrap
2294 msgid "# linstor resource toggle-disk alpha backups --storage-pool pool_ssd\n"
2295 msgstr "# linstor resource toggle-disk alpha backups --storage-pool pool_ssd\n"
2296
2297 #. type: Plain text
2298 #: administration-linstor.adoc:1196
2299 msgid "Remove this disk again:"
2300 msgstr "再次删除此磁盘:"
2301
2302 #. type: delimited block -
2303 #: administration-linstor.adoc:1199
2304 #, no-wrap
2305 msgid "# linstor resource toggle-disk alpha backups --diskless\n"
2306 msgstr "# linstor resource toggle-disk alpha backups --diskless\n"
2307
2308 #. type: Title ====
2309 #: administration-linstor.adoc:1202
2310 #, no-wrap
2311 msgid "Migrating disks"
2312 msgstr "迁移磁盘"
2313
2314 #. type: Plain text
2315 #: administration-linstor.adoc:1209
2316 msgid ""
2317 "In order to move a resource between nodes without reducing redundancy at any point, LINSTOR's disk migrate feature can be used. First create a diskless resource on the target "
2318 "node, and then add a disk using the `--migrate-from` option. This will wait until the data has been synced to the new disk and then remove the source disk."
2319 msgstr ""
2320 "为了在节点之间移动资源而不减少任何点的冗余,可以使用LINSTOR的磁盘迁移功能。首先在目标节点上创建一个无盘资源,然后使用 `--migrate from` 选项添加一个磁盘。这将等到数据已同步到新磁"
2321 "盘,然后删除源磁盘。"
2322
2323 #. type: Plain text
2324 #: administration-linstor.adoc:1211
2325 msgid "For example, to migrate a resource `backups` from 'alpha' to 'bravo':"
2326 msgstr "例如,要将资源 `backups` 从 `alpha` 迁移到 `bravo` :"
2327
2328 #. type: delimited block -
2329 #: administration-linstor.adoc:1215
2330 #, no-wrap
2331 msgid ""
2332 "# linstor resource create bravo backups --drbd-diskless\n"
2333 "# linstor resource toggle-disk bravo backups --storage-pool pool_ssd --migrate-from alpha\n"
2334 msgstr ""
2335 "# linstor resource create bravo backups --drbd-diskless\n"
2336 "# linstor resource toggle-disk bravo backups --storage-pool pool_ssd --migrate-from alpha\n"
2337
2338 #. type: Title ===
2339 #: administration-linstor.adoc:1218
2340 #, no-wrap
2341 msgid "DRBD Proxy with LINSTOR"
2342 msgstr "LINSTOR的DRBD代理"
2343
2344 #. type: Plain text
2345 #: administration-linstor.adoc:1223
2346 msgid ""
2347 "LINSTOR expects DRBD Proxy to be running on the nodes which are involved in the relevant connections. It does not currently support connections via DRBD Proxy on a separate "
2348 "node."
2349 msgstr "LINSTOR希望DRBD代理在相关连接所涉及的节点上运行。它目前不支持通过单独节点上的DRBD代理进行连接。"
2350
2351 #. type: Plain text
2352 #: administration-linstor.adoc:1228
2353 msgid ""
2354 "Suppose our cluster consists of nodes 'alpha' and 'bravo' in a local network and 'charlie' at a remote site, with a resource definition named `backups` deployed to each of the "
2355 "nodes. Then DRBD Proxy can be enabled for the connections to 'charlie' as follows:"
2356 msgstr ""
2357 "假设我们的集群由本地网络中的节点 `alpha` 和 `bravo` 以及远程站点上的节点 `charlie` 组成,每个节点都部署了名为 `backups` 的资源定义。然后,可以为 `charlie` 的连接启用DRBD Proxy,"
2358 "如下所示:"
2359
2360 #. type: delimited block -
2361 #: administration-linstor.adoc:1232
2362 #, no-wrap
2363 msgid ""
2364 "# linstor drbd-proxy enable alpha charlie backups\n"
2365 "# linstor drbd-proxy enable bravo charlie backups\n"
2366 msgstr ""
2367 "# linstor drbd-proxy enable alpha charlie backups\n"
2368 "# linstor drbd-proxy enable bravo charlie backups\n"
2369
2370 #. type: Plain text
2371 #: administration-linstor.adoc:1235
2372 msgid "The DRBD Proxy configuration can be tailored with commands such as:"
2373 msgstr "DRBD代理配置可以通过以下命令定制:"
2374
2375 #. type: delimited block -
2376 #: administration-linstor.adoc:1239
2377 #, no-wrap
2378 msgid ""
2379 "# linstor drbd-proxy options backups --memlimit 100000000\n"
2380 "# linstor drbd-proxy compression zlib backups --level 9\n"
2381 msgstr ""
2382 "# linstor drbd-proxy options backups --memlimit 100000000\n"
2383 "# linstor drbd-proxy compression zlib backups --level 9\n"
2384
2385 #. type: Plain text
2386 #: administration-linstor.adoc:1244
2387 msgid ""
2388 "LINSTOR does not automatically optimize the DRBD configuration for long-distance replication, so you will probably want to set some configuration options such as the protocol:"
2389 msgstr "LINSTOR不会自动优化远程复制的DRBD配置,因此您可能需要设置一些配置选项,例如协议:"
2390
2391 #. type: delimited block -
2392 #: administration-linstor.adoc:1248
2393 #, no-wrap
2394 msgid ""
2395 "# linstor resource-connection drbd-options alpha charlie backups --protocol A\n"
2396 "# linstor resource-connection drbd-options bravo charlie backups --protocol A\n"
2397 msgstr ""
2398 "# linstor resource-connection drbd-options alpha charlie backups --protocol A\n"
2399 "# linstor resource-connection drbd-options bravo charlie backups --protocol A\n"
2400
2401 #. type: Plain text
2402 #: administration-linstor.adoc:1251
2403 msgid "Please contact LINBIT for assistance optimizing your configuration."
2404 msgstr "请与LINBIT联系以获得优化配置的帮助。"
2405
2406 #. type: Title ===
2407 #: administration-linstor.adoc:1253
2408 #, no-wrap
2409 msgid "External database"
2410 msgstr "外部数据库"
2411
2412 #. type: Plain text
2413 #: administration-linstor.adoc:1257
2414 msgid "It is possible to have LINSTOR working with an external database provider like Postgresql, MariaDB and since version 1.1.0 even ETCD key value store is supported."
2415 msgstr "可以让LINSTOR与外部数据库提供程序(如Postgresql、MariaDB)一起工作,从版本1.1.0开始支持ETCD键值存储。"
2416
2417 #. type: Plain text
2418 #: administration-linstor.adoc:1261
2419 msgid ""
2420 "To use an external database there are a few additional steps to configure. External-SQL database need to download their JDBC-driver and copy it to the lib folder, ETCD just "
2421 "needs to correctly configure the LINSTOR."
2422 msgstr "要使用外部数据库,还有几个额外的配置步骤。外部SQL数据库需要下载其JDBC驱动程序并将其复制到lib文件夹,ETCD只需要正确配置LINSTOR即可。"
2423
2424 #. type: Title ====
2425 #: administration-linstor.adoc:1264
2426 #, no-wrap
2427 msgid "Postgresql"
2428 msgstr "Postgresql"
2429
2430 #. type: Plain text
2431 #: administration-linstor.adoc:1267
2432 msgid "Postgresql JDBC driver can be downloaded here:"
2433 msgstr "Postgresql JDBC驱动程序可以下载到:"
2434
2435 #. type: Plain text
2436 #: administration-linstor.adoc:1269
2437 msgid "https://jdbc.postgresql.org/download.html"
2438 msgstr "https://jdbc.postgresql.org/download.html"
2439
2440 #. type: Plain text
2441 #: administration-linstor.adoc:1272 administration-linstor.adoc:1291
2442 msgid "And afterwards copied to: `/usr/share/linstor-server/lib/`"
2443 msgstr "然后复制到: `/usr/share/linstor server/lib/`"
2444
2445 #. type: Plain text
2446 #: administration-linstor.adoc:1274
2447 msgid "A sample Postgresql `linstor.toml` looks like this:"
2448 msgstr "Postgresql `linstor.toml` 示例如下:"
2449
2450 #. type: delimited block -
2451 #: administration-linstor.adoc:1280
2452 #, no-wrap
2453 msgid ""
2454 "[db]\n"
2455 "user = \"linstor\"\n"
2456 "password = \"linstor\"\n"
2457 "connection_url = \"jdbc:postgresql://localhost/linstor\"\n"
2458 msgstr ""
2459 "[db]\n"
2460 "user = \"linstor\"\n"
2461 "password = \"linstor\"\n"
2462 "connection_url = \"jdbc:postgresql://localhost/linstor\"\n"
2463
2464 #. type: Title ====
2465 #: administration-linstor.adoc:1283
2466 #, no-wrap
2467 msgid "MariaDB/Mysql"
2468 msgstr "MariaDB/Mysql"
2469
2470 #. type: Plain text
2471 #: administration-linstor.adoc:1286
2472 msgid "MariaDB JDBC driver can be downloaded here:"
2473 msgstr "MariaDB JDBC驱动程序可在以下位置下载:"
2474
2475 #. type: Plain text
2476 #: administration-linstor.adoc:1288
2477 msgid "https://downloads.mariadb.org/connector-java/"
2478 msgstr "https://downloads.mariadb.org/connector-java/"
2479
2480 #. type: Plain text
2481 #: administration-linstor.adoc:1293
2482 msgid "A sample MariaDB `linstor.toml` looks like this:"
2483 msgstr "MariaDB `linstor.toml` 示例如下:"
2484
2485 #. type: delimited block -
2486 #: administration-linstor.adoc:1299
2487 #, no-wrap
2488 msgid ""
2489 "[db]\n"
2490 "user = \"linstor\"\n"
2491 "password = \"linstor\"\n"
2492 "connection_url = \"jdbc:mariadb://localhost/LINSTOR?createDatabaseIfNotExist=true\"\n"
2493 msgstr ""
2494 "[db]\n"
2495 "user = \"linstor\"\n"
2496 "password = \"linstor\"\n"
2497 "connection_url = \"jdbc:mariadb://localhost/LINSTOR?createDatabaseIfNotExist=true\"\n"
2498
2499 #. type: Plain text
2500 #: administration-linstor.adoc:1303
2501 msgid "The LINSTOR schema/database is created as `LINSTOR` so make sure the mariadb connection string refers to the `LINSTOR` schema, as in the example above."
2502 msgstr "LINSTOR schema/数据库被创建为 `LINSTOR`,因此请确保mariadb连接字符串引用了 `LINSTOR` schema,如上面的示例所示。"
2503
2504 #. type: Title ====
2505 #: administration-linstor.adoc:1306
2506 #, no-wrap
2507 msgid "ETCD"
2508 msgstr "ETCD"
2509
2510 #. type: Plain text
2511 #: administration-linstor.adoc:1310
2512 msgid ""
2513 "ETCD is a distributed key-value store that makes it easy to keep your LINSTOR database distributed in a HA-setup. The ETCD driver is already included in the LINSTOR-controller "
2514 "package and only needs to be configured in the `linstor.toml`."
2515 msgstr "ETCD是一个分布式键值存储,它使得在HA设置中保持LINSTOR数据库的分布式变得容易。ETCD驱动程序已经包含在LINSTOR控制器包中,只需要在 `LINSTOR.toml` 中进行配置。"
2516
2517 #. type: Plain text
2518 #: administration-linstor.adoc:1312
2519 msgid "More information on how to install and configure ETCD can be found here: https://etcd.io/docs[ETCD docs]"
2520 msgstr "有关如何安装和配置ETCD的更多信息,请访问:https://etcd.io/docs[ETCD docs]"
2521
2522 #. type: Plain text
2523 #: administration-linstor.adoc:1314
2524 msgid "And here is a sample [db] section from the `linstor.toml`:"
2525 msgstr "下面是 `linstor.toml` 中的[db]部分示例:"
2526
2527 #. type: delimited block -
2528 #: administration-linstor.adoc:1320
2529 #, no-wrap
2530 msgid ""
2531 "[db]\n"
2532 "## only set user/password if you want to use authentication, only since LINSTOR 1.2.1\n"
2533 "# user = \"linstor\"\n"
2534 "# password = \"linstor\"\n"
2535 msgstr ""
2536 "[db]\n"
2537 "## only set user/password if you want to use authentication, only since LINSTOR 1.2.1\n"
2538 "# user = \"linstor\"\n"
2539 "# password = \"linstor\"\n"
2540
2541 #. type: delimited block -
2542 #: administration-linstor.adoc:1324
2543 #, no-wrap
2544 msgid ""
2545 "## for etcd\n"
2546 "## do not set user field if no authentication required\n"
2547 "connection_url = \"etcd://etcdhost1:2379,etcdhost2:2379,etcdhost3:2379\"\n"
2548 msgstr ""
2549 "## for etcd\n"
2550 "## do not set user field if no authentication required\n"
2551 "connection_url = \"etcd://etcdhost1:2379,etcdhost2:2379,etcdhost3:2379\"\n"
2552
2553 #. type: delimited block -
2554 #: administration-linstor.adoc:1328
2555 #, no-wrap
2556 msgid ""
2557 "## if you want to use TLS, only since LINSTOR 1.2.1\n"
2558 "# ca_certificate = \"ca.pem\"\n"
2559 "# client_certificate = \"client.pem\"\n"
2560 msgstr ""
2561 "## if you want to use TLS, only since LINSTOR 1.2.1\n"
2562 "# ca_certificate = \"ca.pem\"\n"
2563 "# client_certificate = \"client.pem\"\n"
2564
2565 #. type: delimited block -
2566 #: administration-linstor.adoc:1333
2567 #, no-wrap
2568 msgid ""
2569 "## if you want to use client TLS authentication too, only since LINSTOR 1.2.1\n"
2570 "# client_key_pkcs8_pem = \"client-key.pkcs8\"\n"
2571 "## set client_key_password if private key has a password\n"
2572 "# client_key_password = \"mysecret\"\n"
2573 msgstr ""
2574 "## if you want to use client TLS authentication too, only since LINSTOR 1.2.1\n"
2575 "# client_key_pkcs8_pem = \"client-key.pkcs8\"\n"
2576 "## set client_key_password if private key has a password\n"
2577 "# client_key_password = \"mysecret\"\n"
2578
2579 #. type: Title ===
2580 #: administration-linstor.adoc:1336
2581 #, no-wrap
2582 msgid "LINSTOR REST-API"
2583 msgstr "LINSTOR REST-API"
2584
2585 #. type: Plain text
2586 #: administration-linstor.adoc:1341
2587 msgid ""
2588 "To make LINSTOR's administrative tasks more accessible and also available for web-frontends a REST-API has been created. The REST-API is embedded in the linstor-controller and "
2589 "since LINSTOR 0.9.13 configured via the the `linstor.toml` configuration file."
2590 msgstr "为了使LINSTOR的管理任务更易于访问,并且也可用于web前端,创建了REST-API。REST-API嵌入到linstor controller中,从linstor 0.9.13开始通过 `linstor.toml` 配置文件配置。"
2591
2592 #. type: delimited block -
2593 #: administration-linstor.adoc:1347
2594 #, no-wrap
2595 msgid ""
2596 "[http]\n"
2597 " enabled = true\n"
2598 " port = 3370\n"
2599 " listen_addr = 127.0.0.1 # to disable remote access\n"
2600 msgstr ""
2601 "[http]\n"
2602 " enabled = true\n"
2603 " port = 3370\n"
2604 " listen_addr = 127.0.0.1 # to disable remote access\n"
2605
2606 #. type: Plain text
2607 #: administration-linstor.adoc:1352
2608 msgid "If you want to use the REST-API the current documentation can be found on the following link: https://app.swaggerhub.com/apis-docs/Linstor/Linstor/"
2609 msgstr "如果您想使用REST-API,可以在以下链接中找到当前文档:https://app.swaggerhub.com/apis-docs/Linstor/Linstor/"
2610
2611 #. type: Title ====
2612 #: administration-linstor.adoc:1354
2613 #, no-wrap
2614 msgid "LINSTOR REST-API HTTPS"
2615 msgstr "LINSTOR REST-API HTTPS"
2616
2617 #. type: Plain text
2618 #: administration-linstor.adoc:1359
2619 msgid ""
2620 "The HTTP REST-API can also run secured by HTTPS and is highly recommended if you use any features that require authorization. Todo so you have to create a java keystore file "
2621 "with a valid certificate that will be used to encrypt all HTTPS traffic."
2622 msgstr "HTTP REST-API也可以通过HTTPS运行,如果您使用任何需要授权的功能,则强烈建议您使用它。所以你必须用一个有效的证书创建一个java密钥库文件,这个证书将用于加密所有的HTTPS通信。"
2623
2624 #. type: Plain text
2625 #: administration-linstor.adoc:1362
2626 msgid "Here is a simple example on how you can create a self signed certificate with the `keytool` that is included in the java runtime:"
2627 msgstr "下面是一个简单的示例,说明如何使用java运行时中包含的 `keytool` 创建自签名证书:"
2628
2629 #. type: delimited block -
2630 #: administration-linstor.adoc:1367
2631 #, no-wrap
2632 msgid ""
2633 "keytool -keyalg rsa -keysize 2048 -genkey -keystore ./keystore_linstor.jks\\\n"
2634 " -alias linstor_controller\\\n"
2635 " -dname \"CN=localhost, OU=SecureUnit, O=ExampleOrg, L=Vienna, ST=Austria, C=AT\"\n"
2636 msgstr ""
2637 "keytool -keyalg rsa -keysize 2048 -genkey -keystore ./keystore_linstor.jks\\\n"
2638 " -alias linstor_controller\\\n"
2639 " -dname \"CN=localhost, OU=SecureUnit, O=ExampleOrg, L=Vienna, ST=Austria, C=AT\"\n"
2640
2641 #. type: Plain text
2642 #: administration-linstor.adoc:1372
2643 msgid ""
2644 "`keytool` will ask for a password to secure the generated keystore file and is needed for the LINSTOR-controller configuration. In your `linstor.toml` file you have to add the "
2645 "following section:"
2646 msgstr "`keytool` 将要求密码来保护生成的密钥库文件,这是LINSTOR controller配置所需的。在 `linstor.toml` 文件中,必须添加以下部分:"
2647
2648 #. type: delimited block -
2649 #: administration-linstor.adoc:1377
2650 #, no-wrap
2651 msgid ""
2652 "[https]\n"
2653 " keystore = \"/path/to/keystore_linstor.jks\"\n"
2654 " keystore_password = \"linstor\"\n"
2655 msgstr ""
2656 "[https]\n"
2657 " keystore = \"/path/to/keystore_linstor.jks\"\n"
2658 " keystore_password = \"linstor\"\n"
2659
2660 #. type: Plain text
2661 #: administration-linstor.adoc:1380
2662 msgid "Now (re)start the `linstor-controller` and the HTTPS REST-API should be available on port 3371."
2663 msgstr "现在(重新)启动 `linstor controller` ,端口3371上应该可以使用HTTPS REST-API。"
2664
2665 #. type: Plain text
2666 #: administration-linstor.adoc:1383
2667 msgid "More information on how to import other certificates can be found here: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/keytool.html"
2668 msgstr "有关如何导入其他证书的更多信息,请访问:https://docs.oracle.com/javase/8/docs/technotes/tools/unix/keytool.html"
2669
2670 #. type: Plain text
2671 #: administration-linstor.adoc:1386
2672 msgid "When HTTPS is enabled, all requests to the HTTP /v1/ REST-API will be redirected to the HTTPS redirect."
2673 msgstr "当启用HTTPS时,对HTTP/v1/ REST-API的所有请求都将重定向到HTTPS重定向。"
2674
2675 #. type: Title =====
2676 #: administration-linstor.adoc:1389
2677 #, no-wrap
2678 msgid "LINSTOR REST-API HTTPS restricted client access"
2679 msgstr "LINSTOR REST-API HTTPS受限客户端访问"
2680
2681 #. type: Plain text
2682 #: administration-linstor.adoc:1394
2683 msgid ""
2684 "Client access can be restricted by using a SSL truststore on the Controller. Basically you create a certificate for your client and add it to your truststore and the client "
2685 "then uses this certificate for authentication."
2686 msgstr "可以通过在控制器上使用SSL信任库来限制客户端访问。基本上,您为您的客户机创建一个证书并将其添加到信任库中,然后客户机使用该证书进行身份验证。"
2687
2688 #. type: Plain text
2689 #: administration-linstor.adoc:1396
2690 msgid "First create a client certificate:"
2691 msgstr "首先创建客户端证书:"
2692
2693 #. type: delimited block -
2694 #: administration-linstor.adoc:1402
2695 #, no-wrap
2696 msgid ""
2697 "keytool -keyalg rsa -keysize 2048 -genkey -keystore client.jks\\\n"
2698 " -storepass linstor -keypass linstor\\\n"
2699 " -alias client1\\\n"
2700 " -dname \"CN=Client Cert, OU=client, O=Example, L=Vienna, ST=Austria, C=AT\"\n"
2701 msgstr ""
2702 "keytool -keyalg rsa -keysize 2048 -genkey -keystore client.jks\\\n"
2703 " -storepass linstor -keypass linstor\\\n"
2704 " -alias client1\\\n"
2705 " -dname \"CN=Client Cert, OU=client, O=Example, L=Vienna, ST=Austria, C=AT\"\n"
2706
2707 #. type: Plain text
2708 #: administration-linstor.adoc:1405
2709 msgid "Then we import this certificate to our controller truststore:"
2710 msgstr "然后我们将此证书导入controller信任库:"
2711
2712 #. type: delimited block -
2713 #: administration-linstor.adoc:1410
2714 #, no-wrap
2715 msgid ""
2716 "keytool -importkeystore\\\n"
2717 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
2718 " -srckeystore client.jks -destkeystore trustore_client.jks\n"
2719 msgstr ""
2720 "keytool -importkeystore\\\n"
2721 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
2722 " -srckeystore client.jks -destkeystore trustore_client.jks\n"
2723
2724 #. type: Plain text
2725 #: administration-linstor.adoc:1413
2726 msgid "And enable the truststore in the `linstor.toml` configuration file:"
2727 msgstr "并在 `linstor.toml` 配置文件中启用信任库:"
2728
2729 #. type: delimited block -
2730 #: administration-linstor.adoc:1420
2731 #, no-wrap
2732 msgid ""
2733 "[https]\n"
2734 " keystore = \"/path/to/keystore_linstor.jks\"\n"
2735 " keystore_password = \"linstor\"\n"
2736 " truststore = \"/path/to/trustore_client.jks\"\n"
2737 " truststore_password = \"linstor\"\n"
2738 msgstr ""
2739 "[https]\n"
2740 " keystore = \"/path/to/keystore_linstor.jks\"\n"
2741 " keystore_password = \"linstor\"\n"
2742 " truststore = \"/path/to/trustore_client.jks\"\n"
2743 " truststore_password = \"linstor\"\n"
2744
2745 #. type: Plain text
2746 #: administration-linstor.adoc:1424
2747 msgid "Now restart the Controller and it will no longer be possible to access the controller API without a correct certificate."
2748 msgstr "现在重新启动controller,如果没有正确的证书,将无法再访问控制器API。"
2749
2750 #. type: Plain text
2751 #: administration-linstor.adoc:1427
2752 msgid "The LINSTOR client needs the certificate in PEM format, so before we can use it we have to convert the java keystore certificate to the PEM format."
2753 msgstr "LINSTOR客户机需要PEM格式的证书,因此在使用之前,我们必须将java密钥库证书转换为PEM格式。"
2754
2755 #. type: delimited block -
2756 #: administration-linstor.adoc:1433
2757 #, no-wrap
2758 msgid ""
2759 "# Convert to pkcs12\n"
2760 "keytool -importkeystore -srckeystore client.jks -destkeystore client.p12\\\n"
2761 " -storepass linstor -keypass linstor\\\n"
2762 " -srcalias client1 -srcstoretype jks -deststoretype pkcs12\n"
2763 msgstr ""
2764 "# Convert to pkcs12\n"
2765 "keytool -importkeystore -srckeystore client.jks -destkeystore client.p12\\\n"
2766 " -storepass linstor -keypass linstor\\\n"
2767 " -srcalias client1 -srcstoretype jks -deststoretype pkcs12\n"
2768
2769 #. type: delimited block -
2770 #: administration-linstor.adoc:1436
2771 #, no-wrap
2772 msgid ""
2773 "# use openssl to convert to PEM\n"
2774 "openssl pkcs12 -in client.p12 -out client_with_pass.pem\n"
2775 msgstr ""
2776 "# use openssl to convert to PEM\n"
2777 "openssl pkcs12 -in client.p12 -out client_with_pass.pem\n"
2778
2779 #. type: Plain text
2780 #: administration-linstor.adoc:1439
2781 msgid "To avoid entering the PEM file password all the time it might be convenient to remove the password."
2782 msgstr "为了避免一直输入PEM文件密码,可以方便地删除密码。"
2783
2784 #. type: delimited block -
2785 #: administration-linstor.adoc:1443
2786 #, no-wrap
2787 msgid ""
2788 "openssl rsa -in client_with_pass.pem -out client1.pem\n"
2789 "openssl x509 -in client_with_pass.pem >> client1.pem\n"
2790 msgstr ""
2791 "openssl rsa -in client_with_pass.pem -out client1.pem\n"
2792 "openssl x509 -in client_with_pass.pem >> client1.pem\n"
2793
2794 #. type: Plain text
2795 #: administration-linstor.adoc:1446
2796 msgid "Now this PEM file can easily be used in the client:"
2797 msgstr "现在,这个PEM文件可以很容易地在客户端使用:"
2798
2799 #. type: delimited block -
2800 #: administration-linstor.adoc:1449
2801 #, no-wrap
2802 msgid "linstor --certfile client1.pem node list\n"
2803 msgstr "linstor --certfile client1.pem node list\n"
2804
2805 #. type: Plain text
2806 #: administration-linstor.adoc:1454
2807 msgid "The `--certfile` parameter can also added to the client configuration file, see <<s-using_the_linstor_client>> for more details."
2808 msgstr "`--certfile` 参数也可以添加到客户端配置文件中,有关详细信息,请参见<<s-using_the_linstor_client>>。"
2809
2810 #. type: Title ===
2811 #: administration-linstor.adoc:1457
2812 #, no-wrap
2813 msgid "Logging"
2814 msgstr "Logging"
2815
2816 #. type: Plain text
2817 #: administration-linstor.adoc:1463
2818 msgid ""
2819 "Linstor uses https://www.slf4j.org/[SLF4J] with https://logback.qos.ch/[Logback] as binding. This gives Linstor the possibilty to distinguish between the log levels `ERROR`, "
2820 "`WARN`, `INFO`, `DEBUG` and `TRACE` (in order of increasing verbosity). In the current linstor version (1.1.2) the user has the following four methods to control the logging "
2821 "level, ordered by priority (first has highest priority):"
2822 msgstr ""
2823 "Linstor使用 https://www.slf4j.org/[SLF4J] 和 https://logback.qos.ch/[Logback] 作为绑定。这使Linstor能够区分日志级别 `ERROR`、 `WARN` 、 `INFO` 、 `DEBUG` 和 `TRACE` (为了增加详"
2824 "细程度)。在当前的linstor版本(1.1.2)中,用户有以下四种方法控制日志记录级别,按优先级排序(第一种方法具有最高优先级):"
2825
2826 #. type: Plain text
2827 #: administration-linstor.adoc:1466
2828 msgid "`TRACE` mode can be `enabled` or `disabled` using the debug console:"
2829 msgstr "`TRACE` mode可以使用调试控制台, 通过 `enabled` 或 `disabled` 分别指明:"
2830
2831 #. type: delimited block -
2832 #: administration-linstor.adoc:1471
2833 #, no-wrap
2834 msgid ""
2835 "Command ==> SetTrcMode MODE(enabled)\n"
2836 "SetTrcMode Set TRACE level logging mode\n"
2837 "New TRACE level logging mode: ENABLED\n"
2838 msgstr ""
2839 "Command ==> SetTrcMode MODE(enabled)\n"
2840 "SetTrcMode Set TRACE level logging mode\n"
2841 "New TRACE level logging mode: ENABLED\n"
2842
2843 #. type: Plain text
2844 #: administration-linstor.adoc:1474
2845 msgid "When starting the controller or satellite a command line argument can be passed:"
2846 msgstr "启动controller或satellite时,可以传递命令行参数:"
2847
2848 #. type: delimited block -
2849 #: administration-linstor.adoc:1478
2850 #, no-wrap
2851 msgid ""
2852 "java ... com.linbit.linstor.core.Controller ... --log-level INFO\n"
2853 "java ... com.linbit.linstor.core.Satellite ... --log-level INFO\n"
2854 msgstr ""
2855 "java ... com.linbit.linstor.core.Controller ... --log-level INFO\n"
2856 "java ... com.linbit.linstor.core.Satellite ... --log-level INFO\n"
2857
2858 #. type: Plain text
2859 #: administration-linstor.adoc:1481
2860 msgid "The recommended place is the `logging` section in the `/etc/linstor/linstor.toml` file:"
2861 msgstr "建议放在 `/etc/linstor/linstor.toml` 文件中的 `logging` 部分:"
2862
2863 #. type: delimited block -
2864 #: administration-linstor.adoc:1485
2865 #, no-wrap
2866 msgid ""
2867 "[logging]\n"
2868 " level=\"INFO\"\n"
2869 msgstr ""
2870 "[logging]\n"
2871 " level=\"INFO\"\n"
2872
2873 #. type: Plain text
2874 #: administration-linstor.adoc:1490
2875 msgid ""
2876 "As Linstor is using Logback as an implementation, `/usr/share/linstor-server/lib/logback.xml` can also be used. Currently only this approach supports different log levels for "
2877 "different components, like shown in the example below:"
2878 msgstr "由于Linstor使用Logback作为实现,还可以使用 `/usr/share/Linstor server/lib/Logback.xml` 。目前只有这种方法支持不同组件的不同日志级别,如下例所示:"
2879
2880 #. type: delimited block -
2881 #: administration-linstor.adoc:1533
2882 #, no-wrap
2883 msgid ""
2884 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
2885 "<configuration scan=\"false\" scanPeriod=\"60 seconds\">\n"
2886 "<!--\n"
2887 " Values for scanPeriod can be specified in units of milliseconds, seconds, minutes or hours\n"
2888 " https://logback.qos.ch/manual/configuration.html\n"
2889 "-->\n"
2890 " <appender name=\"STDOUT\" class=\"ch.qos.logback.core.ConsoleAppender\">\n"
2891 " <!-- encoders are assigned the type\n"
2892 " ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->\n"
2893 " <encoder>\n"
2894 " <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>\n"
2895 " </encoder>\n"
2896 " </appender>\n"
2897 " <appender name=\"FILE\" class=\"ch.qos.logback.core.rolling.RollingFileAppender\">\n"
2898 " <file>${log.directory}/linstor-${log.module}.log</file>\n"
2899 " <append>true</append>\n"
2900 " <encoder class=\"ch.qos.logback.classic.encoder.PatternLayoutEncoder\">\n"
2901 " <Pattern>%d{yyyy_MM_dd HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</Pattern>\n"
2902 " </encoder>\n"
2903 " <rollingPolicy class=\"ch.qos.logback.core.rolling.FixedWindowRollingPolicy\">\n"
2904 " <FileNamePattern>logs/linstor-${log.module}.%i.log.zip</FileNamePattern>\n"
2905 " <MinIndex>1</MinIndex>\n"
2906 " <MaxIndex>10</MaxIndex>\n"
2907 " </rollingPolicy>\n"
2908 " <triggeringPolicy class=\"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy\">\n"
2909 " <MaxFileSize>2MB</MaxFileSize>\n"
2910 " </triggeringPolicy>\n"
2911 " </appender>\n"
2912 " <logger name=\"LINSTOR/Controller\" level=\"INFO\" additivity=\"false\">\n"
2913 " <appender-ref ref=\"STDOUT\" />\n"
2914 " <!-- <appender-ref ref=\"FILE\" /> -->\n"
2915 " </logger>\n"
2916 " <logger name=\"LINSTOR/Satellite\" level=\"INFO\" additivity=\"false\">\n"
2917 " <appender-ref ref=\"STDOUT\" />\n"
2918 " <!-- <appender-ref ref=\"FILE\" /> -->\n"
2919 " </logger>\n"
2920 " <root level=\"WARN\">\n"
2921 " <appender-ref ref=\"STDOUT\" />\n"
2922 " <!-- <appender-ref ref=\"FILE\" /> -->\n"
2923 " </root>\n"
2924 "</configuration>\n"
2925 msgstr ""
2926 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
2927 "<configuration scan=\"false\" scanPeriod=\"60 seconds\">\n"
2928 "<!--\n"
2929 " Values for scanPeriod can be specified in units of milliseconds, seconds, minutes or hours\n"
2930 " https://logback.qos.ch/manual/configuration.html\n"
2931 "-->\n"
2932 " <appender name=\"STDOUT\" class=\"ch.qos.logback.core.ConsoleAppender\">\n"
2933 " <!-- encoders are assigned the type\n"
2934 " ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->\n"
2935 " <encoder>\n"
2936 " <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>\n"
2937 " </encoder>\n"
2938 " </appender>\n"
2939 " <appender name=\"FILE\" class=\"ch.qos.logback.core.rolling.RollingFileAppender\">\n"
2940 " <file>${log.directory}/linstor-${log.module}.log</file>\n"
2941 " <append>true</append>\n"
2942 " <encoder class=\"ch.qos.logback.classic.encoder.PatternLayoutEncoder\">\n"
2943 " <Pattern>%d{yyyy_MM_dd HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</Pattern>\n"
2944 " </encoder>\n"
2945 " <rollingPolicy class=\"ch.qos.logback.core.rolling.FixedWindowRollingPolicy\">\n"
2946 " <FileNamePattern>logs/linstor-${log.module}.%i.log.zip</FileNamePattern>\n"
2947 " <MinIndex>1</MinIndex>\n"
2948 " <MaxIndex>10</MaxIndex>\n"
2949 " </rollingPolicy>\n"
2950 " <triggeringPolicy class=\"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy\">\n"
2951 " <MaxFileSize>2MB</MaxFileSize>\n"
2952 " </triggeringPolicy>\n"
2953 " </appender>\n"
2954 " <logger name=\"LINSTOR/Controller\" level=\"INFO\" additivity=\"false\">\n"
2955 " <appender-ref ref=\"STDOUT\" />\n"
2956 " <!-- <appender-ref ref=\"FILE\" /> -->\n"
2957 " </logger>\n"
2958 " <logger name=\"LINSTOR/Satellite\" level=\"INFO\" additivity=\"false\">\n"
2959 " <appender-ref ref=\"STDOUT\" />\n"
2960 " <!-- <appender-ref ref=\"FILE\" /> -->\n"
2961 " </logger>\n"
2962 " <root level=\"WARN\">\n"
2963 " <appender-ref ref=\"STDOUT\" />\n"
2964 " <!-- <appender-ref ref=\"FILE\" /> -->\n"
2965 " </root>\n"
2966 "</configuration>\n"
2967
2968 #. type: Plain text
2969 #: administration-linstor.adoc:1536
2970 msgid "See the https://logback.qos.ch/manual/index.html[Logback Manual] to find more details about `logback.xml`."
2971 msgstr "有关 `logback.xml` 的更多详细信息,请参见https://logback.qos.ch/manual/index.html[Logback Manual]。"
2972
2973 #. type: Plain text
2974 #: administration-linstor.adoc:1539
2975 msgid "When none of the configuration methods above is used Linstor will default to `INFO` log level."
2976 msgstr "如果没有使用上述任何配置方法,Linstor将默认为 `INFO` 日志级别。"
2977
2978 #. type: Title ===
2979 #: administration-linstor.adoc:1542
2980 #, no-wrap
2981 msgid "Secure Satellite connections"
2982 msgstr "安全Satellite连接"
2983
2984 #. type: Plain text
2985 #: administration-linstor.adoc:1549
2986 msgid ""
2987 "It is possible to have the LINSTOR use SSL secure TCP connection between controller and satellite connections. Without going into further details on how java's SSL engine "
2988 "works we will give you command line snippets using the `keytool` from java's runtime environment on how to configure a 3 node setup using secure connections. The node setup "
2989 "looks like this:"
2990 msgstr ""
2991 "可以让LINSTOR在controller和satellites连接之间使用SSL安全TCP连接。在不深入讨论java的SSL引擎如何工作的情况下,我们将向您提供使用java运行时环境中的 `keytool` 的命令行片段,介绍如何"
2992 "使用安全连接配置3节点设置。节点设置如下所示:"
2993
2994 #. type: Plain text
2995 #: administration-linstor.adoc:1552
2996 msgid "Node `alpha` is the just the controller. Node `bravo` and node `charlie` are just satellites."
2997 msgstr "节点 `alpha` 只充当controller。节点 `bravo` 和节点 `charlie` 只充当卫星。"
2998
2999 #. type: Plain text
3000 #: administration-linstor.adoc:1556
3001 msgid "Here are the commands to generate such a keystore setup, values should of course be edited for your environment."
3002 msgstr "下面是生成这样一个密钥库设置的命令,当然你应该根据您的环境编辑值。"
3003
3004 #. type: delimited block -
3005 #: administration-linstor.adoc:1562
3006 #, no-wrap
3007 msgid ""
3008 "# create directories to hold the key files\n"
3009 "mkdir -p /tmp/linstor-ssl\n"
3010 "cd /tmp/linstor-ssl\n"
3011 "mkdir alpha bravo charlie\n"
3012 msgstr ""
3013 "# create directories to hold the key files\n"
3014 "mkdir -p /tmp/linstor-ssl\n"
3015 "cd /tmp/linstor-ssl\n"
3016 "mkdir alpha bravo charlie\n"
3017
3018 #. type: delimited block -
3019 #: administration-linstor.adoc:1569
3020 #, no-wrap
3021 msgid ""
3022 "# create private keys for all nodes\n"
3023 "keytool -keyalg rsa -keysize 2048 -genkey -keystore alpha/keystore.jks\\\n"
3024 " -storepass linstor -keypass linstor\\\n"
3025 " -alias alpha\\\n"
3026 " -dname \"CN=Max Mustermann, OU=alpha, O=Example, L=Vienna, ST=Austria, C=AT\"\n"
3027 msgstr ""
3028 "# create private keys for all nodes\n"
3029 "keytool -keyalg rsa -keysize 2048 -genkey -keystore alpha/keystore.jks\\\n"
3030 " -storepass linstor -keypass linstor\\\n"
3031 " -alias alpha\\\n"
3032 " -dname \"CN=Max Mustermann, OU=alpha, O=Example, L=Vienna, ST=Austria, C=AT\"\n"
3033
3034 #. type: delimited block -
3035 #: administration-linstor.adoc:1574
3036 #, no-wrap
3037 msgid ""
3038 "keytool -keyalg rsa -keysize 2048 -genkey -keystore bravo/keystore.jks\\\n"
3039 " -storepass linstor -keypass linstor\\\n"
3040 " -alias bravo\\\n"
3041 " -dname \"CN=Max Mustermann, OU=bravo, O=Example, L=Vienna, ST=Austria, C=AT\"\n"
3042 msgstr ""
3043 "keytool -keyalg rsa -keysize 2048 -genkey -keystore bravo/keystore.jks\\\n"
3044 " -storepass linstor -keypass linstor\\\n"
3045 " -alias bravo\\\n"
3046 " -dname \"CN=Max Mustermann, OU=bravo, O=Example, L=Vienna, ST=Austria, C=AT\"\n"
3047
3048 #. type: delimited block -
3049 #: administration-linstor.adoc:1579
3050 #, no-wrap
3051 msgid ""
3052 "keytool -keyalg rsa -keysize 2048 -genkey -keystore charlie/keystore.jks\\\n"
3053 " -storepass linstor -keypass linstor\\\n"
3054 " -alias charlie\\\n"
3055 " -dname \"CN=Max Mustermann, OU=charlie, O=Example, L=Vienna, ST=Austria, C=AT\"\n"
3056 msgstr ""
3057 "keytool -keyalg rsa -keysize 2048 -genkey -keystore charlie/keystore.jks\\\n"
3058 " -storepass linstor -keypass linstor\\\n"
3059 " -alias charlie\\\n"
3060 " -dname \"CN=Max Mustermann, OU=charlie, O=Example, L=Vienna, ST=Austria, C=AT\"\n"
3061
3062 #. type: delimited block -
3063 #: administration-linstor.adoc:1584
3064 #, no-wrap
3065 msgid ""
3066 "# import truststore certificates for alpha (needs all satellite certificates)\n"
3067 "keytool -importkeystore\\\n"
3068 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
3069 " -srckeystore bravo/keystore.jks -destkeystore alpha/certificates.jks\n"
3070 msgstr ""
3071 "# import truststore certificates for alpha (needs all satellite certificates)\n"
3072 "keytool -importkeystore\\\n"
3073 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
3074 " -srckeystore bravo/keystore.jks -destkeystore alpha/certificates.jks\n"
3075
3076 #. type: delimited block -
3077 #: administration-linstor.adoc:1588
3078 #, no-wrap
3079 msgid ""
3080 "keytool -importkeystore\\\n"
3081 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
3082 " -srckeystore charlie/keystore.jks -destkeystore alpha/certificates.jks\n"
3083 msgstr ""
3084 "keytool -importkeystore\\\n"
3085 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
3086 " -srckeystore charlie/keystore.jks -destkeystore alpha/certificates.jks\n"
3087
3088 #. type: delimited block -
3089 #: administration-linstor.adoc:1593
3090 #, no-wrap
3091 msgid ""
3092 "# import controller certificate into satellite truststores\n"
3093 "keytool -importkeystore\\\n"
3094 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
3095 " -srckeystore alpha/keystore.jks -destkeystore bravo/certificates.jks\n"
3096 msgstr ""
3097 "# import controller certificate into satellite truststores\n"
3098 "keytool -importkeystore\\\n"
3099 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
3100 " -srckeystore alpha/keystore.jks -destkeystore bravo/certificates.jks\n"
3101
3102 #. type: delimited block -
3103 #: administration-linstor.adoc:1597
3104 #, no-wrap
3105 msgid ""
3106 "keytool -importkeystore\\\n"
3107 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
3108 " -srckeystore alpha/keystore.jks -destkeystore charlie/certificates.jks\n"
3109 msgstr ""
3110 "keytool -importkeystore\\\n"
3111 " -srcstorepass linstor -deststorepass linstor -keypass linstor\\\n"
3112 " -srckeystore alpha/keystore.jks -destkeystore charlie/certificates.jks\n"
3113
3114 #. type: delimited block -
3115 #: administration-linstor.adoc:1605
3116 #, no-wrap
3117 msgid ""
3118 "# now copy the keystore files to their host destinations\n"
3119 "ssh root@alpha mkdir /etc/linstor/ssl\n"
3120 "scp alpha/* root@alpha:/etc/linstor/ssl/\n"
3121 "ssh root@bravo mkdir /etc/linstor/ssl\n"
3122 "scp bravo/* root@bravo:/etc/linstor/ssl/\n"
3123 "ssh root@charlie mkdir /etc/linstor/ssl\n"
3124 "scp charlie/* root@charlie:/etc/linstor/ssl/\n"
3125 msgstr ""
3126 "# now copy the keystore files to their host destinations\n"
3127 "ssh root@alpha mkdir /etc/linstor/ssl\n"
3128 "scp alpha/* root@alpha:/etc/linstor/ssl/\n"
3129 "ssh root@bravo mkdir /etc/linstor/ssl\n"
3130 "scp bravo/* root@bravo:/etc/linstor/ssl/\n"
3131 "ssh root@charlie mkdir /etc/linstor/ssl\n"
3132 "scp charlie/* root@charlie:/etc/linstor/ssl/\n"
3133
3134 #. type: delimited block -
3135 #: administration-linstor.adoc:1617
3136 #, no-wrap
3137 msgid ""
3138 "# generate the satellite ssl config entry\n"
3139 "echo '[netcom]\n"
3140 " type=\"ssl\"\n"
3141 " port=3367\n"
3142 " server_certificate=\"ssl/keystore.jks\"\n"
3143 " trusted_certificates=\"ssl/certificates.jks\"\n"
3144 " key_password=\"linstor\"\n"
3145 " keystore_password=\"linstor\"\n"
3146 " truststore_password=\"linstor\"\n"
3147 " ssl_protocol=\"TLSv1.2\"\n"
3148 "' | ssh root@bravo \"cat > /etc/linstor/linstor_satellite.toml\"\n"
3149 msgstr ""
3150 "# generate the satellite ssl config entry\n"
3151 "echo '[netcom]\n"
3152 " type=\"ssl\"\n"
3153 " port=3367\n"
3154 " server_certificate=\"ssl/keystore.jks\"\n"
3155 " trusted_certificates=\"ssl/certificates.jks\"\n"
3156 " key_password=\"linstor\"\n"
3157 " keystore_password=\"linstor\"\n"
3158 " truststore_password=\"linstor\"\n"
3159 " ssl_protocol=\"TLSv1.2\"\n"
3160 "' | ssh root@bravo \"cat > /etc/linstor/linstor_satellite.toml\"\n"
3161
3162 #. type: delimited block -
3163 #: administration-linstor.adoc:1628
3164 #, no-wrap
3165 msgid ""
3166 "echo '[netcom]\n"
3167 " type=\"ssl\"\n"
3168 " port=3367\n"
3169 " server_certificate=\"ssl/keystore.jks\"\n"
3170 " trusted_certificates=\"ssl/certificates.jks\"\n"
3171 " key_password=\"linstor\"\n"
3172 " keystore_password=\"linstor\"\n"
3173 " truststore_password=\"linstor\"\n"
3174 " ssl_protocol=\"TLSv1.2\"\n"
3175 "' | ssh root@charlie \"cat > /etc/linstor/linstor_satellite.toml\"\n"
3176 msgstr ""
3177 "echo '[netcom]\n"
3178 " type=\"ssl\"\n"
3179 " port=3367\n"
3180 " server_certificate=\"ssl/keystore.jks\"\n"
3181 " trusted_certificates=\"ssl/certificates.jks\"\n"
3182 " key_password=\"linstor\"\n"
3183 " keystore_password=\"linstor\"\n"
3184 " truststore_password=\"linstor\"\n"
3185 " ssl_protocol=\"TLSv1.2\"\n"
3186 "' | ssh root@charlie \"cat > /etc/linstor/linstor_satellite.toml\"\n"
3187
3188 #. type: Plain text
3189 #: administration-linstor.adoc:1631
3190 msgid "Now just start controller and satellites and add the nodes with `--communication-type SSL`."
3191 msgstr "现在只需启动controller和satellites,并添加带有 `--通信类型SSL` 的节点。"
3192
3193 #. type: Title ===
3194 #: administration-linstor.adoc:1633
3195 #, no-wrap
3196 msgid "AutoQuorum Policies"
3197 msgstr "自动仲裁策略"
3198
3199 #. type: Plain text
3200 #: administration-linstor.adoc:1640
3201 msgid ""
3202 "LINSTOR automatically configures quorum policies on resources *when quorum is achievable*. This means, whenever you have at least two diskful and one or more diskless resource "
3203 "assignments, or three or more diskful resource assignments, LINSTOR will enable quorum policies for your resources automatically."
3204 msgstr ""
3205 "LINSTOR在资源上自动配置仲裁策略 *当仲裁可实现时* 。这意味着,每当您有至少两个磁盘和一个或多个无磁盘资源分配,或三个或多个磁盘资源分配时,LINSTOR将自动为您的资源启用仲裁策略。"
3206
3207 #. type: Plain text
3208 #: administration-linstor.adoc:1644
3209 msgid "Inversely, LINSTOR will automatically disable quorum policies whenever there are less than the minimum required resource assignments to achieve quorum."
3210 msgstr "相反,当达到仲裁所需的资源分配少于最小值时,LINSTOR将自动禁用仲裁策略。"
3211
3212 #. type: Plain text
3213 #: administration-linstor.adoc:1650
3214 msgid ""
3215 "This is controlled via the, `DrbdOptions/auto-quorum`, property which can be applied to the _linstor-controller_, _resource-group_, and _resource-definition_. Accepted values "
3216 "for the `DrbdOptions/auto-quorum` property are `disabled`, `suspend-io`, and `io-error`."
3217 msgstr ""
3218 "这是通过 `DrbdOptions/auto-quorum` 属性控制的,该属性可应用于 `linstor-controller` 、 `resource-group` 和 `resource-definition` 。 `DrbdOptions/auto-quorum`, 属性的接受值为 "
3219 "`disabled` 、 `suspend io` 和 `io error` 。"
3220
3221 #. type: Plain text
3222 #: administration-linstor.adoc:1654
3223 msgid ""
3224 "Setting the `DrbdOptions/auto-quorum` property to `disabled` will allow you to manually, or more granularly, control the quorum policies of your resources should you so desire."
3225 msgstr "将 `DrbdOptions/auto-quorum` 属性设置为 `disabled` 将允许您手动或更细粒度地控制资源的仲裁策略(如果您愿意)。"
3226
3227 #. type: Plain text
3228 #: administration-linstor.adoc:1659
3229 msgid ""
3230 "The default policies for `DrbdOptions/auto-quorum` are `quorum majority`, and `on-no-quorum io-error`. For more information on DRBD's quorum features and their behavior, please "
3231 "refer to the {url-drbd-ug}#s-feature-quorum[quorum section of the DRBD user's guide]."
3232 msgstr ""
3233 "`DrbdOptions/auto-quorum` 的默认策略是 `quorum-most` 和 `on-no-quorum io-error` 。有关DRBD的仲裁功能及其行为的更多信息,请参阅 {url-drbd-ug}#s-feature-quorum[quorum section of "
3234 "the DRBD user's guide]."
3235
3236 #. type: Plain text
3237 #: administration-linstor.adoc:1662
3238 msgid "The `DrbdOptions/auto-quorum` policies will override any manually configured properties if `DrbdOptions/auto-quorum` is not disabled."
3239 msgstr "如果未禁用 `DrbdOptions/auto-quorum` ,则 `DrbdOptions/auto-quorum` 策略将覆盖任何手动配置的属性。"
3240
3241 #. type: Plain text
3242 #: administration-linstor.adoc:1665
3243 msgid "For example, to manually set the quorum policies of a _resource-group_ named `my_ssd_group`, you would use the following commands:"
3244 msgstr "例如,要手动设置名为 `my_ssd_group` 的 _resource-group_ 的仲裁策略,可以使用以下命令:"
3245
3246 #. type: delimited block -
3247 #: administration-linstor.adoc:1670
3248 #, no-wrap
3249 msgid ""
3250 "# linstor resource-group set-property my_ssd_group DrbdOptions/auto-quorum disabled\n"
3251 "# linstor resource-group set-property my_ssd_group DrbdOptions/Resource/quorum majority\n"
3252 "# linstor resource-group set-property my_ssd_group DrbdOptions/Resource/on-no-quorum suspend-io\n"
3253 msgstr ""
3254 "# linstor resource-group set-property my_ssd_group DrbdOptions/auto-quorum disabled\n"
3255 "# linstor resource-group set-property my_ssd_group DrbdOptions/Resource/quorum majority\n"
3256 "# linstor resource-group set-property my_ssd_group DrbdOptions/Resource/on-no-quorum suspend-io\n"
3257
3258 #. type: Plain text
3259 #: administration-linstor.adoc:1677
3260 msgid ""
3261 "You may wish to disable DRBD's quorum features completely. To do that, you would need to first disable `DrbdOptions/auto-quorum` on the appropriate LINSTOR object, and then set "
3262 "the DRBD quorum features accordingly. For example, use the following commands to disable quorum entirely on the `my_ssd_group` _resource-group_:"
3263 msgstr ""
3264 "您可能希望完全禁用DRBD的仲裁功能。要做到这一点,首先需要在适当的LINSTOR对象上禁用'DrbdOptions/auto-quorum',然后相应地设置DRBD quorum特性。例如,使用以下命令完全禁用 "
3265 "`my_ssd_group` 的 _resource-group_ 上的仲裁:"
3266
3267 #. type: delimited block -
3268 #: administration-linstor.adoc:1682
3269 #, no-wrap
3270 msgid ""
3271 "# linstor resource-group set-property my_ssd_group DrbdOptions/auto-quorum disabled\n"
3272 "# linstor resource-group set-property my_ssd_group DrbdOptions/Resource/quorum off\n"
3273 "# linstor resource-group set-property my_ssd_group DrbdOptions/Resource/on-no-quorum\n"
3274 msgstr ""
3275 "# linstor resource-group set-property my_ssd_group DrbdOptions/auto-quorum disabled\n"
3276 "# linstor resource-group set-property my_ssd_group DrbdOptions/Resource/quorum off\n"
3277 "# linstor resource-group set-property my_ssd_group DrbdOptions/Resource/on-no-quorum\n"
3278
3279 #. type: Plain text
3280 #: administration-linstor.adoc:1686
3281 msgid "Setting `DrbdOptions/Resource/on-no-quorum` to an empty value in the commands above deletes the property from the object entirely."
3282 msgstr "在上面的命令中将 `DrbdOptions/Resource/on-no-quorum` 设置为空值将完全从对象中删除该属性。"
3283
3284 #. type: Title ===
3285 #: administration-linstor.adoc:1688
3286 #, no-wrap
3287 msgid "QoS Settings"
3288 msgstr "QoS设置"
3289
3290 #. type: Title ====
3291 #: administration-linstor.adoc:1689
3292 #, no-wrap
3293 msgid "Sysfs"
3294 msgstr "系统"
3295
3296 #. type: Plain text
3297 #: administration-linstor.adoc:1692
3298 msgid "LINSTOR is able to set the following Sysfs settings:"
3299 msgstr "LINSTOR能够设置以下Sysfs设置:"
3300
3301 #. type: Table
3302 #: administration-linstor.adoc:1699
3303 #, no-wrap
3304 msgid ""
3305 "| SysFs | Linstor property\n"
3306 "\n"
3307 "| `/sys/fs/cgroup/blkio/blkio.throttle.read_bps_device` | `sys/fs/blkio_throttle_read`\n"
3308 "| `/sys/fs/cgroup/blkio/blkio.throttle.write_bps_device` | `sys/fs/blkio_throttle_write`\n"
3309 msgstr ""
3310 "| SysFs | Linstor property\n"
3311 "\n"
3312 "| `/sys/fs/cgroup/blkio/blkio.throttle.read_bps_device` | `sys/fs/blkio_throttle_read`\n"
3313 "| `/sys/fs/cgroup/blkio/blkio.throttle.write_bps_device` | `sys/fs/blkio_throttle_write`\n"
3314
3315 #. type: Plain text
3316 #: administration-linstor.adoc:1705
3317 msgid ""
3318 "If a LINSTOR volume is composed of multiple \"stacked\" volume (for example DRBD with external metadata will have 3 devices: backing (storage) device, metadata device and the "
3319 "resulting DRBD device), setting a `sys/fs/\\*` property for a Volume, **all** affected devices will receive the corresponding `/sys/fs/cgroup/...` setting"
3320 msgstr ""
3321 "如果LINSTOR卷由多个 \"堆叠\" 卷组成(例如带有外部元数据的DRBD将有3个设备:备份(存储)设备、元数据设备和生成的DRBD设备),为卷设置 `sys/fs/\\*` 属性,**所有** 受影响的设备将收到"
3322 "相应的 `/sys/fs/cgroup/...` 设置"
3323
3324 #. type: Title ===
3325 #: administration-linstor.adoc:1707
3326 #, no-wrap
3327 msgid "Getting help"
3328 msgstr "得到帮助"
3329
3330 #. type: Title ====
3331 #: administration-linstor.adoc:1708
3332 #, no-wrap
3333 msgid "From the command line"
3334 msgstr "从命令行"
3335
3336 #. type: Plain text
3337 #: administration-linstor.adoc:1711
3338 msgid "A quick way to list available commands on the command line is to type `linstor`."
3339 msgstr "在命令行中列出可用命令的一种快速方法是键入 `linstor` 。"
3340
3341 #. type: Plain text
3342 #: administration-linstor.adoc:1714
3343 msgid "Further information on subcommands (e.g., list-nodes) can be retrieved in two ways:"
3344 msgstr "有关子命令(例如列表节点)的更多信息可以通过两种方式检索:"
3345
3346 #. type: delimited block -
3347 #: administration-linstor.adoc:1718
3348 #, no-wrap
3349 msgid ""
3350 "# linstor node list -h\n"
3351 "# linstor help node list\n"
3352 msgstr ""
3353 "# linstor node list -h\n"
3354 "# linstor help node list\n"
3355
3356 #. type: Plain text
3357 #: administration-linstor.adoc:1722
3358 msgid "Using the 'help' subcommand is especially helpful when LINSTOR is executed in interactive mode (`linstor interactive`)."
3359 msgstr "当LINSTOR以交互模式(`LINSTOR interactive`)执行时,使用 `help` 子命令尤其有用。"
3360
3361 #. type: Plain text
3362 #: administration-linstor.adoc:1727
3363 msgid ""
3364 "One of the most helpful features of LINSTOR is its rich tab-completion, which can be used to complete basically every object LINSTOR knows about (e.g., node names, IP "
3365 "addresses, resource names, ...). In the following examples, we show some possible completions, and their results:"
3366 msgstr ""
3367 "LINSTOR最有用的特性之一是它丰富的tab-completion,它基本上可以用来完成LINSTOR所知道的每个对象(例如,节点名、IP地址、资源名等等)。在下面的示例中,我们将展示一些可能的完成及其结"
3368 "果:"
3369
3370 #. type: delimited block -
3371 #: administration-linstor.adoc:1731
3372 #, no-wrap
3373 msgid ""
3374 "# linstor node create alpha 1<tab> # completes the IP address if hostname can be resolved\n"
3375 "# linstor resource create b<tab> c<tab> # linstor assign-resource backups charlie\n"
3376 msgstr ""
3377 "# linstor node create alpha 1<tab> # completes the IP address if hostname can be resolved\n"
3378 "# linstor resource create b<tab> c<tab> # linstor assign-resource backups charlie\n"
3379
3380 #. type: Plain text
3381 #: administration-linstor.adoc:1735
3382 msgid "If tab-completion does not work out of the box, please try to source the appropriate file:"
3383 msgstr "如果制表符完成不正常,请尝试获取相应的文件:"
3384
3385 #. type: delimited block -
3386 #: administration-linstor.adoc:1739
3387 #, no-wrap
3388 msgid ""
3389 "# source /etc/bash_completion.d/linstor # or\n"
3390 "# source /usr/share/bash_completion/completions/linstor\n"
3391 msgstr ""
3392 "# source /etc/bash_completion.d/linstor # or\n"
3393 "# source /usr/share/bash_completion/completions/linstor\n"
3394
3395 #. type: Plain text
3396 #: administration-linstor.adoc:1743
3397 msgid "For zsh shell users linstor-client can generate a zsh compilation file, that has basic support for command and argument completion."
3398 msgstr "对于zsh shell用户,linstor客户机可以生成一个zsh编译文件,该文件基本上支持命令和参数完成。"
3399
3400 #. type: delimited block -
3401 #: administration-linstor.adoc:1746
3402 #, no-wrap
3403 msgid "# linstor gen-zsh-completer > /usr/share/zsh/functions/Completion/Linux/_linstor\n"
3404 msgstr "# linstor gen-zsh-completer > /usr/share/zsh/functions/Completion/Linux/_linstor\n"
3405
3406 #. type: Title ====
3407 #: administration-linstor.adoc:1748
3408 #, no-wrap
3409 msgid "From the community"
3410 msgstr "来自社区"
3411
3412 #. type: Plain text
3413 #: administration-linstor.adoc:1750
3414 msgid "For help from the community please subscribe to our mailing list located here: https://lists.linbit.com/listinfo/drbd-user"
3415 msgstr "如需社区帮助,请订阅我们的邮件列表: https://lists.linbit.com/listinfo/drbd-user"
3416
3417 #. type: Title ====
3418 #: administration-linstor.adoc:1751
3419 #, no-wrap
3420 msgid "GitHub"
3421 msgstr "Github"
3422
3423 #. type: Plain text
3424 #: administration-linstor.adoc:1753
3425 msgid "To file bug or feature request please check out our GitHub page https://github.com/linbit"
3426 msgstr "要提交bug或功能请求,请查看我们的GitHub页面 https://GitHub.com/linbit"
3427
3428 #. type: Title ====
3429 #: administration-linstor.adoc:1754
3430 #, no-wrap
3431 msgid "Paid support and development"
3432 msgstr "有偿支持和开发"
3433
3434 #. type: Plain text
3435 #: administration-linstor.adoc:1755
3436 msgid ""
3437 "Alternatively, if you wish to purchase remote installation services, 24/7 support, access to certified repositories, or feature development please contact us: +1-877-454-6248 "
3438 "(1-877-4LINBIT) , International: +43-1-8178292-0 | [email protected]"
3439 msgstr "或者,如果您希望购买远程安装服务、24/7支持、访问认证存储库或功能开发,请联系我们:+1-877-454-6248(1-877-4LINBIT),国际电话:+43-1-8178292-0 | [email protected]"