Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
a55ddc87
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a55ddc87
编写于
1月 17, 2017
作者:
O
Olga Krishtal
提交者:
John Ferlan
1月 26, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
storage: vstorage pool documentation and simple test
Signed-off-by:
N
Olga Krishtal
<
okrishtal@virtuozzo.com
>
上级
479a2f16
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
95 addition
and
4 deletion
+95
-4
docs/formatstorage.html.in
docs/formatstorage.html.in
+4
-3
docs/news.xml
docs/news.xml
+11
-1
docs/schemas/storagepool.rng
docs/schemas/storagepool.rng
+21
-0
docs/storage.html.in
docs/storage.html.in
+28
-0
tests/storagepoolxml2xmlin/pool-vstorage.xml
tests/storagepoolxml2xmlin/pool-vstorage.xml
+10
-0
tests/storagepoolxml2xmlout/pool-vstorage.xml
tests/storagepoolxml2xmlout/pool-vstorage.xml
+18
-0
tests/storagepoolxml2xmltest.c
tests/storagepoolxml2xmltest.c
+3
-0
未找到文件。
docs/formatstorage.html.in
浏览文件 @
a55ddc87
...
...
@@ -24,8 +24,9 @@
(
<span
class=
"since"
>
since 0.9.13
</span>
),
<code>
sheepdog
</code>
(
<span
class=
"since"
>
since 0.10.0
</span>
),
<code>
gluster
</code>
(
<span
class=
"since"
>
since
1.2.0
</span>
) or
<code>
zfs
</code>
(
<span
class=
"since"
>
since
1.2.8
</span>
). This corresponds to the
1.2.0
</span>
),
<code>
zfs
</code>
(
<span
class=
"since"
>
since
1.2.8
</span>
) or
<code>
vstorage
</code>
(
<span
class=
"since"
>
since
3.1.0
</span>
). This corresponds to the
storage backend drivers listed further along in this document.
</p>
<h3><a
name=
"StoragePoolFirst"
>
General metadata
</a></h3>
...
...
@@ -124,7 +125,7 @@
<dt><code>
device
</code></dt>
<dd>
Provides the source for pools backed by physical devices
(pool types
<code>
fs
</code>
,
<code>
logical
</code>
,
<code>
disk
</code>
,
<code>
iscsi
</code>
,
<code>
zfs
</code>
).
<code>
iscsi
</code>
,
<code>
zfs
</code>
,
<code>
vstorage
</code>
).
May be repeated multiple times depending on backend driver. Contains
a required attribute
<code>
path
</code>
which is either the fully
qualified path to the block device node or for
<code>
iscsi
</code>
...
...
docs/news.xml
浏览文件 @
a55ddc87
...
...
@@ -12,7 +12,17 @@
<libvirt>
<release
version=
"v3.1.0"
date=
"unreleased"
>
<section
title=
"New features"
>
<change/>
<change>
<summary>
storage: Add Virtuozzo storage backend storage pool
</summary>
<description>
Add new storage backend to support pool and volume management
within the Virtuozzo Storage environment. Virtuozzo Storage is
a highly available distributed software defined storage with
built-in replication and disaster recovery.
</description>
</change>
</section>
<section
title=
"Improvements"
>
<change>
...
...
docs/schemas/storagepool.rng
浏览文件 @
a55ddc87
...
...
@@ -24,6 +24,7 @@
<ref
name=
'poolsheepdog'
/>
<ref
name=
'poolgluster'
/>
<ref
name=
'poolzfs'
/>
<ref
name=
'poolvstorage'
/>
</choice>
</element>
</define>
...
...
@@ -173,6 +174,18 @@
</interleave>
</define>
<define
name=
'poolvstorage'
>
<attribute
name=
'type'
>
<value>
vstorage
</value>
</attribute>
<interleave>
<ref
name=
'commonmetadata'
/>
<ref
name=
'sizing'
/>
<ref
name=
'sourcevstorage'
/>
<ref
name=
'target'
/>
</interleave>
</define>
<define
name=
'sourceinfovendor'
>
<interleave>
<optional>
...
...
@@ -373,6 +386,14 @@
</element>
</define>
<define
name=
'sourcevstorage'
>
<element
name=
'source'
>
<interleave>
<ref
name=
'sourceinfoname'
/>
</interleave>
</element>
</define>
<define
name=
'sourcefmtfs'
>
<optional>
<element
name=
'format'
>
...
...
docs/storage.html.in
浏览文件 @
a55ddc87
...
...
@@ -120,6 +120,9 @@
<li>
<a
href=
"#StorageBackendZFS"
>
ZFS backend
</a>
</li>
<li>
<a
href=
"#StorageBackendVstorage"
>
Virtuozzo storage backend
</a>
</li>
</ul>
<h2><a
name=
"StorageBackendDir"
>
Directory pool
</a></h2>
...
...
@@ -791,6 +794,31 @@
<p>
The ZFS volume pool does not use the volume format type element.
</p>
<h2><a
name=
"StorageBackendVstorage"
>
Vstorage pools
</a></h2>
<p>
This provides a pool based on Virtuozzo storage. Virtuozzo Storage is
a highly available distributed software-defined storage with built-in
replication and disaster recovery. More detailed information about
Virtuozzo storage and its managment can be found here:
<a
href=
"https://openvz.org/Virtuozzo_Storage"
>
Virtuozzo Storage
</a>
).
</p>
<p>
Please refer to the Virtuozzo Storage documentation for details
on storage management and usage.
</p>
<h3>
Example pool input
</h3>
<p>
In order to create storage pool with Virtuozzo Storage backend you
have to provide cluster name and be authorized within the cluster.
</p>
<pre>
<
pool type="vstorage"
>
<
name
>
myvstoragepool
<
/name
>
<
source
>
<
name
>
clustername
<
/name
>
<
/source
>
<
target
>
<
path
>
/mnt/clustername
<
/path
>
<
/target
>
<
/pool
>
</pre>
<h3>
Valid volume format types
</h3>
<p>
The valid volume types are the same as for the directory pool.
</p>
</body>
</html>
tests/storagepoolxml2xmlin/pool-vstorage.xml
0 → 100644
浏览文件 @
a55ddc87
<pool
type=
"vstorage"
>
<name>
vstorage
</name>
<uuid>
cfd270f9-acc7-4394-8685-4977eb318171
</uuid>
<source>
<name>
vzstorage-cluster
</name>
</source>
<target>
<path>
/mnt/vstorage_cluster
</path>
</target>
</pool>
tests/storagepoolxml2xmlout/pool-vstorage.xml
0 → 100644
浏览文件 @
a55ddc87
<pool
type=
'vstorage'
>
<name>
vstorage
</name>
<uuid>
cfd270f9-acc7-4394-8685-4977eb318171
</uuid>
<capacity
unit=
'bytes'
>
0
</capacity>
<allocation
unit=
'bytes'
>
0
</allocation>
<available
unit=
'bytes'
>
0
</available>
<source>
<name>
vstorage-cluster
</name>
</source>
<target>
<path>
/mnt/vstorage-cluster
</path>
<permissions>
<mode>
0755
</mode>
<owner>
-1
</owner>
<group>
-1
</group>
</permissions>
</target>
</pool>
tests/storagepoolxml2xmltest.c
浏览文件 @
a55ddc87
...
...
@@ -104,6 +104,9 @@ mymain(void)
#ifdef WITH_STORAGE_RBD
DO_TEST
(
"pool-rbd"
);
#endif
#ifdef WITH_STORAGE_VSTORAGE
DO_TEST
(
"pool-vstorage"
);
#endif
return
ret
==
0
?
EXIT_SUCCESS
:
EXIT_FAILURE
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录