| 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-06 12:05+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 |
#: ocfs2.adoc:2 |
| 21 |
#, no-wrap |
| 22 |
msgid "Using OCFS2 with DRBD" |
| 23 |
msgstr "在DRBD中使用OCFS2" |
| 24 |
|
| 25 |
#. type: Plain text |
| 26 |
#: ocfs2.adoc:7 |
| 27 |
msgid "" |
| 28 |
"indexterm:[OCFS2]indexterm:[Oracle Cluster File System]This chapter outlines the steps necessary to set up a DRBD " |
| 29 |
"resource as a block device holding a shared Oracle Cluster File System, version 2 (OCFS2)." |
| 30 |
msgstr "" |
| 31 |
"indexterm:[OCFS2]indexterm:[Oracle Cluster File System]本章概述了将DRBD资源设置为包含共享Oracle Cluster文件系统版本" |
| 32 |
"2(OCFS2)的块设备所需的步骤。" |
| 33 |
|
| 34 |
#. type: delimited block = |
| 35 |
#: ocfs2.adoc:13 |
| 36 |
msgid "" |
| 37 |
"All cluster file systems _require_ fencing - not only via the DRBD resource, but STONITH! A faulty member _must_ be " |
| 38 |
"killed." |
| 39 |
msgstr "所有的群集文件系统都需要围栏-不仅通过DRBD资源,而且还需要STONITH!必须kill掉有问题的成员。" |
| 40 |
|
| 41 |
#. type: delimited block = |
| 42 |
#: ocfs2.adoc:15 |
| 43 |
msgid "You'll want these settings:" |
| 44 |
msgstr "您需要这些设置:" |
| 45 |
|
| 46 |
#. type: delimited block = |
| 47 |
#: ocfs2.adoc:24 |
| 48 |
#, no-wrap |
| 49 |
msgid "" |
| 50 |
"\tnet {\n" |
| 51 |
"\t\tfencing resource-and-stonith;\n" |
| 52 |
"\t}\n" |
| 53 |
"\thandlers {\n" |
| 54 |
"\t\t# Make sure the other node is confirmed\n" |
| 55 |
"\t\t# dead after this!\n" |
| 56 |
"\t\toutdate-peer \"/sbin/kill-other-node.sh\";\n" |
| 57 |
"\t}\n" |
| 58 |
msgstr "" |
| 59 |
"\tnet {\n" |
| 60 |
"\t\tfencing resource-and-stonith;\n" |
| 61 |
"\t}\n" |
| 62 |
"\thandlers {\n" |
| 63 |
"\t\t# Make sure the other node is confirmed\n" |
| 64 |
"\t\t# dead after this!\n" |
| 65 |
"\t\toutdate-peer \"/sbin/kill-other-node.sh\";\n" |
| 66 |
"\t}\n" |
| 67 |
|
| 68 |
#. type: delimited block = |
| 69 |
#: ocfs2.adoc:28 |
| 70 |
msgid "" |
| 71 |
"There must be _no_ volatile caches! You might take a few hints of the page at https://fedorahosted.org/cluster/wiki/" |
| 72 |
"DRBD_Cookbook, although that's about GFS2, not OCFS2." |
| 73 |
msgstr "" |
| 74 |
"一定有不稳定的缓存!你可能会在https://fedorahosted.org/cluster/wiki/DRBD_Cookbook 上得到一些提示,尽管那是关于GFS2的," |
| 75 |
"而不是OCFS2的。" |
| 76 |
|
| 77 |
#. type: Title === |
| 78 |
#: ocfs2.adoc:33 |
| 79 |
#, no-wrap |
| 80 |
msgid "OCFS2 primer" |
| 81 |
msgstr "OCFS2基础" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: ocfs2.adoc:43 |
| 85 |
msgid "" |
| 86 |
"The Oracle Cluster File System, version 2 (OCFS2) is a concurrent access shared storage file system developed by " |
| 87 |
"Oracle Corporation. Unlike its predecessor OCFS, which was specifically designed and only suitable for Oracle " |
| 88 |
"database payloads, OCFS2 is a general-purpose filesystem that implements most POSIX semantics. The most common use " |
| 89 |
"case for OCFS2 is arguably Oracle Real Application Cluster (RAC), but OCFS2 may also be used for load-balanced NFS " |
| 90 |
"clusters, for example." |
| 91 |
msgstr "" |
| 92 |
"Oracle集群文件系统(OCFS2)是Oracle公司开发的一个并发访问共享存储文件系统。与它的前身OCFS不同,OCFS是专门设计的,只适" |
| 93 |
"用于Oracle数据库有效负载,OCFS2是实现大多数POSIX语义的通用文件系统。OCFS2最常见的用例可以说是Oracle Real Application " |
| 94 |
"Cluster(RAC),但是OCFS2也可以用于实现比如负载平衡的NFS集群。" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: ocfs2.adoc:53 |
| 98 |
msgid "" |
| 99 |
"Although originally designed for use with conventional shared storage devices, OCFS2 is equally well suited to be " |
| 100 |
"deployed on <<s-dual-primary-mode,dual-Primary DRBD>>. Applications reading from the filesystem may benefit from " |
| 101 |
"reduced read latency due to the fact that DRBD reads from and writes to local storage, as opposed to the SAN devices " |
| 102 |
"OCFS2 otherwise normally runs on. In addition, DRBD adds redundancy to OCFS2 by adding an additional copy to every " |
| 103 |
"filesystem image, as opposed to just a single filesystem image that is merely shared." |
| 104 |
msgstr "" |
| 105 |
"虽然OCFS2最初设计用于传统的共享存储设备,但它同样非常适合部署在<<s-dual-primary-mode,dual-Primary DRBD>>上。从文件系统" |
| 106 |
"中读取的应用程序可能会受益于减少的读取延迟,这是因为DRBD从本地存储中读取和写入,而不是在正常情况下运行的SAN设备OCFS2。" |
| 107 |
"此外,DRBD通过向每个文件系统映像添加一个额外的副本来增加OCFS2的冗余,而不是仅仅共享一个文件系统映像。" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: ocfs2.adoc:61 |
| 111 |
msgid "" |
| 112 |
"Like other shared cluster file systems such as <<ch-gfs,GFS>>, OCFS2 allows multiple nodes to access the same storage " |
| 113 |
"device, in read/write mode, simultaneously without risking data corruption. It does so by using a Distributed Lock " |
| 114 |
"Manager (DLM) which manages concurrent access from cluster nodes. The DLM itself uses a virtual file system " |
| 115 |
"(`ocfs2_dlmfs`) which is separate from the actual OCFS2 file systems present on the system." |
| 116 |
msgstr "" |
| 117 |
"与其他共享群集文件系统(如<<ch-gfs,GFS>>)一样,OCFS2允许多个节点以读/写模式同时访问同一存储设备,而不会导致数据损坏。" |
| 118 |
"它通过使用分布式锁管理器(DLM)来管理来自集群节点的并发访问。DLM本身使用一个虚拟文件系统(`ocfs2_dlmfs`),它独立于系" |
| 119 |
"统上的实际ocfs2文件系统。" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: ocfs2.adoc:66 |
| 123 |
msgid "" |
| 124 |
"OCFS2 may either use an intrinsic cluster communication layer to manage cluster membership and filesystem mount and " |
| 125 |
"unmount operation, or alternatively defer those tasks to the <<ch-pacemaker,Pacemaker>>cluster infrastructure." |
| 126 |
msgstr "" |
| 127 |
"OCFS2可以使用一个内在的集群通信层来管理集群成员和文件系统的装载和卸载操作,或者将这些任务推迟到<<ch-pacemaker," |
| 128 |
"Pacemaker>>集群基础设施。" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: ocfs2.adoc:72 |
| 132 |
msgid "" |
| 133 |
"OCFS2 is available in SUSE Linux Enterprise Server (where it is the primarily supported shared cluster file system), " |
| 134 |
"CentOS, Debian GNU/Linux, and Ubuntu Server Edition. Oracle also provides packages for Red Hat Enterprise Linux " |
| 135 |
"(RHEL). This chapter assumes running OCFS2 on a SUSE Linux Enterprise Server system." |
| 136 |
msgstr "" |
| 137 |
"OCFS2在SUSE Linux企业服务器(它是主要受支持的共享集群文件系统)、CentOS、Debian GNU/Linux和Ubuntu服务器版本中可用。" |
| 138 |
"Oracle还为Red Hat Enterprise Linux(RHEL)提供了软件包。本章假设在SUSE Linux企业服务器系统上运行OCFS2。" |
| 139 |
|
| 140 |
#. type: Title === |
| 141 |
#: ocfs2.adoc:74 |
| 142 |
#, no-wrap |
| 143 |
msgid "Creating a DRBD resource suitable for OCFS2" |
| 144 |
msgstr "创建适合OCFS2的DRBD资源" |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: ocfs2.adoc:85 |
| 148 |
msgid "" |
| 149 |
"Since OCFS2 is a shared cluster file system expecting concurrent read/write storage access from all cluster nodes, " |
| 150 |
"any DRBD resource to be used for storing a OCFS2 filesystem must be configured in <<s-dual-primary-mode,dual-primary " |
| 151 |
"mode>>. Also, it is recommended to use some of DRBD's <<s-automatic-split-brain-recovery-configuration,features for " |
| 152 |
"automatic recovery from split brain>>. To do all this, include the following lines in the resource configuration: " |
| 153 |
"indexterm:[drbd.conf]" |
| 154 |
msgstr "" |
| 155 |
"由于OCFS2是一个共享的群集文件系统,需要从所有群集节点进行并发读/写存储访问,因此用于存储OCFS2文件系统的任何DRBD资源都" |
| 156 |
"必须在<<s-dual-primary-mode,dual-primary mode>>中配置。此外,建议使用一些DRBD的<<s-automatic-split-brain-recovery-" |
| 157 |
"configuration,features for automatic recovery from split brain>>。为此,在资源配置中包括以下行:indexterm:[drbd.conf]" |
| 158 |
|
| 159 |
#. type: delimited block - |
| 160 |
#: ocfs2.adoc:98 |
| 161 |
#, no-wrap |
| 162 |
msgid "" |
| 163 |
"resource <resource> {\n" |
| 164 |
" net {\n" |
| 165 |
" # allow-two-primaries yes;\n" |
| 166 |
" after-sb-0pri discard-zero-changes;\n" |
| 167 |
" after-sb-1pri discard-secondary;\n" |
| 168 |
" after-sb-2pri disconnect;\n" |
| 169 |
" ...\n" |
| 170 |
" }\n" |
| 171 |
" ...\n" |
| 172 |
"}\n" |
| 173 |
msgstr "" |
| 174 |
"resource <resource> {\n" |
| 175 |
" net {\n" |
| 176 |
" # allow-two-primaries yes;\n" |
| 177 |
" after-sb-0pri discard-zero-changes;\n" |
| 178 |
" after-sb-1pri discard-secondary;\n" |
| 179 |
" after-sb-2pri disconnect;\n" |
| 180 |
" ...\n" |
| 181 |
" }\n" |
| 182 |
" ...\n" |
| 183 |
"}\n" |
| 184 |
|
| 185 |
#. type: delimited block = |
| 186 |
#: ocfs2.adoc:103 |
| 187 |
msgid "" |
| 188 |
"By setting auto-recovery policies, you are effectively configuring automatic data-loss! Be sure you understand the " |
| 189 |
"implications." |
| 190 |
msgstr "通过设置自动恢复策略,您可以有效地配置自动数据丢失!一定要明白其中的含义。" |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: ocfs2.adoc:109 |
| 194 |
msgid "" |
| 195 |
"It is not recommended to set the `allow-two-primaries` option to `yes` upon initial configuration. You should do so " |
| 196 |
"after the initial resource synchronization has completed." |
| 197 |
msgstr "不建议在初始配置时将 `allow-two-primaries` 选项设置为 `yes` 。您应该在初始资源同步完成后执行此操作。" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: ocfs2.adoc:116 |
| 201 |
msgid "" |
| 202 |
"Once you have added these options to <<ch-configure,your freshly-configured resource>>, you may <<s-first-time-up," |
| 203 |
"initialize your resource as you normally would>>. After you set the indexterm:[drbd.conf]`allow-two-primaries` option " |
| 204 |
"to `yes` for this resource, you will be able to <<s-switch-resource-roles,promote the resource>>to the primary role " |
| 205 |
"on both nodes." |
| 206 |
msgstr "" |
| 207 |
"一旦您将这些选项添加到<<ch-configure,your freshly-configured resource>>中,您就可以<<s-first-time-up,initialize your " |
| 208 |
"resource as you normally would>>. 当您设置了indexterm:[drbd.conf] `allow-two-primaries` 选项为 `yes` , 你就可以<<s-" |
| 209 |
"switch-resource-roles,promote the resource>>将两节点角色都提升为主要角色。" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: ocfs2.adoc:120 |
| 213 |
msgid "" |
| 214 |
"With DRBD 9.1 it will be possible to have more than two nodes in the _Primary_ role; with DRBD 9.0 you can only use " |
| 215 |
"two primaries, but more nodes can be in _Secondary_ role to provide more redundancy." |
| 216 |
msgstr "" |
| 217 |
"在DRBD 9.1中,可能有两个以上的节点处于主要角色;在DRBD 9.0中,只能使用两个主要角色,但可以有更多的节点处于次要角色以提" |
| 218 |
"供更多冗余。" |
| 219 |
|
| 220 |
#. type: Title === |
| 221 |
#: ocfs2.adoc:123 |
| 222 |
#, no-wrap |
| 223 |
msgid "Creating an OCFS2 filesystem" |
| 224 |
msgstr "创建OCFS2文件系统" |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: ocfs2.adoc:126 |
| 228 |
msgid "Now, use OCFS2's `mkfs` implementation to create the file system:" |
| 229 |
msgstr "Now, use OCFS2's `mkfs` implementation to create the file system:" |
| 230 |
|
| 231 |
#. type: delimited block - |
| 232 |
#: ocfs2.adoc:144 |
| 233 |
#, no-wrap |
| 234 |
msgid "" |
| 235 |
"# mkfs -t ocfs2 -N 2 -L ocfs2_drbd0 /dev/drbd0\n" |
| 236 |
"mkfs.ocfs2 1.4.0\n" |
| 237 |
"Filesystem label=ocfs2_drbd0\n" |
| 238 |
"Block size=1024 (bits=10)\n" |
| 239 |
"Cluster size=4096 (bits=12)\n" |
| 240 |
"Volume size=205586432 (50192 clusters) (200768 blocks)\n" |
| 241 |
"7 cluster groups (tail covers 4112 clusters, rest cover 7680 clusters)\n" |
| 242 |
"Journal size=4194304\n" |
| 243 |
"Initial number of node slots: 2\n" |
| 244 |
"Creating bitmaps: done\n" |
| 245 |
"Initializing superblock: done\n" |
| 246 |
"Writing system files: done\n" |
| 247 |
"Writing superblock: done\n" |
| 248 |
"Writing backup superblock: 0 block(s)\n" |
| 249 |
"Formatting Journals: done\n" |
| 250 |
"Writing lost+found: done\n" |
| 251 |
"mkfs.ocfs2 successful\n" |
| 252 |
msgstr "" |
| 253 |
"# mkfs -t ocfs2 -N 2 -L ocfs2_drbd0 /dev/drbd0\n" |
| 254 |
"mkfs.ocfs2 1.4.0\n" |
| 255 |
"Filesystem label=ocfs2_drbd0\n" |
| 256 |
"Block size=1024 (bits=10)\n" |
| 257 |
"Cluster size=4096 (bits=12)\n" |
| 258 |
"Volume size=205586432 (50192 clusters) (200768 blocks)\n" |
| 259 |
"7 cluster groups (tail covers 4112 clusters, rest cover 7680 clusters)\n" |
| 260 |
"Journal size=4194304\n" |
| 261 |
"Initial number of node slots: 2\n" |
| 262 |
"Creating bitmaps: done\n" |
| 263 |
"Initializing superblock: done\n" |
| 264 |
"Writing system files: done\n" |
| 265 |
"Writing superblock: done\n" |
| 266 |
"Writing backup superblock: 0 block(s)\n" |
| 267 |
"Formatting Journals: done\n" |
| 268 |
"Writing lost+found: done\n" |
| 269 |
"mkfs.ocfs2 successful\n" |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: ocfs2.adoc:150 |
| 273 |
msgid "" |
| 274 |
"This will create an OCFS2 file system with two node slots on `/dev/drbd0`, and set the filesystem label to " |
| 275 |
"`ocfs2_drbd0`. You may specify other options on `mkfs` invocation; please see the `mkfs.ocfs2` system manual page for " |
| 276 |
"details." |
| 277 |
msgstr "" |
| 278 |
"这将在 `/dev/drbd0` 上创建一个具有两个节点插槽的OCFS2文件系统,并将文件系统标签设置为 `ocfs2_drbd0`。您可以在 `mkfs` " |
| 279 |
"调用中指定其他选项;有关详细信息,请参阅 `mkfs.ocfs2` 系统手册页。" |
| 280 |
|
| 281 |
#. type: Title === |
| 282 |
#: ocfs2.adoc:152 |
| 283 |
#, no-wrap |
| 284 |
msgid "Pacemaker OCFS2 management" |
| 285 |
msgstr "Pacemaker OCFS2管理" |
| 286 |
|
| 287 |
#. type: Title ==== |
| 288 |
#: ocfs2.adoc:155 |
| 289 |
#, no-wrap |
| 290 |
msgid "Adding a Dual-Primary DRBD resource to Pacemaker" |
| 291 |
msgstr "向Pacemaker添加Dual-Primary DRBD资源" |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: ocfs2.adoc:160 |
| 295 |
msgid "" |
| 296 |
"An existing <<s-ocfs2-create-resource,Dual-Primary DRBD resource>>may be added to Pacemaker resource management with " |
| 297 |
"the following `crm` configuration:" |
| 298 |
msgstr "现有的<<s-ocfs2-create-resource,Dual-Primary DRBD resource>>可通过以下 `crm` 配置添加到Pacemaker资源管理:" |
| 299 |
|
| 300 |
#. type: delimited block - |
| 301 |
#: ocfs2.adoc:167 |
| 302 |
#, no-wrap |
| 303 |
msgid "" |
| 304 |
"primitive p_drbd_ocfs2 ocf:linbit:drbd \\\n" |
| 305 |
" params drbd_resource=\"ocfs2\"\n" |
| 306 |
"ms ms_drbd_ocfs2 p_drbd_ocfs2 \\\n" |
| 307 |
" meta master-max=2 clone-max=2 notify=true\n" |
| 308 |
msgstr "" |
| 309 |
"primitive p_drbd_ocfs2 ocf:linbit:drbd \\\n" |
| 310 |
" params drbd_resource=\"ocfs2\"\n" |
| 311 |
"ms ms_drbd_ocfs2 p_drbd_ocfs2 \\\n" |
| 312 |
" meta master-max=2 clone-max=2 notify=true\n" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: ocfs2.adoc:174 |
| 316 |
msgid "" |
| 317 |
"Note the `master-max=2` meta variable; it enables dual-Master mode for a Pacemaker master/slave set. This requires " |
| 318 |
"that `allow-two-primaries` is also set to `yes` in the DRBD configuration. Otherwise, Pacemaker will flag a " |
| 319 |
"configuration error during resource validation." |
| 320 |
msgstr "" |
| 321 |
"注意 `master max=2` 元变量;它为Pacemaker 主/从设备启用双主模式。这要求在DRBD配置中将 `allow-two-primaries` 也设置为 " |
| 322 |
"`yes`。否则,Pacemaker将在资源验证期间标记配置错误。" |
| 323 |
|
| 324 |
#. type: Title ==== |
| 325 |
#: ocfs2.adoc:176 |
| 326 |
#, no-wrap |
| 327 |
msgid "Adding OCFS2 management capability to Pacemaker" |
| 328 |
msgstr "为Pacemaker添加OCFS2管理功能" |
| 329 |
|
| 330 |
#. type: Plain text |
| 331 |
#: ocfs2.adoc:180 |
| 332 |
msgid "" |
| 333 |
"In order to manage OCFS2 and the kernel Distributed Lock Manager (DLM), Pacemaker uses a total of three different " |
| 334 |
"resource agents:" |
| 335 |
msgstr "为了管理OCFS2和内核分布式锁管理器(DLM),Pacemaker总共使用三种不同的资源代理:" |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: ocfs2.adoc:182 |
| 339 |
msgid "`ocf:pacemaker:controld` -- Pacemaker's interface to the DLM;" |
| 340 |
msgstr "`ocf:pacemaker:controld` -- Pacemaker与DLM的接口;" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: ocfs2.adoc:185 |
| 344 |
msgid "`ocf:ocfs2:o2cb` -- Pacemaker's interface to OCFS2 cluster management;" |
| 345 |
msgstr "`ocf:ocfs2:o2cb`--Pacemaker与ocfs2集群管理的接口;" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: ocfs2.adoc:189 |
| 349 |
msgid "" |
| 350 |
"`ocf:heartbeat:Filesystem` -- the generic filesystem management resource agent which supports cluster file systems " |
| 351 |
"when configured as a Pacemaker clone." |
| 352 |
msgstr "`ocf:heartbeat:Filesystem`--通用文件系统管理资源代理,配置为Pacemaker克隆时支持群集文件系统。" |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: ocfs2.adoc:193 |
| 356 |
msgid "" |
| 357 |
"You may enable all nodes in a Pacemaker cluster for OCFS2 management by creating a _cloned group_ of resources, with " |
| 358 |
"the following `crm` configuration:" |
| 359 |
msgstr "您可以通过创建具有以下“crm”配置的克隆资源组,为OCFS2管理启用Pacemaker群集中的所有节点:" |
| 360 |
|
| 361 |
#. type: delimited block - |
| 362 |
#: ocfs2.adoc:200 |
| 363 |
#, no-wrap |
| 364 |
msgid "" |
| 365 |
"primitive p_controld ocf:pacemaker:controld\n" |
| 366 |
"primitive p_o2cb ocf:ocfs2:o2cb\n" |
| 367 |
"group g_ocfs2mgmt p_controld p_o2cb\n" |
| 368 |
"clone cl_ocfs2mgmt g_ocfs2mgmt meta interleave=true\n" |
| 369 |
msgstr "" |
| 370 |
"primitive p_controld ocf:pacemaker:controld\n" |
| 371 |
"primitive p_o2cb ocf:ocfs2:o2cb\n" |
| 372 |
"group g_ocfs2mgmt p_controld p_o2cb\n" |
| 373 |
"clone cl_ocfs2mgmt g_ocfs2mgmt meta interleave=true\n" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: ocfs2.adoc:204 |
| 377 |
msgid "" |
| 378 |
"Once this configuration is committed, Pacemaker will start instances of the `controld` and `o2cb` resource types on " |
| 379 |
"all nodes in the cluster." |
| 380 |
msgstr "提交此配置后,Pacemaker将在群集中的所有节点上启动“controld”和“o2cb”资源类型的实例。" |
| 381 |
|
| 382 |
#. type: Title ==== |
| 383 |
#: ocfs2.adoc:206 |
| 384 |
#, no-wrap |
| 385 |
msgid "Adding an OCFS2 filesystem to Pacemaker" |
| 386 |
msgstr "向Pacemaker添加OCFS2文件系统" |
| 387 |
|
| 388 |
#. type: Plain text |
| 389 |
#: ocfs2.adoc:212 |
| 390 |
msgid "" |
| 391 |
"Pacemaker manages OCFS2 filesystems using the conventional `ocf:heartbeat:Filesystem` resource agent, albeit in clone " |
| 392 |
"mode. To put an OCFS2 filesystem under Pacemaker management, use the following `crm` configuration:" |
| 393 |
msgstr "" |
| 394 |
"Pacemaker使用传统的“ocf:heartbeat:Filesystem”资源代理管理OCFS2文件系统,尽管处于克隆模式。要将OCFS2文件系统置于" |
| 395 |
"Pacemaker管理下,请使用以下“crm”配置:" |
| 396 |
|
| 397 |
#. type: delimited block - |
| 398 |
#: ocfs2.adoc:219 |
| 399 |
#, no-wrap |
| 400 |
msgid "" |
| 401 |
"primitive p_fs_ocfs2 ocf:heartbeat:Filesystem \\\n" |
| 402 |
" params device=\"/dev/drbd/by-res/ocfs2/0\" directory=\"/srv/ocfs2\" \\\n" |
| 403 |
" fstype=\"ocfs2\" options=\"rw,noatime\"\n" |
| 404 |
"clone cl_fs_ocfs2 p_fs_ocfs2\n" |
| 405 |
msgstr "" |
| 406 |
"primitive p_fs_ocfs2 ocf:heartbeat:Filesystem \\\n" |
| 407 |
" params device=\"/dev/drbd/by-res/ocfs2/0\" directory=\"/srv/ocfs2\" \\\n" |
| 408 |
" fstype=\"ocfs2\" options=\"rw,noatime\"\n" |
| 409 |
"clone cl_fs_ocfs2 p_fs_ocfs2\n" |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: ocfs2.adoc:222 |
| 413 |
msgid "This example assumes a single-volume resource." |
| 414 |
msgstr "本例假设一个卷资源。" |
| 415 |
|
| 416 |
#. type: Title ==== |
| 417 |
#: ocfs2.adoc:224 |
| 418 |
#, no-wrap |
| 419 |
msgid "Adding required Pacemaker constraints to manage OCFS2 filesystems" |
| 420 |
msgstr "添加所需的Pacemaker约束以管理OCFS2文件系统" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: ocfs2.adoc:228 |
| 424 |
msgid "" |
| 425 |
"In order to tie all OCFS2-related resources and clones together, add the following contraints to your Pacemaker " |
| 426 |
"configuration:" |
| 427 |
msgstr "为了将所有与OCFS2相关的资源和克隆绑定在一起,请在Pacemaker配置中添加以下限制:" |
| 428 |
|
| 429 |
#. type: delimited block - |
| 430 |
#: ocfs2.adoc:233 |
| 431 |
#, no-wrap |
| 432 |
msgid "" |
| 433 |
"order o_ocfs2 ms_drbd_ocfs2:promote cl_ocfs2mgmt:start cl_fs_ocfs2:start\n" |
| 434 |
"colocation c_ocfs2 cl_fs_ocfs2 cl_ocfs2mgmt ms_drbd_ocfs2:Master\n" |
| 435 |
msgstr "" |
| 436 |
"order o_ocfs2 ms_drbd_ocfs2:promote cl_ocfs2mgmt:start cl_fs_ocfs2:start\n" |
| 437 |
"colocation c_ocfs2 cl_fs_ocfs2 cl_ocfs2mgmt ms_drbd_ocfs2:Master\n" |
| 438 |
|
| 439 |
#. type: Title === |
| 440 |
#: ocfs2.adoc:236 |
| 441 |
#, no-wrap |
| 442 |
msgid "Legacy OCFS2 management (without Pacemaker)" |
| 443 |
msgstr "传统OCFS2管理(不带Pacemaker)" |
| 444 |
|
| 445 |
#. type: Plain text |
| 446 |
#: ocfs2.adoc:242 |
| 447 |
msgid "" |
| 448 |
"The information presented in this section applies to legacy systems where OCFS2 DLM support is not available in " |
| 449 |
"Pacemaker. It is preserved here for reference purposes only. New installations should always use the <<s-ocfs2-" |
| 450 |
"pacemaker,Pacemaker>> approach." |
| 451 |
msgstr "" |
| 452 |
"本节介绍的信息适用于Pacemaker中不支持OCFS2 DLM的传统系统。此处仅作参考之用。新装置应始终使用<<s-ocfs2-pacemaker," |
| 453 |
"Pacemaker>>方法。" |
| 454 |
|
| 455 |
#. type: Title ==== |
| 456 |
#: ocfs2.adoc:244 |
| 457 |
#, no-wrap |
| 458 |
msgid "Configuring your cluster to support OCFS2" |
| 459 |
msgstr "配置群集以支持OCFS2" |
| 460 |
|
| 461 |
#. type: Title ===== |
| 462 |
#: ocfs2.adoc:247 |
| 463 |
#, no-wrap |
| 464 |
msgid "Creating the configuration file" |
| 465 |
msgstr "创建配置文件" |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: ocfs2.adoc:250 |
| 469 |
msgid "OCFS2 uses a central configuration file, `/etc/ocfs2/cluster.conf`." |
| 470 |
msgstr "OCFS2使用一个中央配置文件 `/etc/OCFS2/cluster.conf`。" |
| 471 |
|
| 472 |
#. type: Plain text |
| 473 |
#: ocfs2.adoc:257 |
| 474 |
msgid "" |
| 475 |
"When creating your OCFS2 cluster, be sure to add both your hosts to the cluster configuration. The default port " |
| 476 |
"(7777) is usually an acceptable choice for cluster interconnect communications. If you choose any other port number, " |
| 477 |
"be sure to choose one that does not clash with an existing port used by DRBD (or any other configured TCP/IP)." |
| 478 |
msgstr "" |
| 479 |
"创建OCFS2集群时,请确保将两个主机都添加到集群配置中。默认端口(7777)通常是群集互连通信的可接受选择。如果您选择任何其" |
| 480 |
"他端口号,请确保选择的端口号与DRBD使用的现有端口(或任何其他配置的TCP/IP)不冲突。" |
| 481 |
|
| 482 |
#. type: Plain text |
| 483 |
#: ocfs2.adoc:263 |
| 484 |
msgid "" |
| 485 |
"If you feel less than comfortable editing the `cluster.conf` file directly, you may also use the `ocfs2console` " |
| 486 |
"graphical configuration utility which is usually more convenient. Regardless of the approach you selected, your `/etc/" |
| 487 |
"ocfs2/cluster.conf` file contents should look roughly like this:" |
| 488 |
msgstr "" |
| 489 |
"如果您觉得直接编辑cluster.conf文件不太舒服,还可以使用通常更方便的 `ocfs2console` 图形配置实用程序。不管您选择什么方" |
| 490 |
"法,您的 `/etc/ocfs2/cluster.conf` 文件内容应该大致如下:" |
| 491 |
|
| 492 |
#. type: delimited block - |
| 493 |
#: ocfs2.adoc:272 |
| 494 |
#, no-wrap |
| 495 |
msgid "" |
| 496 |
"node:\n" |
| 497 |
" ip_port = 7777\n" |
| 498 |
" ip_address = 10.1.1.31\n" |
| 499 |
" number = 0\n" |
| 500 |
" name = alice\n" |
| 501 |
" cluster = ocfs2\n" |
| 502 |
msgstr "" |
| 503 |
"node:\n" |
| 504 |
" ip_port = 7777\n" |
| 505 |
" ip_address = 10.1.1.31\n" |
| 506 |
" number = 0\n" |
| 507 |
" name = alice\n" |
| 508 |
" cluster = ocfs2\n" |
| 509 |
|
| 510 |
#. type: delimited block - |
| 511 |
#: ocfs2.adoc:279 |
| 512 |
#, no-wrap |
| 513 |
msgid "" |
| 514 |
"node:\n" |
| 515 |
" ip_port = 7777\n" |
| 516 |
" ip_address = 10.1.1.32\n" |
| 517 |
" number = 1\n" |
| 518 |
" name = bob\n" |
| 519 |
" cluster = ocfs2\n" |
| 520 |
msgstr "" |
| 521 |
"node:\n" |
| 522 |
" ip_port = 7777\n" |
| 523 |
" ip_address = 10.1.1.32\n" |
| 524 |
" number = 1\n" |
| 525 |
" name = bob\n" |
| 526 |
" cluster = ocfs2\n" |
| 527 |
|
| 528 |
#. type: delimited block - |
| 529 |
#: ocfs2.adoc:283 |
| 530 |
#, no-wrap |
| 531 |
msgid "" |
| 532 |
"cluster:\n" |
| 533 |
" node_count = 2\n" |
| 534 |
" name = ocfs2\n" |
| 535 |
msgstr "" |
| 536 |
"cluster:\n" |
| 537 |
" node_count = 2\n" |
| 538 |
" name = ocfs2\n" |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: ocfs2.adoc:288 |
| 542 |
msgid "" |
| 543 |
"When you have configured you cluster configuration, use `scp` to distribute the configuration to both nodes in the " |
| 544 |
"cluster." |
| 545 |
msgstr "配置完群集配置后,请使用 `scp` 将配置分发到群集中的两个节点。" |
| 546 |
|
| 547 |
#. type: Title ===== |
| 548 |
#: ocfs2.adoc:290 |
| 549 |
#, no-wrap |
| 550 |
msgid "Configuring the O2CB driver" |
| 551 |
msgstr "配置O2CB驱动程序" |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#. type: Plain text |
| 555 |
#: ocfs2.adoc:294 ocfs2.adoc:297 |
| 556 |
msgid "On SLES, you may utilize the `configure` option of the `o2cb` init script:" |
| 557 |
msgstr "在SLES上,可以使用 `o2cb` init脚本的 `configure` 选项:" |
| 558 |
|
| 559 |
#. type: delimited block - |
| 560 |
#: ocfs2.adoc:301 |
| 561 |
#, no-wrap |
| 562 |
msgid "" |
| 563 |
"# /etc/init.d/o2cb configure\n" |
| 564 |
"Configuring the O2CB driver.\n" |
| 565 |
msgstr "" |
| 566 |
"# /etc/init.d/o2cb configure\n" |
| 567 |
"Configuring the O2CB driver.\n" |
| 568 |
|
| 569 |
#. type: delimited block - |
| 570 |
#: ocfs2.adoc:307 |
| 571 |
#, no-wrap |
| 572 |
msgid "" |
| 573 |
"This will configure the on-boot properties of the O2CB driver.\n" |
| 574 |
"The following questions will determine whether the driver is loaded on\n" |
| 575 |
"boot. The current values will be shown in brackets ('[]'). Hitting\n" |
| 576 |
"<ENTER> without typing an answer will keep that current value. Ctrl-C\n" |
| 577 |
"will abort.\n" |
| 578 |
msgstr "" |
| 579 |
"This will configure the on-boot properties of the O2CB driver.\n" |
| 580 |
"The following questions will determine whether the driver is loaded on\n" |
| 581 |
"boot. The current values will be shown in brackets ('[]'). Hitting\n" |
| 582 |
"<ENTER> without typing an answer will keep that current value. Ctrl-C\n" |
| 583 |
"will abort.\n" |
| 584 |
|
| 585 |
#. type: delimited block - |
| 586 |
#: ocfs2.adoc:323 |
| 587 |
#, no-wrap |
| 588 |
msgid "" |
| 589 |
"Load O2CB driver on boot (y/n) [y]:\n" |
| 590 |
"Cluster to start on boot (Enter \"none\" to clear) [ocfs2]:\n" |
| 591 |
"Specify heartbeat dead threshold (>=7) [31]:\n" |
| 592 |
"Specify network idle timeout in ms (>=5000) [30000]:\n" |
| 593 |
"Specify network keepalive delay in ms (>=1000) [2000]:\n" |
| 594 |
"Specify network reconnect delay in ms (>=2000) [2000]:\n" |
| 595 |
"Use user-space driven heartbeat? (y/n) [n]:\n" |
| 596 |
"Writing O2CB configuration: OK\n" |
| 597 |
"Loading module \"configfs\": OK\n" |
| 598 |
"Mounting configfs filesystem at /sys/kernel/config: OK\n" |
| 599 |
"Loading module \"ocfs2_nodemanager\": OK\n" |
| 600 |
"Loading module \"ocfs2_dlm\": OK\n" |
| 601 |
"Loading module \"ocfs2_dlmfs\": OK\n" |
| 602 |
"Mounting ocfs2_dlmfs filesystem at /dlm: OK\n" |
| 603 |
"Starting O2CB cluster ocfs2: OK\n" |
| 604 |
msgstr "" |
| 605 |
"Load O2CB driver on boot (y/n) [y]:\n" |
| 606 |
"Cluster to start on boot (Enter \"none\" to clear) [ocfs2]:\n" |
| 607 |
"Specify heartbeat dead threshold (>=7) [31]:\n" |
| 608 |
"Specify network idle timeout in ms (>=5000) [30000]:\n" |
| 609 |
"Specify network keepalive delay in ms (>=1000) [2000]:\n" |
| 610 |
"Specify network reconnect delay in ms (>=2000) [2000]:\n" |
| 611 |
"Use user-space driven heartbeat? (y/n) [n]:\n" |
| 612 |
"Writing O2CB configuration: OK\n" |
| 613 |
"Loading module \"configfs\": OK\n" |
| 614 |
"Mounting configfs filesystem at /sys/kernel/config: OK\n" |
| 615 |
"Loading module \"ocfs2_nodemanager\": OK\n" |
| 616 |
"Loading module \"ocfs2_dlm\": OK\n" |
| 617 |
"Loading module \"ocfs2_dlmfs\": OK\n" |
| 618 |
"Mounting ocfs2_dlmfs filesystem at /dlm: OK\n" |
| 619 |
"Starting O2CB cluster ocfs2: OK\n" |
| 620 |
|
| 621 |
#. type: Plain text |
| 622 |
#: ocfs2.adoc:330 |
| 623 |
msgid "" |
| 624 |
"====== .Debian GNU/Linux systems On Debian, the `configure` option to `/etc/init.d/o2cb` is not available. Instead, " |
| 625 |
"reconfigure the `ocfs2-tools` package to enable the driver:" |
| 626 |
msgstr "" |
| 627 |
"====== .Debian上的Debian GNU/Linux系统, `/etc/init.d/o2cb` 的 `configure` 选项不可用。请重新配置 `ocfs2-tools` 包以启" |
| 628 |
"用驱动程序:" |
| 629 |
|
| 630 |
#. type: delimited block - |
| 631 |
#: ocfs2.adoc:339 |
| 632 |
#, no-wrap |
| 633 |
msgid "" |
| 634 |
"# dpkg-reconfigure -p medium -f readline ocfs2-tools\n" |
| 635 |
"Configuring ocfs2-tools\n" |
| 636 |
"Would you like to start an OCFS2 cluster (O2CB) at boot time? yes\n" |
| 637 |
"Name of the cluster to start at boot time: ocfs2\n" |
| 638 |
"The O2CB heartbeat threshold sets up the maximum time in seconds that a node\n" |
| 639 |
"awaits for an I/O operation. After it, the node \"fences\" itself, and you will\n" |
| 640 |
"probably see a crash.\n" |
| 641 |
msgstr "" |
| 642 |
"# dpkg-reconfigure -p medium -f readline ocfs2-tools\n" |
| 643 |
"Configuring ocfs2-tools\n" |
| 644 |
"Would you like to start an OCFS2 cluster (O2CB) at boot time? yes\n" |
| 645 |
"Name of the cluster to start at boot time: ocfs2\n" |
| 646 |
"The O2CB heartbeat threshold sets up the maximum time in seconds that a node\n" |
| 647 |
"awaits for an I/O operation. After it, the node \"fences\" itself, and you will\n" |
| 648 |
"probably see a crash.\n" |
| 649 |
|
| 650 |
#. type: delimited block - |
| 651 |
#: ocfs2.adoc:341 |
| 652 |
#, no-wrap |
| 653 |
msgid "It is calculated as the result of: (threshold - 1) x 2.\n" |
| 654 |
msgstr "It is calculated as the result of: (threshold - 1) x 2.\n" |
| 655 |
|
| 656 |
#. type: delimited block - |
| 657 |
#: ocfs2.adoc:343 |
| 658 |
#, no-wrap |
| 659 |
msgid "Its default value is 31 (60 seconds).\n" |
| 660 |
msgstr "Its default value is 31 (60 seconds).\n" |
| 661 |
|
| 662 |
#. type: delimited block - |
| 663 |
#: ocfs2.adoc:345 |
| 664 |
#, no-wrap |
| 665 |
msgid "Raise it if you have slow disks and/or crashes with kernel messages like:\n" |
| 666 |
msgstr "Raise it if you have slow disks and/or crashes with kernel messages like:\n" |
| 667 |
|
| 668 |
#. type: delimited block - |
| 669 |
#: ocfs2.adoc:356 |
| 670 |
#, no-wrap |
| 671 |
msgid "" |
| 672 |
"o2hb_write_timeout: 164 ERROR: heartbeat write timeout to device XXXX after NNNN\n" |
| 673 |
"milliseconds\n" |
| 674 |
"O2CB Heartbeat threshold: `31`\n" |
| 675 |
"\t\tLoading filesystem \"configfs\": OK\n" |
| 676 |
"Mounting configfs filesystem at /sys/kernel/config: OK\n" |
| 677 |
"Loading stack plugin \"o2cb\": OK\n" |
| 678 |
"Loading filesystem \"ocfs2_dlmfs\": OK\n" |
| 679 |
"Mounting ocfs2_dlmfs filesystem at /dlm: OK\n" |
| 680 |
"Setting cluster stack \"o2cb\": OK\n" |
| 681 |
"Starting O2CB cluster ocfs2: OK\n" |
| 682 |
msgstr "" |
| 683 |
"o2hb_write_timeout: 164 ERROR: heartbeat write timeout to device XXXX after NNNN\n" |
| 684 |
"milliseconds\n" |
| 685 |
"O2CB Heartbeat threshold: `31`\n" |
| 686 |
"\t\tLoading filesystem \"configfs\": OK\n" |
| 687 |
"Mounting configfs filesystem at /sys/kernel/config: OK\n" |
| 688 |
"Loading stack plugin \"o2cb\": OK\n" |
| 689 |
"Loading filesystem \"ocfs2_dlmfs\": OK\n" |
| 690 |
"Mounting ocfs2_dlmfs filesystem at /dlm: OK\n" |
| 691 |
"Setting cluster stack \"o2cb\": OK\n" |
| 692 |
"Starting O2CB cluster ocfs2: OK\n" |
| 693 |
|
| 694 |
#. type: Title ==== |
| 695 |
#: ocfs2.adoc:359 |
| 696 |
#, no-wrap |
| 697 |
msgid "Using your OCFS2 filesystem" |
| 698 |
msgstr "使用OCFS2文件系统" |
| 699 |
|
| 700 |
#. type: Plain text |
| 701 |
#: ocfs2.adoc:363 |
| 702 |
msgid "" |
| 703 |
"When you have completed cluster configuration and created your file system, you may mount it as any other file system:" |
| 704 |
msgstr "完成集群配置并创建文件系统后,可以将其装载为任何其他文件系统:" |
| 705 |
|
| 706 |
#. type: delimited block - |
| 707 |
#: ocfs2.adoc:365 |
| 708 |
#, no-wrap |
| 709 |
msgid "# mount -t ocfs2 /dev/drbd0 /shared\n" |
| 710 |
msgstr "# mount -t ocfs2 /dev/drbd0 /shared\n" |
| 711 |
|
| 712 |
#. type: Plain text |
| 713 |
#: ocfs2.adoc:369 |
| 714 |
msgid "Your kernel log (accessible by issuing the command `dmesg`) should then contain a line similar to this one:" |
| 715 |
msgstr "然后,内核日志(通过发出命令 `dmesg` 可以访问)应该包含一行类似的内容:" |
| 716 |
|
| 717 |
#. type: delimited block - |
| 718 |
#: ocfs2.adoc:373 |
| 719 |
#, no-wrap |
| 720 |
msgid "ocfs2: Mounting device (147,0) on (node 0, slot 0) with ordered data mode.\n" |
| 721 |
msgstr "ocfs2: Mounting device (147,0) on (node 0, slot 0) with ordered data mode.\n" |
| 722 |
|
| 723 |
#. type: Plain text |
| 724 |
#: ocfs2.adoc:376 |
| 725 |
msgid "" |
| 726 |
"From that point forward, you should be able to simultaneously mount your OCFS2 filesystem on both your nodes, in read/" |
| 727 |
"write mode." |
| 728 |
msgstr "从此时起,您应该能够以读/写模式同时在两个节点上挂载OCFS2文件系统。" |