<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 09/19/2014 04:01 AM, Yu Xin Huo
wrote:<br>
</div>
<blockquote cite="mid:541BD4DC.8050502@linux.vnet.ibm.com"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">I tried it again today and found
below:<br>
<br>
1. I can create 2 templates with the same volume of iSCSI
storage pool.<br>
2. I can create 2 guests with the same template configured
against a volume of iSCSI storage pool.<br>
<br>
I think both the design and implementation have problems<br>
<br>
1. For template, as it need to be used to create multiple
guests, resources there must be collection like network/storage
pool, should not be a volume.<br>
2. As volume need to support both read/write, we need to avoid 2
guests use the same volume as boot disk.<br>
<br>
Recommended design:<br>
<br>
1. In template, when edit, only list storage pool, remove iscsi
pool volumes there.<br>
2. When create guest, once user selected the template, if it is
iscsi, add a section with a dropdown list for user to select
volume, for volume already in use, filter them out.<br>
<br>
</div>
</blockquote>
<br>
Only to make everyone aware:<br>
<br>
I think we continue using this approach (user selects pool and
volume on template) but while creating the VM we need to add the
disk as shareable. <br>
So all incoming VMs can make use of the same disk without problems<br>
<br>
<blockquote cite="mid:541BD4DC.8050502@linux.vnet.ibm.com"
type="cite">
<div class="moz-cite-prefix"> <br>
On 9/19/2014 10:48 AM, Aline Manera wrote:<br>
</div>
<blockquote cite="mid:541B9983.2000102@linux.vnet.ibm.com"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<br>
<div class="moz-cite-prefix">On 09/18/2014 08:07 AM, Yu Xin Huo
wrote:<br>
</div>
<blockquote cite="mid:541ABCF5.3080107@linux.vnet.ibm.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
I got a iSCSI target to work on my redhat with a USB disk to
test iSCSI storage pool and found below:<br>
<br>
1. When create a iSCSI storage pool, I selected a target in
dropdown list.<br>
2. Once the pool is created, I see a volume named
'unit:0:0:1'.<br>
3. When edit template, in the 'storage pool' dropdown,
'unit:0:0:1' is listed there.<br>
<br>
So 'unit:0:0:1' which indeed is a <b>volume</b> but listed as
a <b>pool</b> in template? or something I am
misunderstanding?<br>
</blockquote>
<br>
The "Storage pool" on Template represents where the guest disk
will be created.<br>
So if I specify "default" pool and size 10GB my guest will have
a 10GB disk created on the default pool (under
/var/lib/libvirt/images, for example)<br>
<br>
But it is not true for iSCSI and SCSI pools.<br>
We call the iSCSI and SCSI pools as read-only because we can not
create new files on it.<br>
The volumes are pre-configured by the system. Because that while
using those pools you also need to select the volume as are
represented by <pool_name>/<vol_name> in the combo
box.<br>
<br>
When a iSCSI or SCSI pool/volume is selected on Template the
user can not edit its size, as the volume already exists and has
a size.<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>