Hello Francesco,<br><br>yes you can. The key is to use SOURCE=<your_iqn> in the image template instead of using PATH.<br><br>Keep in mind that you need to be careful with the oneimage delete action. If you do oneimage delete, this snippet of code will get called:<br>
<a href="https://github.com/OpenNebula/one/blob/release-3.4/src/datastore_mad/remotes/iscsi/rm">https://github.com/OpenNebula/one/blob/release-3.4/src/datastore_mad/remotes/iscsi/rm</a><br><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font face="'courier new', monospace">RM_COMMAND=$(cat <<EOF<br></font><font face="'courier new', monospace"> $SUDO $(tgtadm_target_delete "$TID")<br></font><font face="'courier new', monospace"> $SUDO $LVREMOVE -f $VG_NAME/$LV_NAME<br>
</font><font face="'courier new', monospace">EOF<br></font><font face="'courier new', monospace">)</font><font face="'courier new', monospace"><br></font><font face="'courier new', monospace">log "Removing $DST_HOST:$DEV from the image repository"</font><font face="'courier new', monospace"><br>
</font><font face="'courier new', monospace">ssh_exec_and_log "$DST_HOST" "$RM_COMMAND" \<br></font><font face="'courier new', monospace"> "Error removing $DST_HOST:$DEV"</font></blockquote>
Which would fail. I suggest you can either substitute the iscsi/rm file with an a simple 'exit 0' and manually delete the image. Or you could modify it to really remove your device, which would be the best approach.<div>
<br></div><div>Also, I think it would be wise to substitute iscsi/mkfs with 'exit 1' so it will always fail since it won't be supported either (this will be called when doing 'oneimage create' for a TYPE = DATABLOCK image). Or same as before you could modify the script to really create an empty datablock. The same applies for the iscsi/cp command ('oneimage create' when using PATH). You could also modify it to really create an equallogic device.</div>
<div><br></div><div>If you do adapt the iscsi drivers to really take action on equallogic devices, so you can create a new image, an empty datablock and delete images, please let us know so we can upload the code to the ecosystem. The files you need to modify are:</div>
<div><a href="https://github.com/OpenNebula/one/blob/release-3.4/src/datastore_mad/remotes/iscsi/rm">https://github.com/OpenNebula/one/blob/release-3.4/src/datastore_mad/remotes/iscsi/rm</a><br></div><div><a href="https://github.com/OpenNebula/one/blob/release-3.4/src/datastore_mad/remotes/iscsi/cp">https://github.com/OpenNebula/one/blob/release-3.4/src/datastore_mad/remotes/iscsi/cp</a></div>
<div><a href="https://github.com/OpenNebula/one/blob/release-3.4/src/datastore_mad/remotes/iscsi/mks">https://github.com/OpenNebula/one/blob/release-3.4/src/datastore_mad/remotes/iscsi/mks</a></div><div><br></div><div>If you need any extra help adapting the drivers we will be happy to help you out.</div>
<div><br></div><div>Cheers,</div><div>Jaime</div><div><br><br>On Thu, Apr 12, 2012 at 5:55 PM, Francesco Camisa <<a href="mailto:francesco.camisa@policlinicosanmarco.it">francesco.camisa@policlinicosanmarco.it</a>> wrote:<br>
> Hi,<br>><br>> I have installed 3.4. I have read the documentation regarding the iscsi datastore and I understand that it is tightly integrated with tgt. We don't use tgt but equallogic devices.<br>><br>
> I was wondering if it's possible to add a pre-existing target via sunstone or oneimage providing the target ip and the iqn.<br>
><br>> Thanks in advance<br>><br>> Francesco<br>><br>> Francesco Camisa<br>> Vice Direttore Generale<br>> Policlinico San Marco<br>> via Zanotto 40<br>> 30173 Mestre-VE<br>> Italy<br>><br>
> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>