<div dir="ltr">Hi ,<div style><br></div><div style><br></div><div style>For attaching iSCSI  disk I have tried like this </div><div style><br></div><div style><b><u>iscsi target side :</u></b></div><div style><br></div><div style>
<b>         1 created an iqn number</b></div><div style>            #tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2009-06.com.eucalyptus.cluster1:store1<b> </b></div><div style><b><br></b></div><div style><b>        2. added one lun to it</b></div>
<div style>            #tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /fs.iscsi.disk<br></div><div style><br></div><div style><b>        3.<span style="color:rgb(17,17,17);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:14px;line-height:21.984375px">To enable the target to accept any initiators, enter:</span></b></div>
<div style>            #tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL<br></div><div style>       <b> 4.<span style="color:rgb(17,17,17);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:14px;line-height:21.984375px">To view the current configuration, enter:</span></b></div>
<div style><span style="color:rgb(17,17,17);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:14px;line-height:21.984375px">           #</span><span style="background-color:rgb(238,238,238);color:rgb(17,17,17);font-family:Consolas,'Andale Mono',Monaco,Courier,'Courier New',Verdana,sans-serif;font-size:12px;line-height:17.984375px">tgtadm --lld iscsi --op show --mode target</span></div>
<div style><font color="#111111" face="Consolas, Andale Mono, Monaco, Courier, Courier New, Verdana, sans-serif"><span style="font-size:12px;line-height:17.984375px"><b>iscsi initaitor side (where libvirt and xen is running)</b></span></font></div>
<div style><font color="#111111" face="Consolas, Andale Mono, Monaco, Courier, Courier New, Verdana, sans-serif"><span style="font-size:12px;line-height:17.984375px"><b><br></b></span></font></div><div style><font color="#111111" face="Consolas, Andale Mono, Monaco, Courier, Courier New, Verdana, sans-serif"><span style="font-size:12px;line-height:17.984375px"><b>     1. to</b></span></font><span style="line-height:24px;text-align:justify"><b> scan for the newly created target</b></span></div>
<div style><span style="line-height:24px;text-align:justify"><b>            #</b></span><span style="line-height:24px;text-align:justify">iscsiadm -m discovery -t sendtargets -p 192.168.53.14</span></div><div style><span style="line-height:24px;text-align:justify">        <b> 2. created pool file </b></span></div>
<div style><span style="line-height:24px;text-align:justify"><b>    </b>         </span><span style="line-height:24px"><pool type="iscsi"></span></div><div style="text-align:justify"><span style="line-height:24px">                 <name>sample3</name></span></div>
<div style="text-align:justify"><span style="line-height:24px">                 <source></span></div><div style="text-align:justify"><span style="line-height:24px">                       <host name="192.168.53.14"/></span></div>
<div style="text-align:justify"><span style="line-height:24px">                      <device </span><span style="line-height:24px">path="iqn.2009-06.com.eucalyptus.cluster1:store1"/></span></div><div style="text-align:justify">
<span style="line-height:24px">                 </source></span></div><div style="text-align:justify"><span style="line-height:24px">                 <target></span></div><div style="text-align:justify"><span style="line-height:24px">                      <path>/dev/disk/by-path</path></span></div>
<div style="text-align:justify"><span style="line-height:24px">                 </target></span></div><div style="text-align:justify"><span style="line-height:24px">             </pool></span></div><div style="text-align:justify">
<span style="line-height:24px">         <b> 3.</b>#virsh pool-define sample_pool.xml </span></div><div style="text-align:justify"><span style="line-height:24px">            #virsh pool-start sample3</span></div><div style="text-align:justify">
<span style="line-height:24px">            then it created one link like this </span><span style="line-height:24px">at <b>/dev/disk/by-path/</b></span></div><div style="text-align:justify"><span style="line-height:24px">             <b>ip-192.168.53.14:3260-iscsi-iqn.2009-06.com.eucalyptus.cluster1:store1-lun-1 -> ../../sdb</b></span></div>
<div style="text-align:justify">          4. I have attached using virsh attach-disk</div><div style="text-align:justify">              #virsh attach-disk 1 /dev/sdb xvdb</div><div style="text-align:justify">It is attached successfully , I console in vm I have checked .</div>
<div style="text-align:justify"><br></div><div style="text-align:justify">But while using with eucalyptus,It is not attching.</div><div style="text-align:justify"> </div><div><div style>I'm using eucalyptus 3.4.2 , libvirt 1.2.3 with xen4.3.1  to attach volume to vm .</div>
<div style><br></div><div style>eucalyptus attaching volume is done through iscsi disk , intermediate files are created while attaching  volume in xml format as below.</div><div style><b>File 1:</b></div><div style><div>                         <?xml version="1.0" encoding="UTF-8"?></div>
<div>                               <disk type="block"></div><div>                                <driver cache="none" name="phy"/></div><div>                               <source dev="/dev/disk/by-id/scsi-1IET_00230001"/></div>
<div>                               <target dev="sdf" bus="scsi"/></div><div>                               <serial>vol-759A3CDB-dev-sdf</serial></div><div>                              </disk></div>
<div><br></div></div><div style><b>File 2:</b></div><div style><br></div><div style>                             <?xml version="1.0" encoding="UTF-8"?></div><div>                             <volume></div>
<div>                             <hypervisor type="xen" capability="xen+hw" bitness="64"/></div><div>                             <id>vol-759A3CDB</id></div><div>                              <user>AIDOMCCNSP7YNR7IEZEUX</user></div>
<div>                              <instancePath>/usr/local/eucalyptus/work/AIDOMCCNSP7YNR7IEZEUX/i-ED153F84</instancePath></div><div>                             <os platform="linux" virtioRoot="false" virtioDisk="false" virtioNetwork="false"/></div>
<div>                             <backing></div><div>                              <root type="image"/></div><div>                             </backing></div><div>                             <diskPath targetDeviceType="disk" targetDeviceName="sdf" targetDeviceBus="scsi" sourceType="block" serial="vol-759A3CDB-dev-sdf">/dev/disk/by-id/scsi-1IET_00230001</diskPath></div>
<div></volume></div><div><br></div><div><br></div><div style><b>in libvirtd.log i'm getting</b></div><div style><br></div><div style><b style="font-family:arial,sans-serif;font-size:13px">error : libxlDomainAttachDeviceDiskLive:2567 : unsupported configuration: disk bus 'scsi' cannot be hotplugged.</b><br>
</div><div style><b style="font-family:arial,sans-serif;font-size:13px"><br></b></div><div style><font face="arial, sans-serif">Can u suggest how to enable or patch to scsi hotplug from libvirt which support for xen.</font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">Can u say the meaning of PATCH 11/12 what is 11/12 means.</font></div><div style><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">eg ; [libvirt] [PATCH 11/12] Properly support SCSI drive hotplug</span><font face="arial, sans-serif"><br>
</font></div><div style><b style="font-family:arial,sans-serif;font-size:13px"><br></b></div><div style>With Regards</div><div style>Prapulla Kumar R</div><div style><br></div><div style><br></div><div style><br></div><div style>
<br></div><div style><br></div><div style><br></div></div></div>