| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2020-03-02 15:09+0000\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=CHARSET\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: Title == |
| 20 |
#: openstack.adoc:2 |
| 21 |
#, no-wrap |
| 22 |
msgid "DRBD volumes in Openstack" |
| 23 |
msgstr "Openstack中的DRBD卷" |
| 24 |
|
| 25 |
#. type: Plain text |
| 26 |
#: openstack.adoc:7 |
| 27 |
msgid "" |
| 28 |
"indexterm:[Openstack]indexterm:[Cinder]indexterm:[Nova]In this chapter you " |
| 29 |
"will learn how to use DRBD in Openstack for persistent, replicated, high-" |
| 30 |
"performance block storage." |
| 31 |
msgstr "" |
| 32 |
"indexterm:[Openstack]indexterm:[Cinder]indexterm:[Nova]在本章中,您将学习如何在Openstack中使用DRBD实现持久的、复制的、高性能的块存储。" |
| 33 |
|
| 34 |
#. type: Title === |
| 35 |
#: openstack.adoc:9 |
| 36 |
#, no-wrap |
| 37 |
msgid "Openstack Overview" |
| 38 |
msgstr "Openstack概述" |
| 39 |
|
| 40 |
#. type: Plain text |
| 41 |
#: openstack.adoc:14 |
| 42 |
msgid "" |
| 43 |
"Openstack itself consists of a big range of individual services; the two " |
| 44 |
"that are mostly concerned with DRBD are Cinder and Nova. *Cinder* is the " |
| 45 |
"block storage service, while *Nova* is the compute node service that's " |
| 46 |
"responsible to make the volumes available for the VMs." |
| 47 |
msgstr "" |
| 48 |
"Openstack本身包含大量的独立服务;与DRBD相关的两个主要服务是Cinder和Nova。*Cinder* 是块存储服务,*Nova* 是计算节点服务,负责为虚拟机提供卷。" |
| 49 |
|
| 50 |
#. type: Plain text |
| 51 |
#: openstack.adoc:18 |
| 52 |
msgid "" |
| 53 |
"DRBD storage volumes can be accessed in two ways: using the iSCSI protocol " |
| 54 |
"(for maximum compatibility), and using DRBD client functionality (being " |
| 55 |
"submitted to Openstack). For a discussion of these two modes and their " |
| 56 |
"differences please see <<s-openstack-transport-protocol>>." |
| 57 |
msgstr "" |
| 58 |
"可以通过两种方式访问DRBD存储卷:使用iSCSI协议(实现最大兼容性)和使用DRBD客户端功能(提交给Openstack)。有关这两种模式及其差异的讨论,请参见<<s-openstack-" |
| 59 |
"transport-protocol>>。" |
| 60 |
|
| 61 |
#. type: Title === |
| 62 |
#: openstack.adoc:20 |
| 63 |
#, no-wrap |
| 64 |
msgid "DRBD for Openstack Installation" |
| 65 |
msgstr "用于Openstack安装的DRBD" |
| 66 |
|
| 67 |
#. type: Plain text |
| 68 |
#: openstack.adoc:24 |
| 69 |
msgid "" |
| 70 |
"The _drbdmanage driver_ is upstream in Openstack since the Liberty release. " |
| 71 |
"It is used (mostly) in the `c-vol` service, so you'll need drbdmanage and " |
| 72 |
"DRBD 9 installed on the node(s) running that." |
| 73 |
msgstr "" |
| 74 |
"自Liberty发布以来,_drbdmanagedriver_ 就已经被合并在Openstack的上游。它主要用于 `c-vol` 服务,因此需要在运行该服务的节点上安装drbdmanage和DRBD" |
| 75 |
" 9。" |
| 76 |
|
| 77 |
#. type: Plain text |
| 78 |
#: openstack.adoc:27 |
| 79 |
msgid "" |
| 80 |
"Depending on the specific Openstack variant being used there are a few " |
| 81 |
"differences for paths, user names, etc.:" |
| 82 |
msgstr "根据使用的具体Openstack变量,路径、用户名等有一些不同:" |
| 83 |
|
| 84 |
#. type: Block title |
| 85 |
#: openstack.adoc:28 |
| 86 |
#, no-wrap |
| 87 |
msgid "Distribution dependent settings" |
| 88 |
msgstr "依赖于分发的设置" |
| 89 |
|
| 90 |
#. type: Table |
| 91 |
#: openstack.adoc:37 |
| 92 |
#, no-wrap |
| 93 |
msgid "" |
| 94 |
"what ; rdostack ; devstack\n" |
| 95 |
"Cinder/DRBD Manage driver file location;\n" |
| 96 |
"`/usr/lib/python2.6/site-packages/cinder/volume/drivers/drbdmanagedrv.py` ; `/opt/stack/cinder/cinder/volume/drivers/drbdmanagedrv.py`\n" |
| 97 |
"Cinder configuration file ; `/usr/share/cinder/cinder-dist.conf` ; `/etc/cinder/cinder.conf`\n" |
| 98 |
"Admin access data, for sourcing into shell ; `/etc/nagios/keystonerc_admin` ; `~stack/devstack/accrc/admin/admin`\n" |
| 99 |
"User used for running `c-vol` service ; `cinder` ; `stack `\n" |
| 100 |
msgstr "" |
| 101 |
"what ; rdostack ; devstack\n" |
| 102 |
"Cinder/DRBD Manage driver file location;\n" |
| 103 |
"`/usr/lib/python2.6/site-packages/cinder/volume/drivers/drbdmanagedrv.py` ; `/opt/stack/cinder/cinder/volume/drivers/drbdmanagedrv.py`\n" |
| 104 |
"Cinder configuration file ; `/usr/share/cinder/cinder-dist.conf` ; `/etc/cinder/cinder.conf`\n" |
| 105 |
"Admin access data, for sourcing into shell ; `/etc/nagios/keystonerc_admin` ; `~stack/devstack/accrc/admin/admin`\n" |
| 106 |
"User used for running `c-vol` service ; `cinder` ; `stack `\n" |
| 107 |
|
| 108 |
#. type: Plain text |
| 109 |
#: openstack.adoc:41 |
| 110 |
msgid "The generalized installations steps are these:" |
| 111 |
msgstr "一般安装步骤如下:" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: openstack.adoc:43 |
| 115 |
msgid "" |
| 116 |
"In the `cinder.conf` you'll need something like that; the `volume_driver` " |
| 117 |
"consists of the class name (last part), and the file path:" |
| 118 |
msgstr "在 `cinder.conf` 中,您需要类似的东西; `volume_driver` 由类名(最后一部分)和文件路径组成:" |
| 119 |
|
| 120 |
#. type: delimited block - |
| 121 |
#: openstack.adoc:49 |
| 122 |
#, no-wrap |
| 123 |
msgid "" |
| 124 |
"[DEFAULT]\n" |
| 125 |
"enabled_backends=drbd-1\n" |
| 126 |
msgstr "" |
| 127 |
"[DEFAULT]\n" |
| 128 |
"enabled_backends=drbd-1\n" |
| 129 |
|
| 130 |
#. type: delimited block - |
| 131 |
#: openstack.adoc:54 |
| 132 |
#, no-wrap |
| 133 |
msgid "" |
| 134 |
"[drbd-1]\n" |
| 135 |
"volume_driver=cinder.volume.drivers.drbdmanagedrv.DrbdManageIscsiDriver\n" |
| 136 |
"volume_backend_name=DRBD-Managed\n" |
| 137 |
"drbdmanage_redundancy=1\n" |
| 138 |
msgstr "" |
| 139 |
"[drbd-1]\n" |
| 140 |
"volume_driver=cinder.volume.drivers.drbdmanagedrv.DrbdManageIscsiDriver\n" |
| 141 |
"volume_backend_name=DRBD-Managed\n" |
| 142 |
"drbdmanage_redundancy=1\n" |
| 143 |
|
| 144 |
#. type: Plain text |
| 145 |
#: openstack.adoc:59 |
| 146 |
msgid "" |
| 147 |
"Please see also <<s-openstack-transport-protocol>> for choosing between " |
| 148 |
"iSCSI and DRBD transport modes, and <<s-openstack-addtl-conf,other " |
| 149 |
"configuration settings>>." |
| 150 |
msgstr "" |
| 151 |
"另请参见<<s-openstack-transport-protocol>>以选择iSCSI和DRBD传输模式,以及<<s-openstack-" |
| 152 |
"addtl-conf,other configuration settings>>。" |
| 153 |
|
| 154 |
#. type: Plain text |
| 155 |
#: openstack.adoc:62 |
| 156 |
msgid "" |
| 157 |
"Register the backend: (you might need to fetch the authentication " |
| 158 |
"environment variables via `source _<admin access data>_`)" |
| 159 |
msgstr "注册后端:(您可能需要通过 `source _<admin access data>_` 以获取身份验证环境变量" |
| 160 |
|
| 161 |
#. type: delimited block - |
| 162 |
#: openstack.adoc:68 |
| 163 |
#, no-wrap |
| 164 |
msgid "" |
| 165 |
"# cinder type-create drbd-1\n" |
| 166 |
"# cinder type-key drbd-1 set volume_backend_name=DRBD-Managed\n" |
| 167 |
msgstr "" |
| 168 |
"# cinder type-create drbd-1\n" |
| 169 |
"# cinder type-key drbd-1 set volume_backend_name=DRBD-Managed\n" |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: openstack.adoc:72 |
| 173 |
msgid "" |
| 174 |
"Allow the user to access the \"__org.drbd.drbdmanaged__\" service on DBus. " |
| 175 |
"For that you need to extend the file " |
| 176 |
"`/etc/dbus-1/system.d/org.drbd.drbdmanaged.conf` by an additional stanza " |
| 177 |
"like this (replace __USER__ by the username as per the table above):" |
| 178 |
msgstr "" |
| 179 |
"允许用户访问DBus上的 " |
| 180 |
"\"__org.drbd.drbdmanaged__\" 服务。为此,您需要将文件 `/etc/dbus-1/system.d/org.drbd.drbdmanaged.conf` 扩展为类似这样的附加节(用上表中的用户名替换用户):" |
| 181 |
|
| 182 |
#. type: delimited block - |
| 183 |
#: openstack.adoc:81 |
| 184 |
#, no-wrap |
| 185 |
msgid "" |
| 186 |
"<policy user=\"USER\">\n" |
| 187 |
" <allow own=\"org.drbd.drbdmanaged\"/>\n" |
| 188 |
" <allow send_interface=\"org.drbd.drbdmanaged\"/>\n" |
| 189 |
" <allow send_destination=\"org.drbd.drbdmanaged\"/>\n" |
| 190 |
"</policy>\n" |
| 191 |
msgstr "" |
| 192 |
"<policy user=\"USER\">\n" |
| 193 |
" <allow own=\"org.drbd.drbdmanaged\"/>\n" |
| 194 |
" <allow send_interface=\"org.drbd.drbdmanaged\"/>\n" |
| 195 |
" <allow send_destination=\"org.drbd.drbdmanaged\"/>\n" |
| 196 |
"</policy>\n" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: openstack.adoc:86 |
| 200 |
msgid "" |
| 201 |
"That's it; after a restart of the `c-vol` service you should be able to " |
| 202 |
"create your DRBD volumes." |
| 203 |
msgstr "就这样;重启 `c-vol` 服务之后,您应该能够创建您的DRBD卷。" |
| 204 |
|
| 205 |
#. type: Title ==== |
| 206 |
#: openstack.adoc:89 |
| 207 |
#, no-wrap |
| 208 |
msgid "Additional Configuration" |
| 209 |
msgstr "附加配置" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: openstack.adoc:93 |
| 213 |
msgid "" |
| 214 |
"The `drbdmanage` backend configuration in `cinder.conf` can contain a few " |
| 215 |
"additional settings that modify the exact behaviour." |
| 216 |
msgstr "`cinder.conf` 中的 `drbdmanage` 后端配置可以包含一些修改确切行为的附加设置。" |
| 217 |
|
| 218 |
#. type: Plain text |
| 219 |
#: openstack.adoc:99 |
| 220 |
msgid "" |
| 221 |
"(((OpenStack,Redundancy))) `drbdmanage_redundancy = 2` e.g. would declare that" |
| 222 |
" each volume needs to have 2 storage locations, i.e. be replicated once. This" |
| 223 |
" means that two times the storage will be used, and that the reported free " |
| 224 |
"space <<s-openstack-free-space,looks limited>>." |
| 225 |
msgstr "" |
| 226 |
"((OpenStack,Redundancy))`drbdmanage_redundancy=2`例如,将声明每个卷需要有两个存储位置,即复制一次。这意味着将使用两倍的存储空间,并且报告的可用空间看起来是有限的。" |
| 227 |
|
| 228 |
#. type: Plain text |
| 229 |
#: openstack.adoc:104 |
| 230 |
msgid "" |
| 231 |
"You can request more than two copies of the data; the limit is given by DRBD" |
| 232 |
" 9 and the number of storage hosts you have defined." |
| 233 |
msgstr "您可以请求两个以上的数据副本;限制由DRBD 9和您定义的存储主机数量给出。" |
| 234 |
|
| 235 |
#. type: Plain text |
| 236 |
#: openstack.adoc:109 |
| 237 |
msgid "" |
| 238 |
"`drbdmanage_devs_on_controller = True`: By default each volume will get a " |
| 239 |
"DRBD client mapped on the Cinder controller node; apart from being used for " |
| 240 |
"iSCSI exports, this might prove helpful for debugging, too." |
| 241 |
msgstr "" |
| 242 |
"`drbdmanage_devs_on_controller=True` :默认情况下,每个卷都会在Cinder控制器节点上映射一个DRBD客户机;除了用于iSCSI导出之外,这也可能有助于调试。" |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: openstack.adoc:113 |
| 246 |
msgid "" |
| 247 |
"indexterm:[iSCSI, in OpenStack Cinder]indexterm:[OpenStack, Cinder iSCSI " |
| 248 |
"transport]In case you need to choose a different iSCSI backend, you can " |
| 249 |
"provide an additional configuration to set it, like `iscsi_helper=lioadm`." |
| 250 |
msgstr "" |
| 251 |
"indexterm:[iSCSI,in OpenStack Cinder]indexterm:[OpenStack,Cinder iSCSI " |
| 252 |
"transport]如果需要选择不同的iSCSI后端,可以提供其他配置来设置它,如 `iscsi_helper=lioadm`。" |
| 253 |
|
| 254 |
#. type: Plain text |
| 255 |
#: openstack.adoc:117 |
| 256 |
msgid "" |
| 257 |
"(((OpenStack,resize policy)))`drbdmanage_resize_policy`, " |
| 258 |
"(((OpenStack,resource policy)))`drbdmanage_resource_policy`, and " |
| 259 |
"(((OpenStack,snapshot policy)))`drbdmanage_snapshot_policy` configure" |
| 260 |
msgstr "" |
| 261 |
"((OpenStack,resize policy))`drbdmanage_resize_policy`,((OpenStack,resource " |
| 262 |
"policy))`drbdmanage_resource_policy`,((OpenStack,snapshot " |
| 263 |
"policy))`drbdmanage_snapshot_policy` 配置" |
| 264 |
|
| 265 |
#. type: Plain text |
| 266 |
#: openstack.adoc:119 |
| 267 |
msgid "" |
| 268 |
"the behaviour when resizing volumes, resp. creating snapshots or new " |
| 269 |
"resources (freshly create or from a snapshot, etc.)" |
| 270 |
msgstr "重新调整卷大小时的行为。创建快照或新资源(新创建或从快照等)" |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: openstack.adoc:122 |
| 274 |
msgid "These are strings that have to be parseable as JSON blobs, for example" |
| 275 |
msgstr "例如,这些字符串必须可以解析为JSON blob" |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: openstack.adoc:124 |
| 279 |
#, no-wrap |
| 280 |
msgid "\tdrbdmanage_snapshot_policy={'count': '1', 'timeout': '60'}\n" |
| 281 |
msgstr "\tdrbdmanage_snapshot_policy={'count': '1', 'timeout': '60'}\n" |
| 282 |
|
| 283 |
#. type: Plain text |
| 284 |
#: openstack.adoc:127 |
| 285 |
msgid "" |
| 286 |
"See <<s-drbdmanage-deployment-policy>> for details about the available " |
| 287 |
"policies and their configuration items." |
| 288 |
msgstr "有关可用策略及其配置项的详细信息,请参见<<s-drbdmanage-deployment-policy>>。" |
| 289 |
|
| 290 |
#. type: Plain text |
| 291 |
#: openstack.adoc:132 |
| 292 |
msgid "" |
| 293 |
"Please be aware that Python's JSON parser is strict - you'll need to use " |
| 294 |
"single quotes, for instance, and take other JSON specifications and " |
| 295 |
"restrictions into account as well!" |
| 296 |
msgstr "请注意,Python的JSON解析器是严格的 - 例如,您需要使用单引号,并考虑其他JSON规范和限制!" |
| 297 |
|
| 298 |
#. type: Plain text |
| 299 |
#: openstack.adoc:136 |
| 300 |
msgid "" |
| 301 |
"In case you want to call different plugins for this purpose, the " |
| 302 |
"`drbdmanage_resize_plugin`, `drbdmanage_resource_plugin`, and " |
| 303 |
"`drbdmanage_snapshot_plugin` configuration items exist as well." |
| 304 |
msgstr "" |
| 305 |
"如果您想为此目的调用不同的插件,还存在 `drbdmanage_resize_plugin` 、`drbdmanage_resource_plugin` 和 `drbdmanage_snapshot_plugin`配置项。" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: openstack.adoc:142 |
| 309 |
msgid "" |
| 310 |
"`drbdmanage_net_options` resp. `drbdmanage_resource_options` can be used to " |
| 311 |
"set DRBD configuration values on each newly created resource. These already " |
| 312 |
"have sane default values; if you want to override, don't forget to add these" |
| 313 |
" in again!" |
| 314 |
msgstr "" |
| 315 |
"`drbdmanage_net_选项` resp。`drbdmanage_resource_options` 可用于在每个新创建的资源上设置DRBD配置值。这些已经有了正常的默认值;如果要重写,不要忘记再次添加这些值!" |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: openstack.adoc:145 |
| 319 |
msgid "Again, these strings get parsed as JSON blobs. The defaults are" |
| 320 |
msgstr "同样,这些字符串被解析为JSON blob。默认值是" |
| 321 |
|
| 322 |
#. type: Plain text |
| 323 |
#: openstack.adoc:148 |
| 324 |
#, no-wrap |
| 325 |
msgid "" |
| 326 |
" drbdmanage_net_options = {'connect-int': '4', 'allow-two-primaries': 'yes', 'ko-count': '30'}\n" |
| 327 |
" drbdmanage_resource_options = {'auto-promote-timeout': '300'}\n" |
| 328 |
msgstr "" |
| 329 |
" drbdmanage_net_options = {'connect-int': '4', 'allow-two-primaries': 'yes', 'ko-count': '30'}\n" |
| 330 |
" drbdmanage_resource_options = {'auto-promote-timeout': '300'}\n" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: openstack.adoc:155 |
| 334 |
msgid "" |
| 335 |
"`drbdmanage_late_local_assign` and `drbdmanage_late_local_assign_exclude` is" |
| 336 |
" a performance optimization for hyperconverged setups; this needs a bit of " |
| 337 |
"discussion, so please look at the dedicated chapter <<s-openstack-late-" |
| 338 |
"local-assign>>." |
| 339 |
msgstr "" |
| 340 |
"`drbdmanage_late_local_assign`和'drbdmanage_late_local_assign_exclude'是超收敛设置的性能优化;这需要一点讨论,因此请参阅专用章节<<s-openstack-" |
| 341 |
"late-local-assign>>。" |
| 342 |
|
| 343 |
#. type: Plain text |
| 344 |
#: openstack.adoc:158 |
| 345 |
msgid "" |
| 346 |
"These configuration settings can be different from one backend to another." |
| 347 |
msgstr "这些配置设置可以不同于一个后端到另一个后端。" |
| 348 |
|
| 349 |
#. type: Title === |
| 350 |
#: openstack.adoc:162 |
| 351 |
#, no-wrap |
| 352 |
msgid "Choosing the Transport Protocol" |
| 353 |
msgstr "选择传输协议" |
| 354 |
|
| 355 |
#. type: Plain text |
| 356 |
#: openstack.adoc:165 |
| 357 |
msgid "There are two main ways to run DRBD with Cinder:" |
| 358 |
msgstr "使用Cinder运行DRBD的方法主要有两种:" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: openstack.adoc:167 |
| 362 |
msgid "accessing storage via <<s-openstack-iscsi,iSCSI exports>>, and" |
| 363 |
msgstr "通过<<s-openstack-iscsi,iSCSI exports>>和" |
| 364 |
|
| 365 |
#. type: Plain text |
| 366 |
#: openstack.adoc:169 |
| 367 |
msgid "using <<s-openstack-drbd,the DRBD protocol>> on the wire." |
| 368 |
msgstr "使用线路上的drbd协议。" |
| 369 |
|
| 370 |
#. type: Plain text |
| 371 |
#: openstack.adoc:172 |
| 372 |
msgid "" |
| 373 |
"These are not exclusive; you can define multiple backends, have some of them" |
| 374 |
" use iSCSI, and others the DRBD protocol." |
| 375 |
msgstr "这些不是独占的;您可以定义多个后端,其中一些使用iSCSI,另一些使用DRBD协议。" |
| 376 |
|
| 377 |
#. type: Title ==== |
| 378 |
#: openstack.adoc:175 |
| 379 |
#, no-wrap |
| 380 |
msgid "iSCSI Transport" |
| 381 |
msgstr "iSCSI传输" |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: openstack.adoc:180 |
| 385 |
msgid "" |
| 386 |
"The default way to export Cinder volumes is via iSCSI. This brings the " |
| 387 |
"advantage of maximum compatibility - iSCSI can be used with every " |
| 388 |
"hypervisor, be it VMWare, Xen, HyperV, or KVM." |
| 389 |
msgstr "" |
| 390 |
"导出Cinder卷的默认方法是通过iSCSI。这带来了最大兼容性的优势—无论是VMWare、Xen、HyperV还是KVM,iSCSI都可以用于每个虚拟机监控程序。" |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: openstack.adoc:184 |
| 394 |
msgid "" |
| 395 |
"The drawback is that all data has to be sent to a Cinder node, to be " |
| 396 |
"processed by an (userspace) iSCSI daemon; that means that the data needs to " |
| 397 |
"pass the kernel/userspace border, and these transitions will cost some " |
| 398 |
"performance." |
| 399 |
msgstr "" |
| 400 |
"缺点是,所有数据都必须发送到Cinder节点,由(userspace)iSCSI守护进程处理;这意味着数据需要通过内核/userspace边界,这些转换将消耗一些性能。" |
| 401 |
|
| 402 |
#. type: Plain text |
| 403 |
#: openstack.adoc:186 |
| 404 |
msgid "TODO: performance comparision" |
| 405 |
msgstr "TODO:性能比较" |
| 406 |
|
| 407 |
#. type: Title ==== |
| 408 |
#: openstack.adoc:189 |
| 409 |
#, no-wrap |
| 410 |
msgid "DRBD Transport" |
| 411 |
msgstr "DRBD传输" |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: openstack.adoc:196 |
| 415 |
msgid "" |
| 416 |
"The alternative is to get the data to the VMs by using DRBD as the transport" |
| 417 |
" protocol. This means that DRBD 9footnote:[The kernel module and userspace, " |
| 418 |
"and currently the DRBD Manage daemon too; but please see the note at " |
| 419 |
"<<s-openstack-drbd-external-NOTE>>.] needs to be installed on the Nova nodes" |
| 420 |
" too, and so restricts them to Linux with KVM at the moment." |
| 421 |
msgstr "" |
| 422 |
"另一种方法是使用DRBD作为传输协议将数据传输到VMs。这意味着DRBD " |
| 423 |
"9footnote:[内核模块和用户空间,以及当前DRBD管理守护进程;但是请参见<<s-openstack-DRBD-external-" |
| 424 |
"note>.]中的说明,也需要安装在Nova节点上,因此目前将它们限制为带KVM的Linux。" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: openstack.adoc:202 |
| 428 |
msgid "" |
| 429 |
"One advantage of that solution is that the storage access requests of the " |
| 430 |
"VMs can be sent via the DRBD kernel module to the storage nodes, which can " |
| 431 |
"then directly access the allocated LVs; this means no Kernel/Userspace " |
| 432 |
"transitions on the data path, and consequently better performance. Combined " |
| 433 |
"with RDMA capable hardware you should get about the same performance as with" |
| 434 |
" VMs accessing a FC backend directly." |
| 435 |
msgstr "" |
| 436 |
"该解决方案的一个优点是,vm的存储访问请求可以通过DRBD内核模块发送到存储节点,然后存储节点可以直接访问分配的lv;这意味着数据路径上没有内核/用户空间转换,因此性能更好。结合支持RDMA的硬件,您应该获得与VMs直接访问FC后端相同的性能。" |
| 437 |
|
| 438 |
#. type: Plain text |
| 439 |
#: openstack.adoc:206 |
| 440 |
msgid "" |
| 441 |
"Another advantage is that you will be implicitly benefitting from the HA " |
| 442 |
"background of DRBD: using multiple storage nodes, possibly available over " |
| 443 |
"different network connections, means redundancy and avoiding a single point " |
| 444 |
"of failure." |
| 445 |
msgstr "另一个优点是,您将从DRBD的HA背景中隐式获益:使用多个存储节点(可能在不同的网络连接上可用)意味着冗余并避免单点故障。" |
| 446 |
|
| 447 |
#. type: Plain text |
| 448 |
#: openstack.adoc:212 |
| 449 |
msgid "" |
| 450 |
"Currently, you'll need to have the hypervisor nodes be part of the DRBD " |
| 451 |
"Manage cluster." |
| 452 |
msgstr "目前,您需要让hypervisor节点成为DRBD Manage集群的一部分。" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: openstack.adoc:215 |
| 456 |
msgid "" |
| 457 |
"When DRBD Manage becomes able to process \"__external nodes__\", the " |
| 458 |
"requirements on the hypervisor nodes will shrink to DRBD 9 kernel module and" |
| 459 |
" -userspace only." |
| 460 |
msgstr "当DRBD Manage能够处理 \"外部节点\" 时,hypervisor节点上的需求将缩小到仅限DRBD 9内核模块和-用户空间。" |
| 461 |
|
| 462 |
#. type: Title ==== |
| 463 |
#: openstack.adoc:219 |
| 464 |
#, no-wrap |
| 465 |
msgid "Configuring the Transport Protocol" |
| 466 |
msgstr "配置传输协议" |
| 467 |
|
| 468 |
#. type: Plain text |
| 469 |
#: openstack.adoc:226 |
| 470 |
msgid "" |
| 471 |
"In the storage stanzas in `cinder.conf` you can define the volume driver to " |
| 472 |
"use; you can use different drivers for different backend configurations, i.e." |
| 473 |
" you can define a 2-way-redundancy iSCSI backend, a 2-way-redundancy DRBD " |
| 474 |
"backend, and a 3-way DRBD backend at the same time. Horizonfootnote:[The " |
| 475 |
"Openstack GUI] should offer these storage backends at volume creation time." |
| 476 |
msgstr "" |
| 477 |
"在 `cinder.conf` 中的存储节中,您可以定义要使用的卷驱动程序;您可以为不同的后端配置使用不同的驱动程序,即,您可以同时定义一个双向冗余的iSCSI后端、一个双向冗余的DRBD后端和一个三向DRBD后端。Horizon footnote:[Openstack" |
| 478 |
" GUI]应该在卷创建时提供这些存储后端。" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: openstack.adoc:228 |
| 482 |
msgid "The available configuration items for the two drivers are" |
| 483 |
msgstr "两个驱动程序的可用配置项是" |
| 484 |
|
| 485 |
#. type: Plain text |
| 486 |
#: openstack.adoc:230 |
| 487 |
msgid "for iSCSI:" |
| 488 |
msgstr "对于iSCSI:" |
| 489 |
|
| 490 |
#. type: Plain text |
| 491 |
#: openstack.adoc:234 |
| 492 |
#, no-wrap |
| 493 |
msgid "" |
| 494 |
"volume_driver=cinder.volume.drivers.drbdmanagedrv.DrbdManageIscsiDriver\n" |
| 495 |
msgstr "" |
| 496 |
"volume_driver=cinder.volume.drivers.drbdmanagedrv.DrbdManageIscsiDriver\n" |
| 497 |
|
| 498 |
#. type: Plain text |
| 499 |
#: openstack.adoc:237 |
| 500 |
msgid "and" |
| 501 |
msgstr "和" |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: openstack.adoc:239 |
| 505 |
msgid "for DRBD:" |
| 506 |
msgstr "对于DRBD:" |
| 507 |
|
| 508 |
#. type: Plain text |
| 509 |
#: openstack.adoc:243 |
| 510 |
#, no-wrap |
| 511 |
msgid "volume_driver=cinder.volume.drivers.drbdmanagedrv.DrbdManageDrbdDriver\n" |
| 512 |
msgstr "" |
| 513 |
"volume_driver=cinder.volume.drivers.drbdmanagedrv.DrbdManageDrbdDriver\n" |
| 514 |
|
| 515 |
#. type: Plain text |
| 516 |
#: openstack.adoc:249 |
| 517 |
msgid "" |
| 518 |
"The old class name \"DrbdManageDriver\" is being kept for the time because " |
| 519 |
"of compatibility reasons; it's just an alias to the iSCSI driver." |
| 520 |
msgstr "由于兼容性原因,旧类名 \"DrbdManageDriver\" 暂时保留;它只是iSCSI驱动程序的别名。" |
| 521 |
|
| 522 |
#. type: Title === |
| 523 |
#: openstack.adoc:252 |
| 524 |
#, no-wrap |
| 525 |
msgid "Some further notes" |
| 526 |
msgstr "一些进一步的说明" |
| 527 |
|
| 528 |
#. type: Title ==== |
| 529 |
#: openstack.adoc:256 |
| 530 |
#, no-wrap |
| 531 |
msgid "Free space reporting" |
| 532 |
msgstr "可用空间报告" |
| 533 |
|
| 534 |
#. type: Plain text |
| 535 |
#: openstack.adoc:260 |
| 536 |
msgid "" |
| 537 |
"The free space that the cinder driver reports is fetched from DRBD Manage, " |
| 538 |
"using the defined <<s-openstack-addtl-conf,`drbdmanage_redundancy`>> " |
| 539 |
"setting." |
| 540 |
msgstr "" |
| 541 |
"使用定义的<<s-openstack-addtl-conf,`drbdmanage_redundancy`>>设置从DRBD " |
| 542 |
"Manage获取cinder驱动程序报告的可用空间。" |
| 543 |
|
| 544 |
#. type: Plain text |
| 545 |
#: openstack.adoc:268 |
| 546 |
msgid "" |
| 547 |
"This will return the size for the single largest volume that can be created " |
| 548 |
"with this replication count; so, with 10 storage nodes each having 1TiB free" |
| 549 |
" space, the value returned for a redundancy count of three will be 1TiB, and" |
| 550 |
" allocating such a volume will not change the free space value, as there are" |
| 551 |
" three more nodes with that much free space available. For storage nodes " |
| 552 |
"with 20GiB, 15GiB, 10GiB, and 5GiB space available, the free space for " |
| 553 |
"`drbdmanage_redundancy` being 3 will be 10GiB, and 15GiB for 2." |
| 554 |
msgstr "" |
| 555 |
"这将返回可使用此复制计数创建的单个最大卷的大小;因此,如果10个存储节点每个都有1TiB可用空间,则为3个冗余计数返回的值将为1TiB,并且分配这样的卷不会更改可用空间值,因为还有三个节点有那么多可用空间。对于具有20GiB、15GiB、10GiB和5GiB可用空间的存储节点, `drbdmanage` 冗余的可用空间为: 3冗余时将为10GiB,而2冗余时将为15GiB。" |
| 556 |
|
| 557 |
#. type: Plain text |
| 558 |
#: openstack.adoc:272 |
| 559 |
msgid "" |
| 560 |
"This issue is further muddled by thin LVM pools (one or multiple, depending " |
| 561 |
"on storage backend in DRBD Manage), and snapshots taken from Cinder volumes." |
| 562 |
msgstr "瘦LVM池(一个或多个,取决于DRBD Manage中的存储后端)和从Cinder卷中获取的快照进一步混淆了此问题。" |
| 563 |
|
| 564 |
#. type: Plain text |
| 565 |
#: openstack.adoc:274 |
| 566 |
msgid "" |
| 567 |
"For further information, please see the Openstack Specs about Thin " |
| 568 |
"Provisioning" |
| 569 |
msgstr "有关详细信息,请参阅有关精简配置的Openstack规范" |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: openstack.adoc:278 |
| 573 |
msgid "" |
| 574 |
"there's the https://blueprints.launchpad.net/cinder/+spec/over-subscription-" |
| 575 |
"in-thin-provisioning[blueprint] and the https://github.com/openstack/cinder-" |
| 576 |
"specs/blob/master/specs/kilo/over-subscription-in-thin-" |
| 577 |
"provisioning.rst[text]." |
| 578 |
msgstr "" |
| 579 |
"参阅 https://blueprints.launchpad.net/cinder/+spec/over-subscription-" |
| 580 |
"in-thin-provisioning[blueprint] 和 https://github.com/openstack/cinder-" |
| 581 |
"specs/blob/master/specs/kilo/over-subscription-in-thin-" |
| 582 |
"provisioning.rst[text]." |
| 583 |
|
| 584 |
#. type: Title ==== |
| 585 |
#: openstack.adoc:281 |
| 586 |
#, no-wrap |
| 587 |
msgid "Hyperconverged Setups" |
| 588 |
msgstr "超收敛设置" |
| 589 |
|
| 590 |
#. type: Plain text |
| 591 |
#: openstack.adoc:289 |
| 592 |
msgid "" |
| 593 |
"The configuration item `drbdmanage_late_local_assign` (available in the DRBD" |
| 594 |
" Manage Cinder driver from 1.2.0 on, requiring DRBD Manage 0.98.3 or better)" |
| 595 |
" is a performance optimization for hyperconverged setups. + With that " |
| 596 |
"feature, the driver tries to get a local copy of the data assigned to the " |
| 597 |
"hypervisor; that in turn will speed up read IOs, as these won't have to go " |
| 598 |
"across the network." |
| 599 |
msgstr "" |
| 600 |
"配置项 `drbdmanage_late_local_assign`(从1.2.0开始在DRBD Manage Cinder驱动程序中提供,要求DRBD" |
| 601 |
" Manage " |
| 602 |
"0.98.3或更高版本)是用于超收敛设置的性能优化。+ 有了这个特性,驱动程序会尝试获取分配给hypervisor的数据的本地副本;这反过来会加快读取IO的速度,因为这些IO不必通过网络。" |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: openstack.adoc:298 |
| 606 |
msgid "" |
| 607 |
"At the time of writing, Nova doesn't pass enough information to Cinder; " |
| 608 |
"Cinder isn't told which hypervisor will be used. + So the DRBD Manage driver" |
| 609 |
" assigns all but one copies at `create_volume` time; the last one is done in" |
| 610 |
" the `attach_volume` step, when the hypervisor is known. If this hypervisor " |
| 611 |
"is out of space, defined as a storage-less node in DRBD Manage, or otherwise" |
| 612 |
" not eligible to receive a copy, any other storage node is used instead, and" |
| 613 |
" the target node will receive a _client_ assignment only." |
| 614 |
msgstr "" |
| 615 |
"在编写本文时,Nova没有向Cinder传递足够的信息;Cinder没有被告知将使用哪个hypervisor。+ 因此,DRBD " |
| 616 |
"Manage驱动程序在 `create_volume` 时间分配除了一个拷贝之外的所有拷贝;最后一个拷贝是在 `attach_volume` 步骤中完成的,这时hypervisor是已知的。如果此虚拟机监控程序空间不足,在DRBD" |
| 617 |
" Manage中被定义为无存储节点,或者没有资格接收副本,则使用任何其他存储节点,目标节点将仅接收一个客户机分配。" |
| 618 |
|
| 619 |
#. type: Plain text |
| 620 |
#: openstack.adoc:305 |
| 621 |
msgid "" |
| 622 |
"Because an image might be copied to the volume before it gets attached to a " |
| 623 |
"VM, the \"local\" assignment can't simply be done on the first " |
| 624 |
"accessfootnote:[If it assigned on first access, the image copy node (Glance)" |
| 625 |
" would receive the copy of the data]. The Cinder driver must be told which " |
| 626 |
"nodes are not eligible for local copies; this can be done via " |
| 627 |
"`drbdmanage_late_local_assign_exclude`." |
| 628 |
msgstr "" |
| 629 |
"由于映像可能在附加到虚拟机之前复制到卷,因此 \"本地\" 分配不能简单地在第一次访问时完成footprint:[如果在第一次访问时分配,则映像复制节点(Glance)将接收数据的副本]。必须告知Cinder驱动程序哪些节点不符合本地副本的条件;这可以通过 `drbdmanage_late_local_assign_exclude` 完成。" |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: openstack.adoc:311 |
| 633 |
msgid "" |
| 634 |
"For volumes that get cloned from an image stored within Cinder (via a DRBD " |
| 635 |
"Manage snapshot), the new resource will be empty until the `attach_volume` " |
| 636 |
"call; at that time the Cinder driver can decide on which nodes the volumes " |
| 637 |
"will be deployed, and can actually clone the volume on these." |
| 638 |
msgstr "" |
| 639 |
"对于从存储在Cinder中的映像(通过DRBD管理快照)中克隆的卷,在调用 `附加卷` 之前,新资源将为空;此时Cinder驱动程序可以决定将部署卷的节点,并可以实际在这些节点上克隆卷。" |
| 640 |
|
| 641 |
#. type: Block title |
| 642 |
#: openstack.adoc:313 |
| 643 |
#, no-wrap |
| 644 |
msgid "Free Space Misreported" |
| 645 |
msgstr "虚报自由空间" |
| 646 |
|
| 647 |
#. type: Plain text |
| 648 |
#: openstack.adoc:319 |
| 649 |
msgid "" |
| 650 |
"Late allocation invariably means that the free space numbers are wrong. You " |
| 651 |
"might prepare 300 VMs, only to find out that you're running out of disk " |
| 652 |
"space when their volumes are in the middle of synchronizing." |
| 653 |
msgstr "延迟分配总是意味着可用空间号是错误的。您可能准备了300个虚拟机,但在它们的卷正在同步时发现磁盘空间不足。" |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: openstack.adoc:322 |
| 657 |
msgid "" |
| 658 |
"But that is a common problem with all thin allocation schemes, so we won't " |
| 659 |
"discuss that in more details here." |
| 660 |
msgstr "但是这是所有瘦分配方案的一个常见问题,因此我们在这里不再详细讨论这个问题。" |
| 661 |
|
| 662 |
#. type: Plain text |
| 663 |
#: openstack.adoc:326 |
| 664 |
msgid "To summarize:" |
| 665 |
msgstr "总结一下:" |
| 666 |
|
| 667 |
#. type: Plain text |
| 668 |
#: openstack.adoc:328 |
| 669 |
msgid "" |
| 670 |
"You'll need the DRBD Manage Cinder driver 1.2.0 or later, and DRBD Manage " |
| 671 |
"0.98.3 or later." |
| 672 |
msgstr "您将需要DRBD Manage Cinder driver 1.2.0或更高版本,以及DRBD Manage 0.98.3或更高版本。" |
| 673 |
|
| 674 |
#. type: Plain text |
| 675 |
#: openstack.adoc:330 |
| 676 |
msgid "" |
| 677 |
"The <<s-openstack-drbd,DRBD transport protocol>> must be used; iSCSI won't " |
| 678 |
"offer any locality benefits." |
| 679 |
msgstr "必须使用<<s-openstack-drbd,DRBD transport protocol>>;iSCSI不会提供任何本地好处。" |
| 680 |
|
| 681 |
#. type: Plain text |
| 682 |
#: openstack.adoc:332 |
| 683 |
msgid "" |
| 684 |
"The <<s-openstack-redundancy,`drbdmanage_redundancy` setting>> must be set " |
| 685 |
"to at least two copies." |
| 686 |
msgstr "" |
| 687 |
"必须将<<s-openstack-redundancy,`drbdmanage_redundancy` setting>>设置为至少两个副本。" |
| 688 |
|
| 689 |
#. type: Plain text |
| 690 |
#: openstack.adoc:334 |
| 691 |
msgid "" |
| 692 |
"To generally enable this feature, set `drbdmanage_late_local_assign` to " |
| 693 |
"`True`." |
| 694 |
msgstr "要一般启用此功能,请将 `drbdmanage_late_local_assign` 设置为 `True` 。" |
| 695 |
|
| 696 |
#. type: Plain text |
| 697 |
#: openstack.adoc:336 |
| 698 |
msgid "" |
| 699 |
"To specify which hosts should *not* get a local copy, set " |
| 700 |
"`drbdmanage_late_local_assign_exclude` to a comma-separated list of " |
| 701 |
"hostnames; this should typically include Glance and the Cinder-controller " |
| 702 |
"nodes (but not the Cinder-storage nodes!)." |
| 703 |
msgstr "" |
| 704 |
"若要指定哪些主机 *不应* 获取本地副本,请将 `drbdmanage_late_local_assign_exclude` 设置为以逗号分隔的主机名列表;这通常应包括Glance和Cinder控制器节点(但不包括Cinder存储节点!)。" |
| 705 |
|
| 706 |
#. type: Plain text |
| 707 |
#: openstack.adoc:338 |
| 708 |
msgid "Take care to not run out of disk space." |
| 709 |
msgstr "注意不要用完磁盘空间。" |
| 710 |
|
| 711 |
#. There is a performance comparison in preparion, showing iSCSI/local/DRBD |
| 712 |
#. hyperconverged |
| 713 |
#. type: Plain text |
| 714 |
#: openstack.adoc:345 |
| 715 |
msgid "Here are a few links that show you collected performance data." |
| 716 |
msgstr "这里有几个链接,显示您收集的性能数据。" |
| 717 |
|
| 718 |
#. type: Plain text |
| 719 |
#: openstack.adoc:349 |
| 720 |
msgid "" |
| 721 |
"https://www.3ware.co.jp[Thirdware Inc.] did a Ceph vs. DRBD9 comparison, " |
| 722 |
"too; the japanese original can be found in their " |
| 723 |
"https://www.3ware.co.jp/download/technical-docs[technical documentation] " |
| 724 |
"area." |
| 725 |
msgstr "" |
| 726 |
"https://www.3ware.co.jp[Thirdware " |
| 727 |
"Inc.]也对Ceph和DRBD9进行了比较;日语原版可以在其 https://www.3ware.co.jp/download/technical " |
| 728 |
"docs[technical documentation]区域找到。" |
| 729 |
|
| 730 |
#. type: Plain text |
| 731 |
#: openstack.adoc:350 |
| 732 |
msgid "" |
| 733 |
"A translated (English) version is available on request at [email protected]." |
| 734 |
msgstr "如有要求,可通过[email protected]获得翻译(英文)版本。" |
| 735 |
|
| 736 |
#. type: Plain text |
| 737 |
#: openstack.adoc:352 |
| 738 |
msgid "http://links.linbit.com/Ceph-DRBD9[\"__Ceph vs. DRBD9 Performance" |
| 739 |
msgstr "http://links.linbit.com/Ceph-DRBD9[\"__Ceph vs. DRBD9性能" |
| 740 |
|
| 741 |
#. type: Plain text |
| 742 |
#: openstack.adoc:354 |
| 743 |
msgid "" |
| 744 |
"Comparison__\"] discusses IOPs, bandwidth, and IO latency; this one needs a " |
| 745 |
"free registration on the LINBIT site." |
| 746 |
msgstr "\"]讨论了IOPs、带宽和IO延迟;这需要在LINBIT站点上进行免费注册。" |