From 0e8ed42baa0ce53d54091c8325ac919e94e3429b Mon Sep 17 00:00:00 2001
Message-Id: <0e8ed42baa0ce53d54091c8325ac919e94e3429b@dist-git>
From: Eric Blake type
, which is one of dir
,
fs
, netfs
, disk
,
- iscsi
, logical
. This corresponds to the
+ iscsi
, logical
, scsi
+ (all since 0.4.1), mpath
+ (since 0.7.1), rbd
+ (since 0.9.13), or sheepdog
+ (since 0.10.0). This corresponds to the
storage backend drivers listed further along in this document.
- The storage pool XML format is available since 0.4.1
A single source
element is contained within the top level
pool
element. This tag is used to describe the source of
- the storage pool. It can contain the following child elements:
+ the storage pool. The set of child elements that it will contain
+ depend on the pool type, but come from the following child elements:
@@ -89,17 +93,21 @@
device
fs
, logical
, disk
,
+ iscsi
).
May be repeated multiple times depending on backend driver. Contains
a single attribute path
which is the fully qualified
path to the block device node. Since 0.4.1directory
dir
dir
). May
only occur once. Contains a single attribute path
which is the fully qualified path to the backing directory.
Since 0.4.1adapter
scsi
). May
only occur once. Attribute name
is the SCSI adapter
name (ex. "scsi_host1". NB, although a name such as "host1" is
still supported for backwards compatibility, it is not recommended).
@@ -120,7 +128,9 @@
Since 0.6.2host
directory
+ remote server (pool types netfs
, iscsi
,
+ rbd
, sheepdog
). Will be
+ used in combination with a directory
or device
element. Contains an attribute name
which is the hostname or IP address of the server. May optionally
contain a port
attribute for the protocol specific
@@ -128,18 +138,19 @@
auth
auth
element provides the
authentication credentials needed to access the source by the
- setting of the type
attribute. The type
- must be either "chap" or "ceph". Additionally a mandatory attribute
+ setting of the type
attribute (pool
+ types iscsi
, rbd
). The type
+ must be either "chap" or "ceph". Use "ceph" for
+ Ceph RBD (Rados Block Device) network sources and use "iscsi" for CHAP
+ (Challenge-Handshake Authentication Protocol) iSCSI
+ targets. Additionally a mandatory attribute
username
identifies the username to use during
authentication as well as a sub-element secret
with
a mandatory attribute type
, to tie back to a
libvirt secret object that
holds the actual password or other credentials. The domain XML
intentionally does not expose the password, only the reference
- to the object that manages the password. The secret element
- type
must be either "ceph" or "iscsi". Use "ceph" for
- Ceph RBD (Rados Block Device) network sources and use "iscsi" for CHAP
- (Challenge-Handshake Authentication Protocol) iSCSI targets.
+ to the object that manages the password.
The secret
element requires either a uuid
attribute with the UUID of the secret object or a usage
attribute matching the key that was specified in the
@@ -148,11 +159,13 @@
name
logical
, rbd
,
+ sheepdog
). Contains a string identifier.
Since 0.4.5format
fs
, netfs
, disk
,
+ logical
). This
contains a single attribute type
whose value is
backend specific. This is typically used to indicate filesystem
type, or network filesystem type, or partition table type, or
@@ -174,7 +187,11 @@
A single target
element is contained within the top level
- pool
element. This tag is used to describe the mapping of
+ pool
element for some types of pools (pool
+ types dir
, fs
, netfs
,
+ logical
, disk
, iscsi
,
+ scsi
, mpath
). This tag is used to
+ describe the mapping of
the storage pool into the host filesystem. It can contain the following
child elements: