<div dir="ltr">the vdsm.log :<div><div>Thread-3817::DEBUG::2013-08-27 13:38:30,980::persistentDict::234::Storage.PersistentDict::(refresh) read lines (FileMetadataRW)=[&#39;CLASS=Data&#39;, &#39;DESCRIPTION=GlusterDomain&#39;, &#39;IOOPTIMEOUTSEC=10&#39;, &#39;LEASERETRIES=3&#39;, &#39;LEASETIMESEC=60&#39;, &#39;LOCKPOLICY=&#39;, &#39;LOCKRENEWALINTERVALSEC=5&#39;, &#39;POOL_UUID=&#39;, &#39;REMOTE_PATH=172.28.26.102:vm-storage&#39;, &#39;ROLE=Regular&#39;, &#39;SDUUID=9a8554b5-c514-4e46-91cc-b0490a977d55&#39;, &#39;TYPE=GLUSTERFS&#39;, &#39;VERSION=3&#39;, &#39;_SHA_CKSUM=7329f71f34ccd201c574c9e06dd9d5c07084d17f&#39;]</div>
<div>Thread-3817::WARNING::2013-08-27 13:38:30,981::fileUtils::167::Storage.fileUtils::(createdir) Dir /rhev/data-center/e8f568cf-e9db-4cf1-b812-1e4b8ae530cc already exists</div><div>Thread-3817::DEBUG::2013-08-27 13:38:30,981::persistentDict::167::Storage.PersistentDict::(transaction) Starting transaction</div>
<div>Thread-3817::DEBUG::2013-08-27 13:38:30,981::persistentDict::175::Storage.PersistentDict::(transaction) Finished transaction</div><div>Thread-3817::INFO::2013-08-27 13:38:30,981::clusterlock::174::SANLock::(acquireHostId) Acquiring host id for domain 9a8554b5-c514-4e46-91cc-b0490a977d55 (id: 250)</div>
<div>Thread-3817::ERROR::2013-08-27 13:38:31,982::task::850::TaskManager.Task::(_setError) Task=`e2ec1d1f-c94d-46bd-8db3-ef83fed0fd79`::Unexpected error</div><div>Traceback (most recent call last):</div><div>  File &quot;/usr/share/vdsm/storage/task.py&quot;, line 857, in _run</div>
<div>    return fn(*args, **kargs)</div><div>  File &quot;/usr/share/vdsm/logUtils.py&quot;, line 45, in wrapper</div><div>    res = f(*args, **kwargs)</div><div>  File &quot;/usr/share/vdsm/storage/hsm.py&quot;, line 960, in createStoragePool</div>
<div>    masterVersion, leaseParams)</div><div>  File &quot;/usr/share/vdsm/storage/sp.py&quot;, line 617, in create</div><div>    self._acquireTemporaryClusterLock(msdUUID, leaseParams)</div><div>  File &quot;/usr/share/vdsm/storage/sp.py&quot;, line 559, in _acquireTemporaryClusterLock</div>
<div>    msd.acquireHostId(<a href="http://self.id">self.id</a>)</div><div>  File &quot;/usr/share/vdsm/storage/sd.py&quot;, line 458, in acquireHostId</div><div>    self._clusterLock.acquireHostId(hostId, async)</div><div>
  File &quot;/usr/share/vdsm/storage/clusterlock.py&quot;, line 189, in acquireHostId</div><div>    raise se.AcquireHostIdFailure(self._sdUUID, e)</div><div>AcquireHostIdFailure: Cannot acquire host id: (&#39;9a8554b5-c514-4e46-91cc-b0490a977d55&#39;, SanlockException(22, &#39;Sanlock lockspace add failure&#39;, &#39;Invalid argument&#39;))</div>
<div>Thread-3817::DEBUG::2013-08-27 13:38:31,982::task::869::TaskManager.Task::(_run) Task=`e2ec1d1f-c94d-46bd-8db3-ef83fed0fd79`::Task._run: e2ec1d1f-c94d-46bd-8db3-ef83fed0fd79 (None, &#39;e8f568cf-e9db-4cf1-b812-1e4b8ae530cc&#39;, &#39;GlusterDataCenter&#39;, &#39;9a8554b5-c514-4e46-91cc-b0490a977d55&#39;, [&#39;9a8554b5-c514-4e46-91cc-b0490a977d55&#39;], 7, None, 5, 60, 10, 3) {} failed - stopping task</div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/27 higkoohk <span dir="ltr">&lt;<a href="mailto:higkoohk@gmail.com" target="_blank">higkoohk@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hello everyone!</div><div><br></div><div>I&#39;m init a glusterfs vm center , and now doing storage domain fail torage .</div><div><br></div><div>Still get &#39;Cannot acquire host id&#39;.</div><div><br>

</div>Env:<div><table cellspacing="0" cellpadding="0" style="padding-top:10px;width:1603px;font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><tbody><tr><td align="left" style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif;vertical-align:top">

<table style="display:block;padding-left:16px;padding-right:16px;line-height:18px"><tbody><tr><td align="left" style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif;vertical-align:top"><table style="display:block;padding-left:16px;padding-right:16px">

<tbody><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">OS Version:RHEL - 6 - 4.el6.centos.10</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<input type="text" readonly title="RHEL - 6 - 4.el6.centos.10" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">Kernel Version:2.6.32 - 358.14.2.el6.x86_64</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<input type="text" readonly title="2.6.32 - 358.14.2.el6.x86_64" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">KVM Version:0.12.1.2 - 2.355.el6</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<input type="text" readonly title="0.12.1.2 - 2.355.el6" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">LIBVIRT Version:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">libvirt-1.1.1-1.el6</span></td></tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<div style="white-space:nowrap;font-family:Arial,sans-serif">VDSM Version:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">vdsm-4.12.0-0.1.rc3.el6</span></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">SPICE Version:0.12.0 - 12.el6</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<input type="text" readonly title="0.12.0 - 12.el6" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"></td>
</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">iSCSI Initiator Name:iqn.1994-05.com.redhat:9ea82ec11b83</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<input type="text" readonly title="iqn.1994-05.com.redhat:9ea82ec11b83" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"></td>

</tr></tbody></table></td><td align="left" style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif;vertical-align:top"><table style="display:block;padding-left:16px;padding-right:16px"><colgroup><col style="min-width:100px"><col style="min-width:100px;width:0px"></colgroup><tbody><tr>

<td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">SPM Priority:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<input type="text" readonly title="Medium" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:343px"></td></tr>
<tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">Active VMs:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">0</span></td></tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<div style="white-space:nowrap;font-family:Arial,sans-serif">CPU Name:Intel SandyBridge Family</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><input type="text" readonly title="Intel SandyBridge Family" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:343px"></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">CPU Type:Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<input type="text" readonly title="Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:343px"></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">CPU Sockets:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">1</span></td></tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<div style="white-space:nowrap;font-family:Arial,sans-serif">CPU Cores per Socket:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">6</span></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">CPU Threads per Core:2 (SMT Enabled)</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<input type="text" readonly title="2 (SMT Enabled)" style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:343px"></td>
</tr></tbody></table></td><td align="left" style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif;vertical-align:top"><table style="display:block;padding-left:16px;padding-right:16px"><colgroup><col style="min-width:100px"><col style="min-width:100px;width:0px"></colgroup><tbody><tr>

<td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">Physical Memory:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">24135 MB total, 965 MB used, 23170 MB free</span></td></tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<div style="white-space:nowrap;font-family:Arial,sans-serif">Swap Size:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">23999 MB total, 0 MB used, 23999 MB free</span></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">Shared Memory:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">0%</span></td></tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<div style="white-space:nowrap;font-family:Arial,sans-serif">Max free Memory for scheduling new VMs:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">23749 MB</span></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><div style="white-space:nowrap;font-family:Arial,sans-serif">Memory Page Sharing:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">Inactive</span></td></tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif">

<div style="white-space:nowrap;font-family:Arial,sans-serif">Automatic Large Pages:</div></td><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"><span style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">Always</span></td>

</tr><tr><td style="font-family:&#39;Arial Unicode MS&#39;,Arial,sans-serif"> </td></tr></tbody></table></td></tr></tbody></table><br></td></tr></tbody></table><div><br></div><div>The error message is : </div><div>
<br></div><div><div>2013-08-27 12:13:25,814 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStoragePoolVDSCommand] (pool-6-thread-50) Failed in CreateStoragePoolVDS method</div><div>2013-08-27 12:13:25,815 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStoragePoolVDSCommand] (pool-6-thread-50) Error code AcquireHostIdFailure and error message VDSGenericException: VDSErrorException: Failed to CreateStoragePoolVDS, error = Cannot acquire host id: (&#39;9a8554b5-c514-4e46-91cc-b0490a977d55&#39;, SanlockException(22, &#39;Sanlock lockspace add failure&#39;, &#39;Invalid argument&#39;))</div>

<div>2013-08-27 12:13:25,817 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStoragePoolVDSCommand] (pool-6-thread-50) Command CreateStoragePoolVDS execution failed. Exception: VDSErrorException: VDSGenericException: VDSErrorException: Failed to CreateStoragePoolVDS, error = Cannot acquire host id: (&#39;9a8554b5-c514-4e46-91cc-b0490a977d55&#39;, SanlockException(22, &#39;Sanlock lockspace add failure&#39;, &#39;Invalid argument&#39;))</div>

<div>2013-08-27 12:13:25,819 ERROR [org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand] (pool-6-thread-50) Command org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to CreateStoragePoolVDS, error = Cannot acquire host id: (&#39;9a8554b5-c514-4e46-91cc-b0490a977d55&#39;, SanlockException(22, &#39;Sanlock lockspace add failure&#39;, &#39;Invalid argument&#39;)) (Failed with VDSM error AcquireHostIdFailure and code 661)</div>

</div></div><div><br></div><div>What can i do now ? many thanks</div></div>
</blockquote></div><br></div>