Debian Codegraph @

UG9/cn/proxmox-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 18:00+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 #: proxmox-linstor.adoc:2
21 #, no-wrap
22 msgid "LINSTOR Volumes in Proxmox VE"
23 msgstr "Proxmox VE中的LINSTOR卷"
24
25 #. type: Plain text
26 #: proxmox-linstor.adoc:6
27 msgid "indexterm:[Proxmox]This chapter describes DRBD in Proxmox VE via the http://git.linbit.com/linstor-proxmox.git[LINSTOR Proxmox Plugin]."
28 msgstr "indexterm:[Proxmox]本章描述了通过 http://git.linbit.com/linstor-proxmox.git[LINSTOR Proxmox Plugin] 实现的Proxmox VE中的DRBD。"
29
30 #. type: Title ===
31 #: proxmox-linstor.adoc:8
32 #, no-wrap
33 msgid "Proxmox VE Overview"
34 msgstr "Proxmox VE概述"
35
36 #. type: Plain text
37 #: proxmox-linstor.adoc:12
38 msgid "http://www.proxmox.com/en/[Proxmox VE] is an easy to use, complete server virtualization environment with KVM, Linux Containers and HA."
39 msgstr "http://www.proxmox.com/en/[proxmox VE]是一个易于使用的、完整的服务器虚拟化环境,具有KVM、Linux容器和HA。"
40
41 #. (LVM volumes on DRBD)
42 #. type: Plain text
43 #: proxmox-linstor.adoc:18
44 msgid ""
45 "'linstor-proxmox' is a Perl plugin for Proxmox that, in combination with LINSTOR, allows to replicate VM disks on several Proxmox VE nodes. This allows to live-migrate active VMs within a few "
46 "seconds and with no downtime without needing a central SAN, as the data is already replicated to multiple nodes."
47 msgstr "`linstor-proxmox` 是proxmox的一个Perl插件,它与LINSTOR结合,允许在多个proxmox VE节点上复制VM磁盘。这允许在几秒钟内实时迁移活动vm,而且不需要中央SAN,因为数据已经复制到多个节点。"
48
49 #. type: Title ===
50 #: proxmox-linstor.adoc:20
51 #, no-wrap
52 msgid "Proxmox Plugin Installation"
53 msgstr "Proxmox插件安装"
54
55 #. type: Plain text
56 #: proxmox-linstor.adoc:25
57 msgid ""
58 "LINBIT provides a dedicated public repository for Proxmox VE users. This repository not only contains the Proxmox plugin, but the whole DRBD SDS stack including a DRBD SDS kernel module and "
59 "user space utilities."
60 msgstr "LINBIT为Proxmox VE用户提供了一个专用的公共仓库。这个存储库不仅包含Proxmox插件,还包含整个DRBD-SDS堆栈,包括DRBD SDS内核模块和用户空间实用程序。"
61
62 #. type: Plain text
63 #: proxmox-linstor.adoc:33
64 #, no-wrap
65 msgid ""
66 "The DRBD9 kernel module is installed as a `dkms` package (i.e., `drbd-dkms`), therefore you'll have to install\n"
67 "`pve-headers` package, before you set up/install the software packages from LINBIT's repositories. Following\n"
68 "that order, ensures that the kernel module will build properly for your kernel. If you don't plan to install\n"
69 "the latest Proxmox kernel, you have to install kernel headers matching your current running kernel (e.g.,\n"
70 "\t\t`pve-headers-$(uname -r)`). If you missed this step, then still you can rebuild the dkms package against\n"
71 "your current kernel, (kernel headers have to be installed in advance), by issuing `apt install --reinstall\n"
72 "drbd-dkms` command.\n"
73 msgstr "DRBD9内核模块是作为dkms软件包(即 `drbd-dkms` )安装的,因此,您必须先安装 `pve-headers` 软件包,然后才能从LINBIT的存储库中设置/安装软件包。 按照该顺序,确保内核模块将为您的内核正确构建。如果您不打算安装最新的Proxmox内核,则必须安装与当前运行的内核匹配的内核头文件(例如 `pve-headers-$(uname -r)`)。如果您错过了这一步,那么仍然可以通过输入 `apt install --reinstall drbd-dkms` 命令, 针对当前内核重建dkms软件包(必须预先安装内核头文件)。\n"
74
75 #. type: Plain text
76 #: proxmox-linstor.adoc:36
77 msgid "LINBIT's repository can be enabled as follows, where \"$PVERS\" should be set to your Proxmox VE *major version* (e.g., \"5\", not \"5.2\"):"
78 msgstr "LINBIT的仓库可以如下启用,其中 \"$PVERS\" 应该设置为Proxmox VE *主版本* (例如, \"5\" ,而不是 \"5.2\" ):"
79
80 #. type: delimited block -
81 #: proxmox-linstor.adoc:42
82 #, no-wrap
83 msgid ""
84 "# wget -O- https://packages.linbit.com/package-signing-pubkey.asc | apt-key add -\n"
85 "# PVERS=5 && echo \"deb http://packages.linbit.com/proxmox/ proxmox-$PVERS drbd-9.0\" > \\\n"
86 "\t/etc/apt/sources.list.d/linbit.list\n"
87 "# apt update && apt install linstor-proxmox\n"
88 msgstr ""
89 "# wget -O- https://packages.linbit.com/package-signing-pubkey.asc | apt-key add -\n"
90 "# PVERS=5 && echo \"deb http://packages.linbit.com/proxmox/ proxmox-$PVERS drbd-9.0\" > \\\n"
91 "\t/etc/apt/sources.list.d/linbit.list\n"
92 "# apt update && apt install linstor-proxmox\n"
93
94 #. type: Title ===
95 #: proxmox-linstor.adoc:45
96 #, no-wrap
97 msgid "LINSTOR Configuration"
98 msgstr "LINSTOR配置"
99
100 #. type: Plain text
101 #: proxmox-linstor.adoc:52
102 msgid ""
103 "For the rest of this guide we assume that you have a LINSTOR cluster configured as described in <<s-linstor-init-cluster>>. Also make sure to setup each node as a \"Combined\" node. Start the "
104 "\"linstor-controller\" on one node, and the \"linstor-satellite\" on all nodes. The preferred way to use the plugin, starting from version 4.1.0, is via LINSTOR resource groups and a single "
105 "volume group within every resource group. LINSTOR resource groups are described in <<s-linstor-resource-groups>>. All the required LINSTOR configuration (e.g., redundancy count) has to be set "
106 "on the resource group."
107 msgstr ""
108 "对于本指南的其余部分,我们假设您已经按照<<s-linstor-init-cluster>>中的说明配置了LINSTOR集群。还要确保将每个节点设置为 \"Combined\" 节点。在一个节点上启动 \"linstor-controller\" ` ,在所有节点"
109 "上启动 \"linstor-satellite\" 。从4.1.0版开始,使用插件的首选方法是通过LINSTOR资源组和每个资源组中的单个卷组。LINSTOR资源组在<<s-linstor-resource-groups>>中描述。必须在资源组上设置所有必需的"
110 "LINSTOR配置(如冗余计数)。"
111
112 #. type: Title ===
113 #: proxmox-linstor.adoc:54
114 #, no-wrap
115 msgid "Proxmox Plugin Configuration"
116 msgstr "ProxBox插件配置"
117
118 #. type: Plain text
119 #: proxmox-linstor.adoc:57
120 msgid "The final step is to provide a configuration for Proxmox itself. This can be done by adding an entry in the `/etc/pve/storage.cfg` file, with a content similar to the following."
121 msgstr "最后一步是为Proxmox本身提供配置。这可以通过在 `/etc/pve/storage.cfg` 文件中添加一个条目来完成,其内容类似于以下内容。"
122
123 #. type: delimited block -
124 #: proxmox-linstor.adoc:63 proxmox-linstor.adoc:85
125 #, no-wrap
126 msgid ""
127 "drbd: drbdstorage\n"
128 " content images,rootdir\n"
129 " controller 10.11.12.13\n"
130 " resourcegroup defaultpool\n"
131 msgstr ""
132 "drbd: drbdstorage\n"
133 " content images,rootdir\n"
134 " controller 10.11.12.13\n"
135 " resourcegroup defaultpool\n"
136
137 #. type: Plain text
138 #: proxmox-linstor.adoc:76
139 msgid ""
140 "The \"drbd\" entry is fixed and you are not allowed to modify it, as it tells to Proxmox to use DRBD as storage backend. The \"drbdstorage\" entry can be modified and is used as a friendly "
141 "name that will be shown in the PVE web GUI to locate the DRBD storage. The \"content\" entry is also fixed, so do not change it. The redundancy (specified in the resource group) specifies "
142 "how many replicas of the data will be stored in the cluster. The recommendation is to set it to 2 or 3 depending on your setup. The data is accessible from all nodes, even if some of them do "
143 "not have local copies of the data. For example, in a 5 node cluster, all nodes will be able to access 3 copies of the data, no matter where they are stored in. The \"controller\" parameter "
144 "must be set to the IP of the node that runs the LINSTOR controller service. Only one node can be set to run as LINSTOR controller at the same time. If that node fails, start the LINSTOR "
145 "controller on another node and change that value to its IP address. There are more elegant ways to deal with this problem. For more, see later in this chapter how to setup a highly available "
146 "LINSTOR controller VM in Proxmox."
147 msgstr ""
148 "\"drbd\" 条目是固定的,不允许修改它,因为它告诉Proxmox使用drbd作为存储后端。可以修改 \"drbdstorage\" 条目并将其用作友好名称,该名称将显示在PVE web GUI中以查找DRBD存储。 \"content\" 条目也是固"
149 "定的,所以不要更改它。冗余(在资源组中指定)指定将在群集中存储多少数据副本。建议根据您的设置将其设置为2或3。数据可以从所有节点访问,即使其中一些节点没有数据的本地副本。例如,在5节点集群中,所"
150 "有节点都可以访问数据的3个副本,无论它们存储在何处。 \"controller\" 参数必须设置为运行LINSTOR控制器服务的节点的IP。只能将一个节点设置为同时作为LINSTOR controller运行。如果该节点出现故障,请在另"
151 "一个节点上启动LINSTOR controller,并将该值更改为其IP地址。有更优雅的方法来处理这个问题。有关更多信息,请参阅本章后面的 `如何在ProxBox中设置高可用的LINSTOR controller 虚拟机` 。"
152
153 #. type: Plain text
154 #: proxmox-linstor.adoc:79
155 msgid "Recent versions of the plugin allow to define multiple different storage pools. Such a configuration would look like this:"
156 msgstr "插件的最新版本允许定义多个不同的存储池。这样的配置如下:"
157
158 #. type: delimited block -
159 #: proxmox-linstor.adoc:90
160 #, no-wrap
161 msgid ""
162 "drbd: fastdrbd\n"
163 " content images,rootdir\n"
164 " controller 10.11.12.13\n"
165 " resourcegroup ssd\n"
166 msgstr ""
167 "drbd: fastdrbd\n"
168 " content images,rootdir\n"
169 " controller 10.11.12.13\n"
170 " resourcegroup ssd\n"
171
172 #. type: delimited block -
173 #: proxmox-linstor.adoc:95
174 #, no-wrap
175 msgid ""
176 "drbd: slowdrbd\n"
177 " content images,rootdir\n"
178 " controller 10.11.12.13\n"
179 " resourcegroup backup\n"
180 msgstr ""
181 "drbd: slowdrbd\n"
182 " content images,rootdir\n"
183 " controller 10.11.12.13\n"
184 " resourcegroup backup\n"
185
186 #. type: Plain text
187 #: proxmox-linstor.adoc:99
188 msgid "By now, you should be able to create VMs via Proxmox's web GUI by selecting \"__drbdstorage__\", or any other of the defined pools as storage location."
189 msgstr "现在,您应该可以通过Proxmox的web GUI创建vm,方法是选择 \"__drbdstorage__\" , 或者选择任何其他已定义的池作为存储位置。"
190
191 #. type: Block title
192 #: proxmox-linstor.adoc:100
193 #, no-wrap
194 msgid "NOTE: DRBD supports only the **raw** disk format at the moment."
195 msgstr "注意:目前DRBD只支持 **raw** 磁盘格式。"
196
197 #. type: Plain text
198 #: proxmox-linstor.adoc:106
199 msgid ""
200 "At this point you can try to live migrate the VM - as all data is accessible on all nodes (even on Diskless nodes) - it will take just a few seconds. The overall process might take a bit "
201 "longer if the VM is under load and if there is a lot of RAM being dirtied all the time. But in any case, the downtime should be minimal and you will see no interruption at all."
202 msgstr ""
203 "此时,您可以尝试实时迁移虚拟机 - 因为所有节点(甚至在无盘节点上)都可以访问所有数据 - 只需几秒钟。如果VM负载不足,并且有很多RAM一直被污染,那么整个过程可能需要更长的时间。但是在任何情况下,停"
204 "机时间都应该是最少的,而且您不会看到任何中断。"
205
206 #. type: Title ===
207 #: proxmox-linstor.adoc:108
208 #, no-wrap
209 msgid "Making the Controller Highly-Available"
210 msgstr "Controller HA"
211
212 #. type: Plain text
213 #: proxmox-linstor.adoc:111
214 msgid "For the rest of this guide we assume that you installed LINSTOR and the Proxmox Plugin as described in <<s-proxmox-ls-ls-configuration>>."
215 msgstr "对于本指南的其余部分,我们假设您安装了LINSTOR和Proxmox插件,如<<s-proxmox-ls-ls-configuration>>中所述。"
216
217 #. type: Plain text
218 #: proxmox-linstor.adoc:114
219 msgid "The basic idea is to execute the LINSTOR controller within a VM that is controlled by Proxmox and its HA features, where the storage resides on DRBD managed by LINSTOR itself."
220 msgstr "基本思想是在一个由Proxmox及其HA特性控制的VM中执行LINSTOR控制器,其中存储驻留在由LINSTOR本身管理的DRBD上。"
221
222 #. type: Plain text
223 #: proxmox-linstor.adoc:122
224 msgid ""
225 "The first step is to allocate storage for the VM: Create a VM as usual and select \"Do not use any media\" on the \"OS\" section. The hard disk should of course reside on DRBD (e.g., "
226 "\"drbdstorage\"). 2GB disk space should be enough, and for RAM we chose 1GB. These are the minimum requirements for the appliance LINBIT provides to its customers (see below). If you wish to "
227 "set up your own controller VM, and you have enough hardware resources available, you can increase these minimum values. In the following use case, we assume that the controller VM was created "
228 "with ID 100, but it is fine if this VM was created at a later time and has a different ID."
229 msgstr ""
230 "第一步是为VM分配存储空间:像往常一样创建一个VM,并在 \"OS\" 部分选择 \"Do not use any media\"。硬盘当然应该位于DRBD上(例如 \"drbdstorage\" )。2GB的磁盘空间应该足够了,对于RAM,我们选择了"
231 "1GB。这些是LINBIT为其客户提供的设备的最低要求(见下文)。如果您希望设置自己的控制器虚拟机,并且您有足够的可用硬件资源,则可以增加这些最小值。在下面的用例中,我们假设控制器VM是用ID 100创建的,"
232 "但是如果这个VM是在以后创建的,换成一个不同的ID,就可以了。"
233
234 #. type: Plain text
235 #: proxmox-linstor.adoc:126
236 msgid ""
237 "LINBIT provides an appliance for its customers that can be used to populate the created storage. For the appliance to work, we first create a \"Serial Port\". First click on \"Hardware\" and "
238 "then on \"Add\" and finally on \"Serial Port\":"
239 msgstr "LINBIT为其客户提供了一个设备,可用于填充创建的存储。为了让设备工作,我们首先创建一个 \"Serial Port\"。首先点击 \\:Hardware\" ,然后点击 \"Add\" ,最后点击 \"Serial Port\" :"
240
241 #. type: Block title
242 #: proxmox-linstor.adoc:128
243 #, no-wrap
244 msgid "Adding a Serial Port"
245 msgstr "添加串行端口"
246
247 #. type: Target for macro image
248 #: proxmox-linstor.adoc:129
249 #, no-wrap
250 msgid "images/pm_add_serial1_controller_vm.png"
251 msgstr "images/pm_add_serial1_controller_vm.png"
252
253 #. type: Plain text
254 #: proxmox-linstor.adoc:132
255 msgid "If everything worked as expected the VM definition should then look like this:"
256 msgstr "如果一切正常,VM定义应该如下所示:"
257
258 #. type: Block title
259 #: proxmox-linstor.adoc:134
260 #, no-wrap
261 msgid "VM with Serial Port"
262 msgstr "带串行端口的虚拟机"
263
264 #. type: Target for macro image
265 #: proxmox-linstor.adoc:135
266 #, no-wrap
267 msgid "images/pm_add_serial2_controller_vm.png"
268 msgstr "images/pm_add_serial2_controller_vm.png"
269
270 #. type: Plain text
271 #: proxmox-linstor.adoc:138
272 msgid "The next step is to copy the VM appliance to the VM disk storage. This can be done with `qemu-img`."
273 msgstr "下一步是将VM设备复制到VM磁盘存储。这可以通过 `qemu img` 完成。"
274
275 #. type: Plain text
276 #: proxmox-linstor.adoc:140
277 msgid "Make sure to replace the VM ID with the correct one."
278 msgstr "确保用正确的VM ID替换VM ID。"
279
280 #. type: delimited block -
281 #: proxmox-linstor.adoc:144
282 #, no-wrap
283 msgid ""
284 "# qemu-img dd -O raw if=/tmp/linbit-linstor-controller-amd64.img \\\n"
285 " of=/dev/drbd/by-res/vm-100-disk-1/0\n"
286 msgstr ""
287 "# qemu-img dd -O raw if=/tmp/linbit-linstor-controller-amd64.img \\\n"
288 " of=/dev/drbd/by-res/vm-100-disk-1/0\n"
289
290 #. type: Plain text
291 #: proxmox-linstor.adoc:152
292 msgid ""
293 "Once completed you can start the VM and connect to it via the Proxmox VNC viewer. The default user name and password are both \"linbit\". Note that we kept the default configuration for the "
294 "ssh server, so you will not be able to log in to the VM via ssh and username/password. If you want to enable that (and/or \"root\" login), enable these settings in `/etc/ssh/sshd_config` and "
295 "restart the ssh service. As this VM is based on \"Ubuntu Bionic\", you should change your network settings (e.g., static IP) in `/etc/netplan/config.yaml`. After that you should be able to "
296 "ssh to the VM:"
297 msgstr ""
298 "完成后,您可以启动VM并通过Proxmox VNC查看器连接到它。默认用户名和密码都是 \"linbit\" 。注意,我们保留了ssh服务器的默认配置,因此您将无法通过ssh和用户名/密码登录到VM。如果要启用该功能(和/或 "
299 "\"root\" 登录),请在 `/etc/ssh/sshd_config` 中启用这些设置, 然后重新启动ssh服务。由于这个虚拟机是基于 \"Ubuntu Bionic\", 您应该在 `/etc/netplan/config.yaml` 中更改网络设置(例如,静态IP)。"
300 "之后,您应该能够通过ssh连接到VM:"
301
302 #. type: Block title
303 #: proxmox-linstor.adoc:154
304 #, no-wrap
305 msgid "LINBIT LINSTOR Controller Appliance"
306 msgstr "LINBIT LINSTOR Controller设备"
307
308 #. type: Target for macro image
309 #: proxmox-linstor.adoc:155
310 #, no-wrap
311 msgid "images/pm_ssh_controller_vm.png"
312 msgstr "images/pm_ssh_controller_vm.png"
313
314 #. type: Plain text
315 #: proxmox-linstor.adoc:158
316 msgid "In the next step you add the controller VM to the existing cluster:"
317 msgstr "在下一步中,将controller VM添加到现有集群:"
318
319 #. type: delimited block -
320 #: proxmox-linstor.adoc:162
321 #, no-wrap
322 msgid ""
323 "# linstor node create --node-type Controller \\\n"
324 " linstor-controller 10.43.7.254\n"
325 msgstr ""
326 "# linstor node create --node-type Controller \\\n"
327 " linstor-controller 10.43.7.254\n"
328
329 #. type: Plain text
330 #: proxmox-linstor.adoc:167
331 msgid ""
332 "As the Controller VM will be handled in a special way by the Proxmox storage plugin (comparing to the rest of VMs), we must make sure all hosts have access to its backing storage, *before* "
333 "PVE HA starts the VM, otherwise the VM will fail to start. See below for the details on how to achieve this."
334 msgstr ""
335 "由于Controller VM将由Proxmox存储插件以特殊的方式处理(与其他虚拟机相比),我们必须确保所有主机都有权访问其备份存储,在PVE HA启动虚拟机 *之前* ,否则虚拟机将无法启动。有关如何实现此目标的详细信"
336 "息,请参见下文。"
337
338 #. type: Plain text
339 #: proxmox-linstor.adoc:174
340 msgid ""
341 "In our test cluster the Controller VM disk was created in DRBD storage and it was initially assigned to one host (use `linstor resource list` to check the assignments). Then, we used "
342 "`linstor resource create` command to create additional resource assignments to the other nodes of the cluster for this VM. In our lab consisting of four nodes, we created all resource "
343 "assignments as diskful, but diskless assignments are fine as well. As a rule of thumb keep the redundancy count at \"3\" (more usually does not make sense), and assign the rest as diskless."
344 msgstr ""
345 "在我们的测试集群中,Controller VM磁盘是在DRBD存储中创建的, 最初分配给一个主机(使用 `linstor resource list` 检查分配)。然后,我们使用 `linstor resource create` 命令为这个VM创建额外的资源分配"
346 "给集群的其他节点。在由四个节点组成的实验环境中,我们将所有资源分配创建为磁盘分配,但无磁盘分配也很好。根据经验,将冗余计数保持在 \"3\" (通常没有意义),并将其余部分分配为无盘。"
347
348 #. type: Plain text
349 #: proxmox-linstor.adoc:177
350 msgid ""
351 "As the storage for the Controller VM must be made available on all PVE hosts in some way, we must make sure to enable the `drbd.service` on all hosts (given that it is not controlled by "
352 "LINSTOR at this stage):"
353 msgstr "由于Controller VM的存储必须以某种方式在所有PVE主机上可用,因此我们必须确保在所有主机上启用 `drbd.service` (假定它在此阶段不受LINSTOR控制):"
354
355 #. type: delimited block -
356 #: proxmox-linstor.adoc:181
357 #, no-wrap
358 msgid ""
359 "# systemctl enable drbd\n"
360 "# systemctl start drbd\n"
361 msgstr ""
362 "# systemctl enable drbd\n"
363 "# systemctl start drbd\n"
364
365 #. type: Plain text
366 #: proxmox-linstor.adoc:189
367 msgid ""
368 "By default, at startup the `linstor-satellite` service deletes all of its resource files (`*.res`) and regenerates them. This conflicts with the `drbd` services that needs these resource "
369 "files to start the controller VM. It is good enough to first bring up the resources via `drbd.service` and ensure that the `linstor-satellite.service`, which brings up the controller resource "
370 "never deletes the according `res` file. To make the necessary changes, you need to create a drop-in for the `linstor-satellite.service` via `systemctl` (do *not* edit the file directly)."
371 msgstr ""
372 "默认情况下, `linstor satellite` 服务在启动时删除其所有资源文件(`*.res`)并重新生成它们。这与需要这些资源文件来启动控制器VM的 `drbd` 服务冲突。首先通过 `drbd.service` 调出资源,并确保调出控制"
373 "器资源的 `linstor satellite.service` 不会删除相应的 `res` 文件。要进行必要的更改,需要通过 `systemctl` 为 `linstor satellite.service` 创建一个drop-in(不要直接编辑文件)。"
374
375 #. type: delimited block -
376 #: proxmox-linstor.adoc:196
377 #, no-wrap
378 msgid ""
379 "systemctl edit linstor-satellite\n"
380 "[Service]\n"
381 "Environment=LS_KEEP_RES=vm-100-disk\n"
382 "[Unit]\n"
383 "After=drbd.service\n"
384 msgstr ""
385 "systemctl edit linstor-satellite\n"
386 "[Service]\n"
387 "Environment=LS_KEEP_RES=vm-100-disk\n"
388 "[Unit]\n"
389 "After=drbd.service\n"
390
391 #. type: Plain text
392 #: proxmox-linstor.adoc:200
393 msgid "Of course adapt the name of the controller VM in the `LS_KEEP_RES` variable. Note that the value given is interpreted as regex, so you don't need to specify the exact name."
394 msgstr "当然,在 `LS_KEEP_RES` 变量中需要调整controller VM的名称。请注意,给定的值被解释为regex,因此不需要指定确切的名称。"
395
396 #. type: Plain text
397 #: proxmox-linstor.adoc:202
398 msgid "Don't forget to restart the `linstor-satellite.service`."
399 msgstr "别忘了重新启动 `linstor satellite.service` 。"
400
401 #. type: Plain text
402 #: proxmox-linstor.adoc:206
403 msgid ""
404 "After that, it is time for the final steps, namely switching from the existing controller (residing on the physical host) to the new one in the VM. So let's stop the old controller service on "
405 "the physical host, and copy the LINSTOR controller database to the VM host:"
406 msgstr "在那之后,是时候进行最后的步骤了,即从现有的控制器(驻留在物理主机上)切换到VM中的新控制器。因此,让我们停止物理主机上的旧控制器服务,并将LINSTOR控制器数据库复制到VM主机:"
407
408 #. type: delimited block -
409 #: proxmox-linstor.adoc:211
410 #, no-wrap
411 msgid ""
412 "# systemctl stop linstor-controller\n"
413 "# systemctl disable linstor-controller\n"
414 "# scp /var/lib/linstor/* [email protected]:/var/lib/linstor/\n"
415 msgstr ""
416 "# systemctl stop linstor-controller\n"
417 "# systemctl disable linstor-controller\n"
418 "# scp /var/lib/linstor/* [email protected]:/var/lib/linstor/\n"
419
420 #. type: Plain text
421 #: proxmox-linstor.adoc:214
422 msgid "Finally, we can enable the controller in the VM:"
423 msgstr "最后,我们可以在VM中启用控制器:"
424
425 #. type: delimited block -
426 #: proxmox-linstor.adoc:218
427 #, no-wrap
428 msgid ""
429 "# systemctl start linstor-controller # in the VM\n"
430 "# systemctl enable linstor-controller # in the VM\n"
431 msgstr ""
432 "# systemctl start linstor-controller # in the VM\n"
433 "# systemctl enable linstor-controller # in the VM\n"
434
435 #. type: Plain text
436 #: proxmox-linstor.adoc:224
437 msgid ""
438 "To check if everything worked as expected, you can query the cluster nodes on a physical PVE host by asking the controller in the VM: `linstor --controllers=10.43.7.254 node list`. It is "
439 "perfectly fine that the controller (which is just a Controller and not a \"Combined\" host) is shown as \"OFFLINE\". This might change in the future to something more reasonable."
440 msgstr ""
441 "要检查一切是否按预期工作,可以通过询问VM中的控制器来查询物理PVE主机上的群集节点: `linstor--controllers=10.43.7.254 node list`。controller(只是一个controller,而不是 \"Combined\" 主机)显示"
442 "为 \"OFFLINE\", 但一切正常。这在未来可能会改变为更合理的方式。"
443
444 #. type: Plain text
445 #: proxmox-linstor.adoc:227
446 msgid "As the last -- but crucial -- step, you need to add the \"controlervm\" option to `/etc/pve/storage.cfg`, and change the controller IP address to the IP address of the Controller VM:"
447 msgstr "作为最后一步 -- 但至关重要 --,您需要将 \"controlervm\" 选项添加到 `/etc/pve/storage.cfg` ,并将控制器IP地址更改为控制器虚拟机的IP地址:"
448
449 #. type: delimited block -
450 #: proxmox-linstor.adoc:234
451 #, no-wrap
452 msgid ""
453 "drbd: drbdstorage\n"
454 " content images,rootdir\n"
455 " resourcegroup defaultpool\n"
456 " controller 10.43.7.254\n"
457 " controllervm 100\n"
458 msgstr ""
459 "drbd: drbdstorage\n"
460 " content images,rootdir\n"
461 " resourcegroup defaultpool\n"
462 " controller 10.43.7.254\n"
463 " controllervm 100\n"
464
465 #. type: Plain text
466 #: proxmox-linstor.adoc:244
467 msgid ""
468 "Please note the additional setting \"controllervm\". This setting is very important, as it tells to PVE to handle the Controller VM differently than the rest of VMs stored in the DRBD "
469 "storage. In specific, it will instruct PVE to NOT use LINSTOR storage plugin for handling the Controller VM, but to use other methods instead. The reason for this, is that simply LINSTOR "
470 "backend is not available at this stage. Once the Controller VM is up and running (and the associated LINSTOR controller service inside the VM), then the PVE hosts will be able to start the "
471 "rest of virtual machines which are stored in the DRBD storage by using LINSTOR storage plugin. Please make sure to set the correct VM ID in the \"controllervm\" setting. In this case is set "
472 "to \"100\", which represents the ID assigned to our Controller VM."
473 msgstr ""
474 "请注意附加设置 \"controllervm\" 。这个设置非常重要,因为它告诉PVE以不同于DRBD存储中存储的其他VM的方式处理控制器VM。具体来说,它将指示PVE不要使用LINSTOR存储插件来处理控制器VM,而是使用其他方"
475 "法。原因是,在这个阶段没有简单的LINSTOR后端。一旦控制器VM启动并运行(以及VM中相关的LINSTOR控制器服务),PVE主机将能够使用linstorage插件启动存储在DRBD存储中的其余虚拟机。请确保在 "
476 "`controllervm` 设置中设置正确的VM ID。在本例中设置为 `100` ,表示分配给控制器VM的ID。"
477
478 #. type: Plain text
479 #: proxmox-linstor.adoc:248
480 msgid ""
481 "It is very important to make sure that the Controller VM is up and running at all times and that you are backing it up at regular times(mostly when you do modifications to the LINSTOR "
482 "cluster). Once the VM is gone, and there are no backups, the LINSTOR cluster must be recreated from scratch."
483 msgstr "非常重要的一点是,要确保控制器VM始终处于启动和运行状态,并且要定期备份它(主要是在修改LINSTOR集群时)。一旦VM消失,并且没有备份,LINSTOR集群必须从头开始重新创建。"
484
485 #. type: Plain text
486 #: proxmox-linstor.adoc:255
487 msgid ""
488 "To prevent accidental deletion of the VM, you can go to the \"Options\" tab of the VM, in the PVE GUI and enable the \"Protection\" option. If however you accidentally deleted the VM, such "
489 "requests are ignored by our storage plugin, so the VM disk will NOT be deleted from the LINSTOR cluster. Therefore, it is possible to recreate the VM with the same ID as before(simply "
490 "recreate the VM configuration file in PVE and assign the same DRBD storage device used by the old VM). The plugin will just return \"OK\", and the old VM with the old data can be used again. "
491 "In general, be careful to not delete the controller VM and \"protect\" it accordingly."
492 msgstr ""
493 "为了防止意外删除VM,可以转到PVE GUI中VM的 \"Options\" 选项卡并启用 \"Protection\" 选项。但是,如果您意外地删除了VM,那么存储插件会忽略这些请求,因此VM磁盘不会从LINSTOR集群中删除。因此,可以使"
494 "用与以前相同的ID重新创建VM(只需在PVE中重新创建VM配置文件并分配旧VM使用的相同DRBD存储设备)。这个插件只会返回 \"OK\" ,带有旧数据的旧VM可以再次使用。一般来说,注意不要删除控制器VM并相应地 "
495 "\"protect\" 它。"
496
497 #. type: Plain text
498 #: proxmox-linstor.adoc:260
499 msgid ""
500 "Currently, we have the controller executed as VM, but we should make sure that one instance of the VM is started at all times. For that we use Proxmox's HA feature. Click on the VM, then on "
501 "\"More\", and then on \"Manage HA\". We set the following parameters for our controller VM:"
502 msgstr ""
503 "目前,我们已经将控制器作为VM执行,但是我们应该确保VM的一个实例始终启动。为此,我们使用Proxmox的HA特性。点击虚拟机,然后点击 \"More\" ,然后点击 \"Manage HA\" 。我们为控制器VM设置以下参数:"
504
505 #. type: Block title
506 #: proxmox-linstor.adoc:262
507 #, no-wrap
508 msgid "HA settings for the controller VM"
509 msgstr "控制器虚拟机的HA设置"
510
511 #. type: Target for macro image
512 #: proxmox-linstor.adoc:263
513 #, no-wrap
514 msgid "images/pm_manage_ha_controller_vm.png"
515 msgstr "images/pm_manage_ha_controller_vm.png"
516
517 #. type: Plain text
518 #: proxmox-linstor.adoc:269
519 msgid ""
520 "As long as there are surviving nodes in your Proxmox cluster, everything should be fine and in case the node hosting the Controller VM is shut down or lost, Proxmox HA will make sure the "
521 "controller is started on another host. Obviously the IP of the controller VM should not change. It is up to you as an administrator to make sure this is the case (e.g., setting a static IP, "
522 "or always providing the same IP via dhcp on the bridged interface)."
523 msgstr ""
524 "只要您的Proxmox集群中有幸存的节点,一切都应该正常,并且如果承载控制器VM的节点关闭或丢失,Proxmox HA将确保controller在另一台主机上启动。显然,控制器VM的IP不应该更改。这取决于作为管理员的您,以"
525 "确保是这样的情况(例如,设置一个静态IP,或始终通过桥接接口上的dhcp提供相同的IP)。"
526
527 #. type: Plain text
528 #: proxmox-linstor.adoc:276
529 msgid ""
530 "It is important to mention at this point that in the case that you are using a dedicated network for the LINSTOR cluster, you must make sure that the network interfaces configured for the "
531 "cluster traffic, are configured as bridges (i.e vmb1,vmbr2 etc) on the PVE hosts. If they are setup as direct interfaces (i.e eth0,eth1 etc), then you will not be able to setup the Controller "
532 "VM vNIC to communicate with the rest of LINSTOR nodes in the cluster, as you cannot assign direct network interfaces to the VM, but only bridged interfaces."
533 msgstr ""
534 "在此必须指出的是,如果要为LINSTOR集群使用专用网络,则必须确保为集群通信配置的网络接口在PVE主机上配置为网桥(即vmb1、vmbr2等)。如果将它们设置为直接接口(即eth0、eth1等),则您将无法设置控制器"
535 "VM vNIC以与群集中的其余LINSTOR节点通信,因为您无法将直接网络接口分配给VM,而只能将桥接接口分配给VM。"
536
537 #. type: Plain text
538 #: proxmox-linstor.adoc:282
539 msgid ""
540 "One limitation that is not fully handled with this setup is a total cluster outage (e.g., common power supply failure) with a restart of all cluster nodes. Proxmox is unfortunately pretty "
541 "limited in this regard. You can enable the \"HA Feature\" for a VM, and you can define \"Start and Shutdown Order\" constraints. But both are completely separated from each other. Therefore "
542 "it is hard/impossible to guarantee that the Controller VM will be up and running, before all other VMs are started."
543 msgstr ""
544 "此设置未完全处理的一个限制是所有群集节点重新启动后的群集完全中断(例如,常见电源故障)。不幸的是Proxmox在这方面非常有限。可以为VM启用 \"HA Feature\" ,还可以定义 \"Start and Shutdown Order\" "
545 "约束。但两者都是完全分离的。因此,在启动所有其他VM之前,很难/不可能保证controller VM将启动并运行。"
546
547 #. type: Plain text
548 #: proxmox-linstor.adoc:288
549 msgid ""
550 "It might be possible to work around that by delaying VM startup in the Proxmox plugin itself until the controller VM is up (i.e., if the plugin is asked to start the controller VM it does it, "
551 "otherwise it waits and pings the controller). While a nice idea, this would horribly fail in a serialized, non-concurrent VM start/plugin call event stream where some VM should be started "
552 "(which then are blocked) before the Controller VM is scheduled to be started. That would obviously result in a deadlock."
553 msgstr ""
554 "可以通过在Proxmox插件中延迟VM启动来解决这个问题,直到控制器VM启动(即,如果要求插件启动控制器VM,它就会启动,否则它会等待并ping控制器)。虽然这是一个好主意,但在序列化的、非并发的VM启动/插件调"
555 "用事件流中,这可能会严重失败,在controller VM启动之前,应该启动某些VM(然后被阻止)。这显然会导致僵局。"
556
557 #. type: Plain text
558 #: proxmox-linstor.adoc:294
559 msgid ""
560 "We will discuss these options with Proxmox, but we think the current solution is valuable in most typical use cases, as is. Especially, compared to the complexity of a pacemaker setup. Use "
561 "cases where one can expect that not the whole cluster goes down at the same time are covered. And even if that is the case, only automatic startup of the VMs would not work when the whole "
562 "cluster is started. In such a scenario the admin just has to wait until the Proxmox HA service starts the controller VM. After that all VMs can be started manually/scripted on the command "
563 "line."
564 msgstr ""
565 "我们将与Proxmox讨论这些选项,但是我们认为当前的解决方案在大多数典型用例中都是有价值的。尤其是,与pacemaker配置的复杂性相比。我们将讨论一些用例,在这些用例中,人们可以预期不会同时关闭整个集群。"
566 "即使是这样,当整个集群启动时,只有VMs的自动启动将不起作用。在这种情况下,管理员只需等到Proxmox HA服务启动控制器VM。之后,所有vm都可以在命令行上手动启动/或通过脚本批量启动。"