...
<source>
<host name="iscsi.example.com"/>
- <device path="demo-target"/>
+ <device path="iqn.2013-06.com.example:iscsi-pool"/>
<auth type='chap' username='myname'>
<secret usage='mycluster_myname'/>
</auth>
(pool types <code>fs</code>, <code>logical</code>, <code>disk</code>,
<code>iscsi</code>, <code>zfs</code>).
May be repeated multiple times depending on backend driver. Contains
- a single attribute <code>path</code> which is the fully qualified
- path to the block device node. <span class="since">Since 0.4.1</span></dd>
+ a single attribute <code>path</code> which is either the fully
+ qualified path to the block device node or for <code>iscsi</code>
+ the iSCSI Qualified Name (IQN).
+ <span class="since">Since 0.4.1</span></dd>
<dt><code>dir</code></dt>
<dd>Provides the source for pools backed by directories (pool
type <code>dir</code>), or optionally to select a subdirectory
or <code>device</code> element. Contains an attribute <code>name</code>
which is the hostname or IP address of the server. May optionally
contain a <code>port</code> attribute for the protocol specific
- port number. <span class="since">Since 0.4.1</span></dd>
+ port number. Duplicate storage pool definition checks may perform
+ a cursory check that the same host name by string comparison in the
+ new pool does not match an existing pool's source host name when
+ combined with the <code>directory</code> or <code>device</code>
+ element. Name resolution of the provided hostname or IP address
+ is left to the storage driver backend interactions with the remote
+ server. See the <a href="storage.html">storage driver page</a> for
+ any restrictions for specific storage backends.
+ <span class="since">Since 0.4.1</span></dd>
<dt><code>auth</code></dt>
<dd>If present, the <code>auth</code> element provides the
authentication credentials needed to access the source by the
to use <code>/dev/disk/by-path</code> or <code>/dev/disk/by-id</code>
for the target path. These provide persistent stable naming for LUNs
</p>
+ <p>
+ The libvirt iSCSI storage backend does not resolve the provided
+ host name or IP address when finding the available target IQN's
+ on the host; therefore, defining two pools to use the same IQN
+ on the same host will fail the duplicate source pool checks.
+ </p>
<h3>Example pool input</h3>
<pre>
<name>virtimages</name>
<source>
<host name="iscsi.example.com"/>
- <device path="demo-target"/>
+ <device path="iqn.2013-06.com.example:iscsi-pool"/>
</source>
<target>
<path>/dev/disk/by-path</path>