|
|
c401cc |
From 0e8ed42baa0ce53d54091c8325ac919e94e3429b Mon Sep 17 00:00:00 2001
|
|
|
c401cc |
Message-Id: <0e8ed42baa0ce53d54091c8325ac919e94e3429b@dist-git>
|
|
|
c401cc |
From: Eric Blake <eblake@redhat.com>
|
|
|
c401cc |
Date: Wed, 26 Feb 2014 14:54:21 +0100
|
|
|
c401cc |
Subject: [PATCH] storage: document existing pools
|
|
|
c401cc |
|
|
|
c401cc |
https://bugzilla.redhat.com/show_bug.cgi?id=1032370
|
|
|
c401cc |
|
|
|
c401cc |
We forgot to document several pool types.
|
|
|
c401cc |
|
|
|
c401cc |
* docs/formatstorage.html.in: Add docs for scsi, mpath, rbd, and
|
|
|
c401cc |
sheepdog.
|
|
|
c401cc |
|
|
|
c401cc |
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
|
c401cc |
(cherry picked from commit 59dce8d278ba92d1b2d5863e770843a4281c2b2c)
|
|
|
c401cc |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c401cc |
---
|
|
|
c401cc |
docs/formatstorage.html.in | 53 ++++++++++++++++++++++++++++++----------------
|
|
|
c401cc |
1 file changed, 35 insertions(+), 18 deletions(-)
|
|
|
c401cc |
|
|
|
c401cc |
diff --git a/docs/formatstorage.html.in b/docs/formatstorage.html.in
|
|
|
c401cc |
index 30ae538..2bb29b1 100644
|
|
|
c401cc |
--- a/docs/formatstorage.html.in
|
|
|
c401cc |
+++ b/docs/formatstorage.html.in
|
|
|
c401cc |
@@ -18,9 +18,12 @@
|
|
|
c401cc |
The top level tag for a storage pool document is 'pool'. It has
|
|
|
c401cc |
a single attribute type , which is one of dir ,
|
|
|
c401cc |
fs , netfs , disk ,
|
|
|
c401cc |
- iscsi , logical . This corresponds to the
|
|
|
c401cc |
+ iscsi , logical , scsi
|
|
|
c401cc |
+ (all since 0.4.1), mpath
|
|
|
c401cc |
+ (since 0.7.1), rbd
|
|
|
c401cc |
+ (since 0.9.13), or sheepdog
|
|
|
c401cc |
+ (since 0.10.0). This corresponds to the
|
|
|
c401cc |
storage backend drivers listed further along in this document.
|
|
|
c401cc |
- The storage pool XML format is available since 0.4.1
|
|
|
c401cc |
|
|
|
c401cc |
|
|
|
c401cc |
|
|
|
c401cc |
@@ -64,7 +67,8 @@
|
|
|
c401cc |
|
|
|
c401cc |
A single source element is contained within the top level
|
|
|
c401cc |
pool element. This tag is used to describe the source of
|
|
|
c401cc |
- the storage pool. It can contain the following child elements:
|
|
|
c401cc |
+ the storage pool. The set of child elements that it will contain
|
|
|
c401cc |
+ depend on the pool type, but come from the following child elements:
|
|
|
c401cc |
|
|
|
c401cc |
|
|
|
c401cc |
|
|
|
c401cc |
@@ -89,17 +93,21 @@
|
|
|
c401cc |
|
|
|
c401cc |
|
|
|
c401cc |
device
|
|
|
c401cc |
- Provides the source for pools backed by physical devices.
|
|
|
c401cc |
+ Provides the source for pools backed by physical devices
|
|
|
c401cc |
+ (pool types fs , logical , disk ,
|
|
|
c401cc |
+ iscsi ).
|
|
|
c401cc |
May be repeated multiple times depending on backend driver. Contains
|
|
|
c401cc |
a single attribute path which is the fully qualified
|
|
|
c401cc |
path to the block device node. Since 0.4.1
|
|
|
c401cc |
- directory
|
|
|
c401cc |
- Provides the source for pools backed by directories. May
|
|
|
c401cc |
+ dir
|
|
|
c401cc |
+ Provides the source for pools backed by directories (pool
|
|
|
c401cc |
+ type dir ). May
|
|
|
c401cc |
only occur once. Contains a single attribute path
|
|
|
c401cc |
which is the fully qualified path to the backing directory.
|
|
|
c401cc |
Since 0.4.1
|
|
|
c401cc |
adapter
|
|
|
c401cc |
- Provides the source for pools backed by SCSI adapters. May
|
|
|
c401cc |
+ Provides the source for pools backed by SCSI adapters (pool
|
|
|
c401cc |
+ type scsi ). May
|
|
|
c401cc |
only occur once. Attribute name is the SCSI adapter
|
|
|
c401cc |
name (ex. "scsi_host1". NB, although a name such as "host1" is
|
|
|
c401cc |
still supported for backwards compatibility, it is not recommended).
|
|
|
c401cc |
@@ -120,7 +128,9 @@
|
|
|
c401cc |
Since 0.6.2
|
|
|
c401cc |
host
|
|
|
c401cc |
Provides the source for pools backed by storage from a
|
|
|
c401cc |
- remote server. Will be used in combination with a directory
|
|
|
c401cc |
+ remote server (pool types netfs , iscsi ,
|
|
|
c401cc |
+ rbd , sheepdog ). Will be
|
|
|
c401cc |
+ used in combination with a directory
|
|
|
c401cc |
or device element. Contains an attribute name
|
|
|
c401cc |
which is the hostname or IP address of the server. May optionally
|
|
|
c401cc |
contain a port attribute for the protocol specific
|
|
|
c401cc |
@@ -128,18 +138,19 @@
|
|
|
c401cc |
auth
|
|
|
c401cc |
If present, the auth element provides the
|
|
|
c401cc |
authentication credentials needed to access the source by the
|
|
|
c401cc |
- setting of the type attribute. The type
|
|
|
c401cc |
- must be either "chap" or "ceph". Additionally a mandatory attribute
|
|
|
c401cc |
+ setting of the type attribute (pool
|
|
|
c401cc |
+ types iscsi , rbd ). The type
|
|
|
c401cc |
+ must be either "chap" or "ceph". Use "ceph" for
|
|
|
c401cc |
+ Ceph RBD (Rados Block Device) network sources and use "iscsi" for CHAP
|
|
|
c401cc |
+ (Challenge-Handshake Authentication Protocol) iSCSI
|
|
|
c401cc |
+ targets. Additionally a mandatory attribute
|
|
|
c401cc |
username identifies the username to use during
|
|
|
c401cc |
authentication as well as a sub-element secret with
|
|
|
c401cc |
a mandatory attribute type , to tie back to a
|
|
|
c401cc |
libvirt secret object that
|
|
|
c401cc |
holds the actual password or other credentials. The domain XML
|
|
|
c401cc |
intentionally does not expose the password, only the reference
|
|
|
c401cc |
- to the object that manages the password. The secret element
|
|
|
c401cc |
- type must be either "ceph" or "iscsi". Use "ceph" for
|
|
|
c401cc |
- Ceph RBD (Rados Block Device) network sources and use "iscsi" for CHAP
|
|
|
c401cc |
- (Challenge-Handshake Authentication Protocol) iSCSI targets.
|
|
|
c401cc |
+ to the object that manages the password.
|
|
|
c401cc |
The secret element requires either a uuid
|
|
|
c401cc |
attribute with the UUID of the secret object or a usage
|
|
|
c401cc |
attribute matching the key that was specified in the
|
|
|
c401cc |
@@ -148,11 +159,13 @@
|
|
|
c401cc |
|
|
|
c401cc |
name
|
|
|
c401cc |
Provides the source for pools backed by storage from a
|
|
|
c401cc |
- named element (e.g., a logical volume group name).
|
|
|
c401cc |
- Contains a string identifier.
|
|
|
c401cc |
+ named element (pool types logical , rbd ,
|
|
|
c401cc |
+ sheepdog ). Contains a string identifier.
|
|
|
c401cc |
Since 0.4.5
|
|
|
c401cc |
format
|
|
|
c401cc |
- Provides information about the format of the pool. This
|
|
|
c401cc |
+ Provides information about the format of the pool (pool
|
|
|
c401cc |
+ types fs , netfs , disk ,
|
|
|
c401cc |
+ logical ). This
|
|
|
c401cc |
contains a single attribute type whose value is
|
|
|
c401cc |
backend specific. This is typically used to indicate filesystem
|
|
|
c401cc |
type, or network filesystem type, or partition table type, or
|
|
|
c401cc |
@@ -174,7 +187,11 @@
|
|
|
c401cc |
|
|
|
c401cc |
|
|
|
c401cc |
A single target element is contained within the top level
|
|
|
c401cc |
- pool element. This tag is used to describe the mapping of
|
|
|
c401cc |
+ pool element for some types of pools (pool
|
|
|
c401cc |
+ types dir , fs , netfs ,
|
|
|
c401cc |
+ logical , disk , iscsi ,
|
|
|
c401cc |
+ scsi , mpath ). This tag is used to
|
|
|
c401cc |
+ describe the mapping of
|
|
|
c401cc |
the storage pool into the host filesystem. It can contain the following
|
|
|
c401cc |
child elements:
|
|
|
c401cc |
|
|
|
c401cc |
--
|
|
|
c401cc |
1.9.0
|
|
|
c401cc |
|