xiaoyuyao commented on a change in pull request #475: HDDS_2743. 
shell/VolumeCommands.md translation
URL: https://github.com/apache/hadoop-ozone/pull/475#discussion_r369863962
 
 

 ##########
 File path: hadoop-hdds/docs/content/shell/VolumeCommands.zh.md
 ##########
 @@ -0,0 +1,107 @@
+---
+title: 卷命令
+weight: 2
+summary: 卷命令帮助你管理卷的生命周期
+---
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+Volume 命令通常需要管理员权限,ozone shell 支持以下卷命令:
+
+  * [创建](#创建)
+  * [删除](#删除)
+  * [查看](#查看)
+  * [列举](#列举)
+  * [更新](#更新)
+
+### 创建
+
+管理员可以通过 `volume create` 命令创建一个卷并分配给一个用户。
+
+***参数:***
+
+| 参数名                      |  说明                                |
+|--------------------------------|-----------------------------------------|
+| -q, \-\-quota                    | 可选,指明该卷在 Ozone 集群所能使用的最大空间,即份额。         |
+| -u, \-\-user                     |  必需,指明该卷的所有者,此用户可以在该卷中创建桶和键。    |
+|  Uri                           | 卷名                                       |
+
+{{< highlight bash >}}
+ozone sh volume create --quota=1TB --user=bilbo /hive
+{{< /highlight >}}
+
+上述命令会在 ozone 集群中创建名为 _hive_ 的卷,卷的份额为 1TB,所有者为 _bilbo_ 。
 
 Review comment:
   限额

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to