<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        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-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:284242792;
        mso-list-type:hybrid;
        mso-list-template-ids:1052426804 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I started to learn the oVirt by following the oVirt Quick Start Guide.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I used one server as the ovirt.engine, and another server as the ovirt.host. Both servers run Fedora 18.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">After executing the command &#8220;engine-setup&#8221; in the ovirt.engine, I can get into the admin portal to start the configuration of host, storage, etc. Here was what I am doing:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>In the Default data center, I clicked &nbsp;the Guide Me icon. The first thing is to configure the host. After waiting for 4-5 minutes, I saw the host ovirt.host is displayed under the Host tab with the Up status.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>On the ovirt.engine server, I did the following before creating the storage:<o:p></o:p></p>
<p class="MsoListParagraph">mkdir &#8211;p /mnt/data<o:p></o:p></p>
<p class="MsoListParagraph">chown &#8211;R 36:36 /mnt/data<o:p></o:p></p>
<p class="MsoListParagraph">Add the following line to /etc/sysconfig/nfs:<o:p></o:p></p>
<p class="MsoListParagraph">&nbsp;&nbsp;&nbsp; NFS4_SUPPORT=&#8221;no&#8221;<o:p></o:p></p>
<p class="MsoListParagraph">Add the following line to /etc/exports:<o:p></o:p></p>
<p class="MsoListParagraph">&nbsp; &nbsp;/nmt/data&nbsp; *(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)<o:p></o:p></p>
<p class="MsoListParagraph">systemctl restart nfs-server.service<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Back to the Default data center, clicked the Guide Me icon to start the configuration of new storage.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">4.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>On the New Storage dialog, set Name field to be NFS-Share, and set the Export Path field to be ovirt.engine:/mnt/data. Then click OK<o:p></o:p></p>
<p class="MsoListParagraph">After couple of minutes, I saw the error window popped up:
<span style="color:red">Error: Cannot add Storage. Internal error, Storage Connection doesn't exist.</span><o:p></o:p></p>
<p class="MsoListParagraph"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph">From the /var/log/ ovirt-engine/engine.log, I can see:<o:p></o:p></p>
<p class="MsoListParagraph">2013-07-10 11:37:51,300 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-1) [41c282da] FINISH, ConnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-000000000000=100},
 log id: 1bca7819<o:p></o:p></p>
<p class="MsoListParagraph">2013-07-10 11:37:51,303 <span style="color:red">ERROR</span> [org.ovirt.engine.core.bll.storage.NFSStorageHelper] (ajp--127.0.0.1-8702-1) [41c282da]
<span style="color:red">The connection with details 128.224.147.229:/mnt/data failed because of error code 100 and error message is: generalexception<o:p></o:p></span></p>
<p class="MsoListParagraph">2013-07-10 11:37:51,382 WARN&nbsp; [org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand] (ajp--127.0.0.1-8702-6) [2612bf14] CanDoAction of action AddNFSStorageDomain failed. Reasons:VAR__TYPE__STORAGE__DOMAIN,VAR__ACTION__ADD,ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST<o:p></o:p></p>
<p class="MsoListParagraph">2013-07-10 11:37:51,483 INFO&nbsp; [org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand] (ajp--127.0.0.1-8702-1) [2bd59836] Running command: RemoveStorageServerConnectionCommand internal: false. Entities affected :&nbsp;
 ID: aaa00000-0000-0000-0000-123456789aaa Type: System<o:p></o:p></p>
<p class="MsoListParagraph">2013-07-10 11:37:51,489 INFO&nbsp; [org.ovirt.engine.core.vdsbroker.vdsbroker.DisconnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-1) [2bd59836] START, DisconnectStorageServerVDSCommand(HostName = ovirt.node, HostId = 8e47a267-98a9-4184-a92e-26587adae6c4,
 storagePoolId = 00000000-0000-0000-0000-000000000000, storageType = NFS, connectionList = [{ id: null, connection: 128.224.147.229:/mnt/data, iqn: null, vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null };]), log id: 2f9800d
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Please let me know what I was doing wrong.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Hongyi<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">P.S. If I create the NFS domain in the ovirt.host side (i.e., Export Path is ovirt.host:/mnt/data), then everything is okay. Not sure why failed on the ovirt.engine side.<o:p></o:p></p>
</div>
</body>
</html>