<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-indent:21.0pt;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
.MsoChpDefault
        {mso-style-type:export-only;}
 /* Page Definitions */
 @page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
 /* List Definitions */
 @list l0
        {mso-list-id:421605921;
        mso-list-type:hybrid;
        mso-list-template-ids:1555591408 410680900 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:18.0pt;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%2\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:42.0pt;
        text-indent:-21.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>

<div class=WordSection1>

<p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>I’d already setup nexenta in a independent
server and nova-volume run on another server with nexenta driver configured in
nova.conf to provide volume service to the openstack system.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>I can use command or dashboard to create
volume well and nexenta also have create relative zol,but question is I always
could not attach the volume to the instance,here is the environment and questions
I met:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoListParagraph style='margin-left:18.0pt;text-indent:-18.0pt;
mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>      
</span></span></span><![endif]><span lang=EN-US>The output of “iscsiadm –m
session” that compute node show(volume-00000001 is created by command and
was in the list of nexenta ZVOL list)<o:p></o:p></span></p>

<p class=MsoNormal align=left style='margin-left:21.0pt;mso-para-margin-left:
2.0gd;text-align:left'><span class=apple-style-span><span lang=EN-US
style='color:#333333'>root@nc01:/home/romi# iscsiadm -m session<o:p></o:p></span></span></p>

<p class=MsoNormal align=left style='margin-left:21.0pt;mso-para-margin-left:
2.0gd;text-align:left'><span class=apple-style-span><span lang=EN-US
style='color:#333333'>tcp: [21] 192.168.1.42:3260,1
iqn.1986-03.com.sun:01:005008c802ff.4fb2f97dvolume-00000001<o:p></o:p></span></span></p>

<p class=MsoNormal align=left style='margin-left:21.0pt;mso-para-margin-left:
2.0gd;text-align:left'><span class=apple-style-span><span lang=EN-US
style='color:#333333'>tcp: [5] 192.168.1.42:3260,2
iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d<o:p></o:p></span></span></p>

<p class=MsoListParagraph style='margin-left:18.0pt;text-indent:-18.0pt;
mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>      
</span></span></span><![endif]><span lang=EN-US>When I use command to attach
the volume to the instance, nova-volume service gave the log error is:<o:p></o:p></span></p>

<p class=MsoNormal align=left style='margin-left:21.0pt;text-align:left'><span
class=apple-style-span><span lang=EN-US style='color:#333333'>Command: sudo
iscsiadm -m node -T "iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d"volume-00000001
-p 192.168.1.42:3260 --rescan<o:p></o:p></span></span></p>

<p class=MsoNormal align=left style='margin-left:21.0pt;text-align:left'><span
class=apple-style-span><span lang=EN-US style='color:#333333'>2012-06-26
18:00:37 TRACE nova.rpc.amqp Stderr: 'iscsiadm: No portal found.\n'</span></span><span
lang=EN-US style='color:#333333'><o:p></o:p></span></p>

<p class=MsoListParagraph style='margin-left:18.0pt;text-indent:-18.0pt;
mso-list:l0 level1 lfo1'><![if !supportLists]><span class=apple-style-span><span
lang=EN-US><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>      
</span></span></span></span><![endif]><span lang=EN-US>I try to run “i</span><span
class=apple-style-span><span lang=EN-US style='color:#333333'>csiadm -m node -T
"iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d"volume-00000001 -p
192.168.1.42:3260 –rescan” manually in compute node, the output is
well:</span><span lang=EN-US><o:p></o:p></span></span></p>

<p class=MsoNormal align=left style='margin-left:21.0pt;mso-para-margin-left:
2.0gd;text-align:left'><span class=apple-style-span><span lang=EN-US
style='color:#333333'>Rescanning session [sid: 21, target:
iqn.1986-03.com.sun:01:005008c802ff.4fb2f97dvolume-00000001, portal:
192.168.1.42,3260]<o:p></o:p></span></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>So, I could not know what is wrong or is
there special setting needed in nexenta server?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Appreciate if someone could help.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Romi<o:p></o:p></span></p>

</div>

</body>

</html>