# 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. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2020-03-14 01:03+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. type: Title == #: docker-linstor.adoc:2 #, no-wrap msgid "LINSTOR Volumes in Docker" msgstr "Docker中的LINSTOR卷" #. type: Plain text #: docker-linstor.adoc:7 msgid "" "indexterm:[docker]This chapter describes LINSTOR volumes in Docker as " "managed by the https://github.com/LINBIT/linstor-docker-volume-go[LINSTOR " "Docker Volume Plugin]." msgstr "" "indexterm:[docker]本章介绍docker中由https://github.com/LINBIT/linstor-docker-volume-go" "[LINSTOR Docker Volume Plugin]管理的LINSTOR卷。" #. type: Title === #: docker-linstor.adoc:9 #, no-wrap msgid "Docker Overview" msgstr "Docker概述" #. type: Plain text #: docker-linstor.adoc:15 msgid "" "_Docker_ is a platform for developing, shipping, and running applications in" " the form of Linux containers. For stateful applications that require data " "persistence, Docker supports the use of persistent _volumes_ and " "_volume_drivers_." msgstr "" "_Docker_ 是一个以Linux容器的形式开发、发布和运行应用程序的平台。对于需要数据持久性的有状态应用程序,Docker支持使用持久 _卷_ 和 _卷驱动程序_。" #. type: Plain text #: docker-linstor.adoc:19 msgid "" "The https://github.com/LINBIT/linstor-docker-volume-go[LINSTOR Docker Volume" " Plugin] is a volume driver that provisions persistent volumes from a " "LINSTOR cluster for Docker containers." msgstr "" "https://github.com/LINBIT/linstor-docker-volume-go[LINSTOR Docker Volume " "Plugin]是一个卷驱动程序,它为docker容器提供来自linstor集群的持久卷。" #. type: Title === #: docker-linstor.adoc:21 #, no-wrap msgid "LINSTOR Plugin for Docker Installation" msgstr "用于Docker安装的LINSTOR插件" #. type: Plain text #: docker-linstor.adoc:25 msgid "" "To install the `linstor-docker-volume` plugin provided by LINBIT, you'll " "need to have a woring LINSTOR cluster. After that the plugin can be " "installed from the public docker hub." msgstr "" "要安装LINBIT提供的 `linstor-docker-volume` 插件,需要有一个工作的linstor集群。之后,可以从公共docker " "hub安装插件。" #. type: delimited block - #: docker-linstor.adoc:28 #, no-wrap msgid "# docker plugin install linbit/linstor-docker-volume\n" msgstr "# docker plugin install linbit/linstor-docker-volume\n" #. type: Title === #: docker-linstor.adoc:31 #, no-wrap msgid "LINSTOR Plugin for Docker Configuration" msgstr "用于Docker配置的LINSTOR插件" #. type: Plain text #: docker-linstor.adoc:36 msgid "" "As the plugin has to communicate to the LINSTOR controller via the LINSTOR " "python library, we must tell the plugin where to find the LINSTOR Controller" " node in it's configuration file:" msgstr "" "由于插件必须通过LINSTOR python库与LINSTOR controller通信,因此我们必须告诉插件在其配置文件中找到LINSTOR controller节点的位置:" #. type: delimited block - #: docker-linstor.adoc:41 #, no-wrap msgid "" "# cat /etc/linstor/docker-volume.conf\n" "[global]\n" "controllers = linstor://hostnameofcontroller\n" msgstr "" "# cat /etc/linstor/docker-volume.conf\n" "[global]\n" "controllers = linstor://hostnameofcontroller\n" #. type: Plain text #: docker-linstor.adoc:45 msgid "A more extensive example could look like this:" msgstr "更广泛的例子如下:" #. type: delimited block - #: docker-linstor.adoc:54 #, no-wrap msgid "" "# cat /etc/linstor/docker-volume.conf\n" "[global]\n" "storagepool = thin-lvm\n" "fs = ext4\n" "fsopts = -E discard\n" "size = 100MB\n" "replicas = 2\n" msgstr "" "# cat /etc/linstor/docker-volume.conf\n" "[global]\n" "storagepool = thin-lvm\n" "fs = ext4\n" "fsopts = -E discard\n" "size = 100MB\n" "replicas = 2\n" #. type: Title === #: docker-linstor.adoc:56 #, no-wrap msgid "Example Usage" msgstr "示例用法" #. type: Plain text #: docker-linstor.adoc:62 msgid "" "The following are some examples of how you might use the LINSTOR Docker " "Volume Plugin. In the following we expect a cluster consisting of three " "nodes (alpha, bravo, and charlie)." msgstr "" "下面是一些如何使用LINSTOR Docker " "Volume插件的示例。在下面我们期望一个由三个节点(alpha、bravo和charlie)组成的集群。" #. type: Title ==== #: docker-linstor.adoc:64 #, no-wrap msgid "Example 1 - typical docker pattern" msgstr "示例1-典型的docker模式" #. type: Plain text #: docker-linstor.adoc:67 msgid "On node alpha:" msgstr "在节点alpha上:" #. type: delimited block - #: docker-linstor.adoc:75 #, no-wrap msgid "" "$ docker volume create -d linstor \\\n" " --opt fs=xfs --opt size=200 lsvol\n" "$ docker run -it --rm --name=cont \\\n" " -v lsvol:/data --volume-driver=linstor busybox sh\n" "$ root@cont: echo \"foo\" > /data/test.txt\n" "$ root@cont: exit\n" msgstr "" "$ docker volume create -d linstor \\\n" " --opt fs=xfs --opt size=200 lsvol\n" "$ docker run -it --rm --name=cont \\\n" " -v lsvol:/data --volume-driver=linstor busybox sh\n" "$ root@cont: echo \"foo\" > /data/test.txt\n" "$ root@cont: exit\n" #. type: Plain text #: docker-linstor.adoc:78 msgid "On node bravo:" msgstr "在bravo节点上:" #. type: delimited block - #: docker-linstor.adoc:86 #, no-wrap msgid "" "$ docker run -it --rm --name=cont \\\n" " -v lsvol:/data --volume-driver=linstor busybox sh\n" "$ root@cont: cat /data/test.txt\n" " foo\n" "$ root@cont: exit\n" "$ docker volume rm lsvol\n" msgstr "" "$ docker run -it --rm --name=cont \\\n" " -v lsvol:/data --volume-driver=linstor busybox sh\n" "$ root@cont: cat /data/test.txt\n" " foo\n" "$ root@cont: exit\n" "$ docker volume rm lsvol\n" #. type: Title ==== #: docker-linstor.adoc:88 #, no-wrap msgid "Example 2 - one diskful assignment by name, two nodes diskless" msgstr "示例2-按名称分配一个磁盘,两个节点无磁盘" #. type: delimited block - #: docker-linstor.adoc:92 #, no-wrap msgid "$ docker volume create -d linstor --opt nodes=bravo lsvol\n" msgstr "$ docker volume create -d linstor --opt nodes=bravo lsvol\n" #. type: Title ==== #: docker-linstor.adoc:94 #, no-wrap msgid "" "Example 3 - one diskful assignment, no matter where, two nodes diskless" msgstr "示例3-一个磁盘完全分配,无论在何处,两个节点无磁盘" #. type: delimited block - #: docker-linstor.adoc:98 #, no-wrap msgid "$ docker volume create -d linstor --opt replicas=1 lsvol\n" msgstr "$ docker volume create -d linstor --opt replicas=1 lsvol\n" #. type: Title ==== #: docker-linstor.adoc:100 #, no-wrap msgid "Example 4 - two diskful assignments by name, charlie diskless" msgstr "示例4-两个按名称分配的磁盘,charlie diskless" #. type: delimited block - #: docker-linstor.adoc:104 #, no-wrap msgid "$ docker volume create -d linstor --opt nodes=alpha,bravo lsvol\n" msgstr "$ docker volume create -d linstor --opt nodes=alpha,bravo lsvol\n" #. type: Title ==== #: docker-linstor.adoc:106 #, no-wrap msgid "" "Example 5 - two diskful assignments, no matter where, one node diskless" msgstr "示例5-两个磁盘满分配,无论在何处,一个节点无磁盘" #. type: delimited block - #: docker-linstor.adoc:110 #, no-wrap msgid "$ docker volume create -d linstor --opt replicas=2 lsvol\n" msgstr "$ docker volume create -d linstor --opt replicas=2 lsvol\n"