# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: 2020-03-02 15:09+0000\n" "PO-Revision-Date: 2020-03-06 12:05+0800\n" "Language: zh\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Last-Translator: \n" "Language-Team: \n" "X-Generator: Poedit 2.0.6\n" #. type: Title == #: ocfs2.adoc:2 #, no-wrap msgid "Using OCFS2 with DRBD" msgstr "在DRBD中使用OCFS2" #. type: Plain text #: ocfs2.adoc:7 msgid "" "indexterm:[OCFS2]indexterm:[Oracle Cluster File System]This chapter outlines the steps necessary to set up a DRBD " "resource as a block device holding a shared Oracle Cluster File System, version 2 (OCFS2)." msgstr "" "indexterm:[OCFS2]indexterm:[Oracle Cluster File System]本章概述了将DRBD资源设置为包含共享Oracle Cluster文件系统版本" "2(OCFS2)的块设备所需的步骤。" #. type: delimited block = #: ocfs2.adoc:13 msgid "" "All cluster file systems _require_ fencing - not only via the DRBD resource, but STONITH! A faulty member _must_ be " "killed." msgstr "所有的群集文件系统都需要围栏-不仅通过DRBD资源,而且还需要STONITH!必须kill掉有问题的成员。" #. type: delimited block = #: ocfs2.adoc:15 msgid "You'll want these settings:" msgstr "您需要这些设置:" #. type: delimited block = #: ocfs2.adoc:24 #, no-wrap msgid "" "\tnet {\n" "\t\tfencing resource-and-stonith;\n" "\t}\n" "\thandlers {\n" "\t\t# Make sure the other node is confirmed\n" "\t\t# dead after this!\n" "\t\toutdate-peer \"/sbin/kill-other-node.sh\";\n" "\t}\n" msgstr "" "\tnet {\n" "\t\tfencing resource-and-stonith;\n" "\t}\n" "\thandlers {\n" "\t\t# Make sure the other node is confirmed\n" "\t\t# dead after this!\n" "\t\toutdate-peer \"/sbin/kill-other-node.sh\";\n" "\t}\n" #. type: delimited block = #: ocfs2.adoc:28 msgid "" "There must be _no_ volatile caches! You might take a few hints of the page at https://fedorahosted.org/cluster/wiki/" "DRBD_Cookbook, although that's about GFS2, not OCFS2." msgstr "" "一定有不稳定的缓存!你可能会在https://fedorahosted.org/cluster/wiki/DRBD_Cookbook 上得到一些提示,尽管那是关于GFS2的," "而不是OCFS2的。" #. type: Title === #: ocfs2.adoc:33 #, no-wrap msgid "OCFS2 primer" msgstr "OCFS2基础" #. type: Plain text #: ocfs2.adoc:43 msgid "" "The Oracle Cluster File System, version 2 (OCFS2) is a concurrent access shared storage file system developed by " "Oracle Corporation. Unlike its predecessor OCFS, which was specifically designed and only suitable for Oracle " "database payloads, OCFS2 is a general-purpose filesystem that implements most POSIX semantics. The most common use " "case for OCFS2 is arguably Oracle Real Application Cluster (RAC), but OCFS2 may also be used for load-balanced NFS " "clusters, for example." msgstr "" "Oracle集群文件系统(OCFS2)是Oracle公司开发的一个并发访问共享存储文件系统。与它的前身OCFS不同,OCFS是专门设计的,只适" "用于Oracle数据库有效负载,OCFS2是实现大多数POSIX语义的通用文件系统。OCFS2最常见的用例可以说是Oracle Real Application " "Cluster(RAC),但是OCFS2也可以用于实现比如负载平衡的NFS集群。" #. type: Plain text #: ocfs2.adoc:53 msgid "" "Although originally designed for use with conventional shared storage devices, OCFS2 is equally well suited to be " "deployed on <>. Applications reading from the filesystem may benefit from " "reduced read latency due to the fact that DRBD reads from and writes to local storage, as opposed to the SAN devices " "OCFS2 otherwise normally runs on. In addition, DRBD adds redundancy to OCFS2 by adding an additional copy to every " "filesystem image, as opposed to just a single filesystem image that is merely shared." msgstr "" "虽然OCFS2最初设计用于传统的共享存储设备,但它同样非常适合部署在<>上。从文件系统" "中读取的应用程序可能会受益于减少的读取延迟,这是因为DRBD从本地存储中读取和写入,而不是在正常情况下运行的SAN设备OCFS2。" "此外,DRBD通过向每个文件系统映像添加一个额外的副本来增加OCFS2的冗余,而不是仅仅共享一个文件系统映像。" #. type: Plain text #: ocfs2.adoc:61 msgid "" "Like other shared cluster file systems such as <>, OCFS2 allows multiple nodes to access the same storage " "device, in read/write mode, simultaneously without risking data corruption. It does so by using a Distributed Lock " "Manager (DLM) which manages concurrent access from cluster nodes. The DLM itself uses a virtual file system " "(`ocfs2_dlmfs`) which is separate from the actual OCFS2 file systems present on the system." msgstr "" "与其他共享群集文件系统(如<>)一样,OCFS2允许多个节点以读/写模式同时访问同一存储设备,而不会导致数据损坏。" "它通过使用分布式锁管理器(DLM)来管理来自集群节点的并发访问。DLM本身使用一个虚拟文件系统(`ocfs2_dlmfs`),它独立于系" "统上的实际ocfs2文件系统。" #. type: Plain text #: ocfs2.adoc:66 msgid "" "OCFS2 may either use an intrinsic cluster communication layer to manage cluster membership and filesystem mount and " "unmount operation, or alternatively defer those tasks to the <>cluster infrastructure." msgstr "" "OCFS2可以使用一个内在的集群通信层来管理集群成员和文件系统的装载和卸载操作,或者将这些任务推迟到<>集群基础设施。" #. type: Plain text #: ocfs2.adoc:72 msgid "" "OCFS2 is available in SUSE Linux Enterprise Server (where it is the primarily supported shared cluster file system), " "CentOS, Debian GNU/Linux, and Ubuntu Server Edition. Oracle also provides packages for Red Hat Enterprise Linux " "(RHEL). This chapter assumes running OCFS2 on a SUSE Linux Enterprise Server system." msgstr "" "OCFS2在SUSE Linux企业服务器(它是主要受支持的共享集群文件系统)、CentOS、Debian GNU/Linux和Ubuntu服务器版本中可用。" "Oracle还为Red Hat Enterprise Linux(RHEL)提供了软件包。本章假设在SUSE Linux企业服务器系统上运行OCFS2。" #. type: Title === #: ocfs2.adoc:74 #, no-wrap msgid "Creating a DRBD resource suitable for OCFS2" msgstr "创建适合OCFS2的DRBD资源" #. type: Plain text #: ocfs2.adoc:85 msgid "" "Since OCFS2 is a shared cluster file system expecting concurrent read/write storage access from all cluster nodes, " "any DRBD resource to be used for storing a OCFS2 filesystem must be configured in <>. Also, it is recommended to use some of DRBD's <>. To do all this, include the following lines in the resource configuration: " "indexterm:[drbd.conf]" msgstr "" "由于OCFS2是一个共享的群集文件系统,需要从所有群集节点进行并发读/写存储访问,因此用于存储OCFS2文件系统的任何DRBD资源都" "必须在<>中配置。此外,建议使用一些DRBD的<>。为此,在资源配置中包括以下行:indexterm:[drbd.conf]" #. type: delimited block - #: ocfs2.adoc:98 #, no-wrap msgid "" "resource {\n" " net {\n" " # allow-two-primaries yes;\n" " after-sb-0pri discard-zero-changes;\n" " after-sb-1pri discard-secondary;\n" " after-sb-2pri disconnect;\n" " ...\n" " }\n" " ...\n" "}\n" msgstr "" "resource {\n" " net {\n" " # allow-two-primaries yes;\n" " after-sb-0pri discard-zero-changes;\n" " after-sb-1pri discard-secondary;\n" " after-sb-2pri disconnect;\n" " ...\n" " }\n" " ...\n" "}\n" #. type: delimited block = #: ocfs2.adoc:103 msgid "" "By setting auto-recovery policies, you are effectively configuring automatic data-loss! Be sure you understand the " "implications." msgstr "通过设置自动恢复策略,您可以有效地配置自动数据丢失!一定要明白其中的含义。" #. type: Plain text #: ocfs2.adoc:109 msgid "" "It is not recommended to set the `allow-two-primaries` option to `yes` upon initial configuration. You should do so " "after the initial resource synchronization has completed." msgstr "不建议在初始配置时将 `allow-two-primaries` 选项设置为 `yes` 。您应该在初始资源同步完成后执行此操作。" #. type: Plain text #: ocfs2.adoc:116 msgid "" "Once you have added these options to <>, you may <>. After you set the indexterm:[drbd.conf]`allow-two-primaries` option " "to `yes` for this resource, you will be able to <>to the primary role " "on both nodes." msgstr "" "一旦您将这些选项添加到<>中,您就可以<>. 当您设置了indexterm:[drbd.conf] `allow-two-primaries` 选项为 `yes` , 你就可以<>将两节点角色都提升为主要角色。" #. type: Plain text #: ocfs2.adoc:120 msgid "" "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 " "two primaries, but more nodes can be in _Secondary_ role to provide more redundancy." msgstr "" "在DRBD 9.1中,可能有两个以上的节点处于主要角色;在DRBD 9.0中,只能使用两个主要角色,但可以有更多的节点处于次要角色以提" "供更多冗余。" #. type: Title === #: ocfs2.adoc:123 #, no-wrap msgid "Creating an OCFS2 filesystem" msgstr "创建OCFS2文件系统" #. type: Plain text #: ocfs2.adoc:126 msgid "Now, use OCFS2's `mkfs` implementation to create the file system:" msgstr "Now, use OCFS2's `mkfs` implementation to create the file system:" #. type: delimited block - #: ocfs2.adoc:144 #, no-wrap msgid "" "# mkfs -t ocfs2 -N 2 -L ocfs2_drbd0 /dev/drbd0\n" "mkfs.ocfs2 1.4.0\n" "Filesystem label=ocfs2_drbd0\n" "Block size=1024 (bits=10)\n" "Cluster size=4096 (bits=12)\n" "Volume size=205586432 (50192 clusters) (200768 blocks)\n" "7 cluster groups (tail covers 4112 clusters, rest cover 7680 clusters)\n" "Journal size=4194304\n" "Initial number of node slots: 2\n" "Creating bitmaps: done\n" "Initializing superblock: done\n" "Writing system files: done\n" "Writing superblock: done\n" "Writing backup superblock: 0 block(s)\n" "Formatting Journals: done\n" "Writing lost+found: done\n" "mkfs.ocfs2 successful\n" msgstr "" "# mkfs -t ocfs2 -N 2 -L ocfs2_drbd0 /dev/drbd0\n" "mkfs.ocfs2 1.4.0\n" "Filesystem label=ocfs2_drbd0\n" "Block size=1024 (bits=10)\n" "Cluster size=4096 (bits=12)\n" "Volume size=205586432 (50192 clusters) (200768 blocks)\n" "7 cluster groups (tail covers 4112 clusters, rest cover 7680 clusters)\n" "Journal size=4194304\n" "Initial number of node slots: 2\n" "Creating bitmaps: done\n" "Initializing superblock: done\n" "Writing system files: done\n" "Writing superblock: done\n" "Writing backup superblock: 0 block(s)\n" "Formatting Journals: done\n" "Writing lost+found: done\n" "mkfs.ocfs2 successful\n" #. type: Plain text #: ocfs2.adoc:150 msgid "" "This will create an OCFS2 file system with two node slots on `/dev/drbd0`, and set the filesystem label to " "`ocfs2_drbd0`. You may specify other options on `mkfs` invocation; please see the `mkfs.ocfs2` system manual page for " "details." msgstr "" "这将在 `/dev/drbd0` 上创建一个具有两个节点插槽的OCFS2文件系统,并将文件系统标签设置为 `ocfs2_drbd0`。您可以在 `mkfs` " "调用中指定其他选项;有关详细信息,请参阅 `mkfs.ocfs2` 系统手册页。" #. type: Title === #: ocfs2.adoc:152 #, no-wrap msgid "Pacemaker OCFS2 management" msgstr "Pacemaker OCFS2管理" #. type: Title ==== #: ocfs2.adoc:155 #, no-wrap msgid "Adding a Dual-Primary DRBD resource to Pacemaker" msgstr "向Pacemaker添加Dual-Primary DRBD资源" #. type: Plain text #: ocfs2.adoc:160 msgid "" "An existing <>may be added to Pacemaker resource management with " "the following `crm` configuration:" msgstr "现有的<>可通过以下 `crm` 配置添加到Pacemaker资源管理:" #. type: delimited block - #: ocfs2.adoc:167 #, no-wrap msgid "" "primitive p_drbd_ocfs2 ocf:linbit:drbd \\\n" " params drbd_resource=\"ocfs2\"\n" "ms ms_drbd_ocfs2 p_drbd_ocfs2 \\\n" " meta master-max=2 clone-max=2 notify=true\n" msgstr "" "primitive p_drbd_ocfs2 ocf:linbit:drbd \\\n" " params drbd_resource=\"ocfs2\"\n" "ms ms_drbd_ocfs2 p_drbd_ocfs2 \\\n" " meta master-max=2 clone-max=2 notify=true\n" #. type: Plain text #: ocfs2.adoc:174 msgid "" "Note the `master-max=2` meta variable; it enables dual-Master mode for a Pacemaker master/slave set. This requires " "that `allow-two-primaries` is also set to `yes` in the DRBD configuration. Otherwise, Pacemaker will flag a " "configuration error during resource validation." msgstr "" "注意 `master max=2` 元变量;它为Pacemaker 主/从设备启用双主模式。这要求在DRBD配置中将 `allow-two-primaries` 也设置为 " "`yes`。否则,Pacemaker将在资源验证期间标记配置错误。" #. type: Title ==== #: ocfs2.adoc:176 #, no-wrap msgid "Adding OCFS2 management capability to Pacemaker" msgstr "为Pacemaker添加OCFS2管理功能" #. type: Plain text #: ocfs2.adoc:180 msgid "" "In order to manage OCFS2 and the kernel Distributed Lock Manager (DLM), Pacemaker uses a total of three different " "resource agents:" msgstr "为了管理OCFS2和内核分布式锁管理器(DLM),Pacemaker总共使用三种不同的资源代理:" #. type: Plain text #: ocfs2.adoc:182 msgid "`ocf:pacemaker:controld` -- Pacemaker's interface to the DLM;" msgstr "`ocf:pacemaker:controld` -- Pacemaker与DLM的接口;" #. type: Plain text #: ocfs2.adoc:185 msgid "`ocf:ocfs2:o2cb` -- Pacemaker's interface to OCFS2 cluster management;" msgstr "`ocf:ocfs2:o2cb`--Pacemaker与ocfs2集群管理的接口;" #. type: Plain text #: ocfs2.adoc:189 msgid "" "`ocf:heartbeat:Filesystem` -- the generic filesystem management resource agent which supports cluster file systems " "when configured as a Pacemaker clone." msgstr "`ocf:heartbeat:Filesystem`--通用文件系统管理资源代理,配置为Pacemaker克隆时支持群集文件系统。" #. type: Plain text #: ocfs2.adoc:193 msgid "" "You may enable all nodes in a Pacemaker cluster for OCFS2 management by creating a _cloned group_ of resources, with " "the following `crm` configuration:" msgstr "您可以通过创建具有以下“crm”配置的克隆资源组,为OCFS2管理启用Pacemaker群集中的所有节点:" #. type: delimited block - #: ocfs2.adoc:200 #, no-wrap msgid "" "primitive p_controld ocf:pacemaker:controld\n" "primitive p_o2cb ocf:ocfs2:o2cb\n" "group g_ocfs2mgmt p_controld p_o2cb\n" "clone cl_ocfs2mgmt g_ocfs2mgmt meta interleave=true\n" msgstr "" "primitive p_controld ocf:pacemaker:controld\n" "primitive p_o2cb ocf:ocfs2:o2cb\n" "group g_ocfs2mgmt p_controld p_o2cb\n" "clone cl_ocfs2mgmt g_ocfs2mgmt meta interleave=true\n" #. type: Plain text #: ocfs2.adoc:204 msgid "" "Once this configuration is committed, Pacemaker will start instances of the `controld` and `o2cb` resource types on " "all nodes in the cluster." msgstr "提交此配置后,Pacemaker将在群集中的所有节点上启动“controld”和“o2cb”资源类型的实例。" #. type: Title ==== #: ocfs2.adoc:206 #, no-wrap msgid "Adding an OCFS2 filesystem to Pacemaker" msgstr "向Pacemaker添加OCFS2文件系统" #. type: Plain text #: ocfs2.adoc:212 msgid "" "Pacemaker manages OCFS2 filesystems using the conventional `ocf:heartbeat:Filesystem` resource agent, albeit in clone " "mode. To put an OCFS2 filesystem under Pacemaker management, use the following `crm` configuration:" msgstr "" "Pacemaker使用传统的“ocf:heartbeat:Filesystem”资源代理管理OCFS2文件系统,尽管处于克隆模式。要将OCFS2文件系统置于" "Pacemaker管理下,请使用以下“crm”配置:" #. type: delimited block - #: ocfs2.adoc:219 #, no-wrap msgid "" "primitive p_fs_ocfs2 ocf:heartbeat:Filesystem \\\n" " params device=\"/dev/drbd/by-res/ocfs2/0\" directory=\"/srv/ocfs2\" \\\n" " fstype=\"ocfs2\" options=\"rw,noatime\"\n" "clone cl_fs_ocfs2 p_fs_ocfs2\n" msgstr "" "primitive p_fs_ocfs2 ocf:heartbeat:Filesystem \\\n" " params device=\"/dev/drbd/by-res/ocfs2/0\" directory=\"/srv/ocfs2\" \\\n" " fstype=\"ocfs2\" options=\"rw,noatime\"\n" "clone cl_fs_ocfs2 p_fs_ocfs2\n" #. type: Plain text #: ocfs2.adoc:222 msgid "This example assumes a single-volume resource." msgstr "本例假设一个卷资源。" #. type: Title ==== #: ocfs2.adoc:224 #, no-wrap msgid "Adding required Pacemaker constraints to manage OCFS2 filesystems" msgstr "添加所需的Pacemaker约束以管理OCFS2文件系统" #. type: Plain text #: ocfs2.adoc:228 msgid "" "In order to tie all OCFS2-related resources and clones together, add the following contraints to your Pacemaker " "configuration:" msgstr "为了将所有与OCFS2相关的资源和克隆绑定在一起,请在Pacemaker配置中添加以下限制:" #. type: delimited block - #: ocfs2.adoc:233 #, no-wrap msgid "" "order o_ocfs2 ms_drbd_ocfs2:promote cl_ocfs2mgmt:start cl_fs_ocfs2:start\n" "colocation c_ocfs2 cl_fs_ocfs2 cl_ocfs2mgmt ms_drbd_ocfs2:Master\n" msgstr "" "order o_ocfs2 ms_drbd_ocfs2:promote cl_ocfs2mgmt:start cl_fs_ocfs2:start\n" "colocation c_ocfs2 cl_fs_ocfs2 cl_ocfs2mgmt ms_drbd_ocfs2:Master\n" #. type: Title === #: ocfs2.adoc:236 #, no-wrap msgid "Legacy OCFS2 management (without Pacemaker)" msgstr "传统OCFS2管理(不带Pacemaker)" #. type: Plain text #: ocfs2.adoc:242 msgid "" "The information presented in this section applies to legacy systems where OCFS2 DLM support is not available in " "Pacemaker. It is preserved here for reference purposes only. New installations should always use the <> approach." msgstr "" "本节介绍的信息适用于Pacemaker中不支持OCFS2 DLM的传统系统。此处仅作参考之用。新装置应始终使用<>方法。" #. type: Title ==== #: ocfs2.adoc:244 #, no-wrap msgid "Configuring your cluster to support OCFS2" msgstr "配置群集以支持OCFS2" #. type: Title ===== #: ocfs2.adoc:247 #, no-wrap msgid "Creating the configuration file" msgstr "创建配置文件" #. type: Plain text #: ocfs2.adoc:250 msgid "OCFS2 uses a central configuration file, `/etc/ocfs2/cluster.conf`." msgstr "OCFS2使用一个中央配置文件 `/etc/OCFS2/cluster.conf`。" #. type: Plain text #: ocfs2.adoc:257 msgid "" "When creating your OCFS2 cluster, be sure to add both your hosts to the cluster configuration. The default port " "(7777) is usually an acceptable choice for cluster interconnect communications. If you choose any other port number, " "be sure to choose one that does not clash with an existing port used by DRBD (or any other configured TCP/IP)." msgstr "" "创建OCFS2集群时,请确保将两个主机都添加到集群配置中。默认端口(7777)通常是群集互连通信的可接受选择。如果您选择任何其" "他端口号,请确保选择的端口号与DRBD使用的现有端口(或任何其他配置的TCP/IP)不冲突。" #. type: Plain text #: ocfs2.adoc:263 msgid "" "If you feel less than comfortable editing the `cluster.conf` file directly, you may also use the `ocfs2console` " "graphical configuration utility which is usually more convenient. Regardless of the approach you selected, your `/etc/" "ocfs2/cluster.conf` file contents should look roughly like this:" msgstr "" "如果您觉得直接编辑cluster.conf文件不太舒服,还可以使用通常更方便的 `ocfs2console` 图形配置实用程序。不管您选择什么方" "法,您的 `/etc/ocfs2/cluster.conf` 文件内容应该大致如下:" #. type: delimited block - #: ocfs2.adoc:272 #, no-wrap msgid "" "node:\n" " ip_port = 7777\n" " ip_address = 10.1.1.31\n" " number = 0\n" " name = alice\n" " cluster = ocfs2\n" msgstr "" "node:\n" " ip_port = 7777\n" " ip_address = 10.1.1.31\n" " number = 0\n" " name = alice\n" " cluster = ocfs2\n" #. type: delimited block - #: ocfs2.adoc:279 #, no-wrap msgid "" "node:\n" " ip_port = 7777\n" " ip_address = 10.1.1.32\n" " number = 1\n" " name = bob\n" " cluster = ocfs2\n" msgstr "" "node:\n" " ip_port = 7777\n" " ip_address = 10.1.1.32\n" " number = 1\n" " name = bob\n" " cluster = ocfs2\n" #. type: delimited block - #: ocfs2.adoc:283 #, no-wrap msgid "" "cluster:\n" " node_count = 2\n" " name = ocfs2\n" msgstr "" "cluster:\n" " node_count = 2\n" " name = ocfs2\n" #. type: Plain text #: ocfs2.adoc:288 msgid "" "When you have configured you cluster configuration, use `scp` to distribute the configuration to both nodes in the " "cluster." msgstr "配置完群集配置后,请使用 `scp` 将配置分发到群集中的两个节点。" #. type: Title ===== #: ocfs2.adoc:290 #, no-wrap msgid "Configuring the O2CB driver" msgstr "配置O2CB驱动程序" #. type: Plain text #. type: Plain text #: ocfs2.adoc:294 ocfs2.adoc:297 msgid "On SLES, you may utilize the `configure` option of the `o2cb` init script:" msgstr "在SLES上,可以使用 `o2cb` init脚本的 `configure` 选项:" #. type: delimited block - #: ocfs2.adoc:301 #, no-wrap msgid "" "# /etc/init.d/o2cb configure\n" "Configuring the O2CB driver.\n" msgstr "" "# /etc/init.d/o2cb configure\n" "Configuring the O2CB driver.\n" #. type: delimited block - #: ocfs2.adoc:307 #, no-wrap msgid "" "This will configure the on-boot properties of the O2CB driver.\n" "The following questions will determine whether the driver is loaded on\n" "boot. The current values will be shown in brackets ('[]'). Hitting\n" " without typing an answer will keep that current value. Ctrl-C\n" "will abort.\n" msgstr "" "This will configure the on-boot properties of the O2CB driver.\n" "The following questions will determine whether the driver is loaded on\n" "boot. The current values will be shown in brackets ('[]'). Hitting\n" " without typing an answer will keep that current value. Ctrl-C\n" "will abort.\n" #. type: delimited block - #: ocfs2.adoc:323 #, no-wrap msgid "" "Load O2CB driver on boot (y/n) [y]:\n" "Cluster to start on boot (Enter \"none\" to clear) [ocfs2]:\n" "Specify heartbeat dead threshold (>=7) [31]:\n" "Specify network idle timeout in ms (>=5000) [30000]:\n" "Specify network keepalive delay in ms (>=1000) [2000]:\n" "Specify network reconnect delay in ms (>=2000) [2000]:\n" "Use user-space driven heartbeat? (y/n) [n]:\n" "Writing O2CB configuration: OK\n" "Loading module \"configfs\": OK\n" "Mounting configfs filesystem at /sys/kernel/config: OK\n" "Loading module \"ocfs2_nodemanager\": OK\n" "Loading module \"ocfs2_dlm\": OK\n" "Loading module \"ocfs2_dlmfs\": OK\n" "Mounting ocfs2_dlmfs filesystem at /dlm: OK\n" "Starting O2CB cluster ocfs2: OK\n" msgstr "" "Load O2CB driver on boot (y/n) [y]:\n" "Cluster to start on boot (Enter \"none\" to clear) [ocfs2]:\n" "Specify heartbeat dead threshold (>=7) [31]:\n" "Specify network idle timeout in ms (>=5000) [30000]:\n" "Specify network keepalive delay in ms (>=1000) [2000]:\n" "Specify network reconnect delay in ms (>=2000) [2000]:\n" "Use user-space driven heartbeat? (y/n) [n]:\n" "Writing O2CB configuration: OK\n" "Loading module \"configfs\": OK\n" "Mounting configfs filesystem at /sys/kernel/config: OK\n" "Loading module \"ocfs2_nodemanager\": OK\n" "Loading module \"ocfs2_dlm\": OK\n" "Loading module \"ocfs2_dlmfs\": OK\n" "Mounting ocfs2_dlmfs filesystem at /dlm: OK\n" "Starting O2CB cluster ocfs2: OK\n" #. type: Plain text #: ocfs2.adoc:330 msgid "" "====== .Debian GNU/Linux systems On Debian, the `configure` option to `/etc/init.d/o2cb` is not available. Instead, " "reconfigure the `ocfs2-tools` package to enable the driver:" msgstr "" "====== .Debian上的Debian GNU/Linux系统, `/etc/init.d/o2cb` 的 `configure` 选项不可用。请重新配置 `ocfs2-tools` 包以启" "用驱动程序:" #. type: delimited block - #: ocfs2.adoc:339 #, no-wrap msgid "" "# dpkg-reconfigure -p medium -f readline ocfs2-tools\n" "Configuring ocfs2-tools\n" "Would you like to start an OCFS2 cluster (O2CB) at boot time? yes\n" "Name of the cluster to start at boot time: ocfs2\n" "The O2CB heartbeat threshold sets up the maximum time in seconds that a node\n" "awaits for an I/O operation. After it, the node \"fences\" itself, and you will\n" "probably see a crash.\n" msgstr "" "# dpkg-reconfigure -p medium -f readline ocfs2-tools\n" "Configuring ocfs2-tools\n" "Would you like to start an OCFS2 cluster (O2CB) at boot time? yes\n" "Name of the cluster to start at boot time: ocfs2\n" "The O2CB heartbeat threshold sets up the maximum time in seconds that a node\n" "awaits for an I/O operation. After it, the node \"fences\" itself, and you will\n" "probably see a crash.\n" #. type: delimited block - #: ocfs2.adoc:341 #, no-wrap msgid "It is calculated as the result of: (threshold - 1) x 2.\n" msgstr "It is calculated as the result of: (threshold - 1) x 2.\n" #. type: delimited block - #: ocfs2.adoc:343 #, no-wrap msgid "Its default value is 31 (60 seconds).\n" msgstr "Its default value is 31 (60 seconds).\n" #. type: delimited block - #: ocfs2.adoc:345 #, no-wrap msgid "Raise it if you have slow disks and/or crashes with kernel messages like:\n" msgstr "Raise it if you have slow disks and/or crashes with kernel messages like:\n" #. type: delimited block - #: ocfs2.adoc:356 #, no-wrap msgid "" "o2hb_write_timeout: 164 ERROR: heartbeat write timeout to device XXXX after NNNN\n" "milliseconds\n" "O2CB Heartbeat threshold: `31`\n" "\t\tLoading filesystem \"configfs\": OK\n" "Mounting configfs filesystem at /sys/kernel/config: OK\n" "Loading stack plugin \"o2cb\": OK\n" "Loading filesystem \"ocfs2_dlmfs\": OK\n" "Mounting ocfs2_dlmfs filesystem at /dlm: OK\n" "Setting cluster stack \"o2cb\": OK\n" "Starting O2CB cluster ocfs2: OK\n" msgstr "" "o2hb_write_timeout: 164 ERROR: heartbeat write timeout to device XXXX after NNNN\n" "milliseconds\n" "O2CB Heartbeat threshold: `31`\n" "\t\tLoading filesystem \"configfs\": OK\n" "Mounting configfs filesystem at /sys/kernel/config: OK\n" "Loading stack plugin \"o2cb\": OK\n" "Loading filesystem \"ocfs2_dlmfs\": OK\n" "Mounting ocfs2_dlmfs filesystem at /dlm: OK\n" "Setting cluster stack \"o2cb\": OK\n" "Starting O2CB cluster ocfs2: OK\n" #. type: Title ==== #: ocfs2.adoc:359 #, no-wrap msgid "Using your OCFS2 filesystem" msgstr "使用OCFS2文件系统" #. type: Plain text #: ocfs2.adoc:363 msgid "" "When you have completed cluster configuration and created your file system, you may mount it as any other file system:" msgstr "完成集群配置并创建文件系统后,可以将其装载为任何其他文件系统:" #. type: delimited block - #: ocfs2.adoc:365 #, no-wrap msgid "# mount -t ocfs2 /dev/drbd0 /shared\n" msgstr "# mount -t ocfs2 /dev/drbd0 /shared\n" #. type: Plain text #: ocfs2.adoc:369 msgid "Your kernel log (accessible by issuing the command `dmesg`) should then contain a line similar to this one:" msgstr "然后,内核日志(通过发出命令 `dmesg` 可以访问)应该包含一行类似的内容:" #. type: delimited block - #: ocfs2.adoc:373 #, no-wrap msgid "ocfs2: Mounting device (147,0) on (node 0, slot 0) with ordered data mode.\n" msgstr "ocfs2: Mounting device (147,0) on (node 0, slot 0) with ordered data mode.\n" #. type: Plain text #: ocfs2.adoc:376 msgid "" "From that point forward, you should be able to simultaneously mount your OCFS2 filesystem on both your nodes, in read/" "write mode." msgstr "从此时起,您应该能够以读/写模式同时在两个节点上挂载OCFS2文件系统。"