<div dir="ltr">Hi Haim,<div><br></div><div style>Is there a way to fix the SPM contending issue.</div><div style><br></div><div style>Thanks,</div><div style>Jithin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jan 15, 2013 at 6:03 PM, Jithin Raju <span dir="ltr">&lt;<a href="mailto:rajujith@gmail.com" target="_blank">rajujith@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Haim,<div><br></div><div>I am using posixfs(gluster). I just created one volume with one brick on each server (distribute).</div><div>This volume is attached as data domain.</div><div><br>
</div><div>Results after executing the given commands in host 1:</div><div><div>[root@fig /]# vdsClient -s 0 getConnectedStoragePoolsList</div><div>a8c8bb22-5f04-11e2-986d-525400927148</div><div><br></div><div>
<div>[root@fig /]# vdsClient -s 0 getStoragePoolInfo `vdsClient -s 0 getConnectedStoragePoolsList`</div><div>        name = dc</div><div>        isoprefix =</div><div>        pool_status = connected</div><div>        lver = 58</div>

<div>        domains = 1dc4f865-f151-4016-b8f3-3dcc0eca93a3:Active</div><div>        master_uuid = 1dc4f865-f151-4016-b8f3-3dcc0eca93a3</div><div>        version = 0</div><div>        spm_id = 1</div><div>        type = SHAREDFS</div>

<div>        master_ver = 1</div><div>        1dc4f865-f151-4016-b8f3-3dcc0eca93a3 = {&#39;status&#39;: &#39;Active&#39;, &#39;diskfree&#39;: &#39;982727000064&#39;, &#39;alerts&#39;: [], &#39;disktotal&#39;: &#39;1035756371968&#39;}</div>

</div><div><br></div><div>host 2:</div><div><div>[root@blueberry /]# vdsClient -s 0 getConnectedStoragePoolsList</div><div>a8c8bb22-5f04-11e2-986d-525400927148</div><div><br></div><div><div>[root@blueberry /]# vdsClient -s 0 getStoragePoolInfo `vdsClient -s 0 getConnectedStoragePoolsList`</div>

<div>        name = dc</div><div>        isoprefix =</div><div>        pool_status = connected</div><div>        lver = 61</div><div>        domains = 1dc4f865-f151-4016-b8f3-3dcc0eca93a3:Active</div><div>        master_uuid = 1dc4f865-f151-4016-b8f3-3dcc0eca93a3</div>

<div>        version = 0</div><div>        spm_id = 2</div><div>        type = SHAREDFS</div><div>        master_ver = 1</div><div>        1dc4f865-f151-4016-b8f3-3dcc0eca93a3 = {&#39;status&#39;: &#39;Active&#39;, &#39;diskfree&#39;: &#39;982726868992&#39;, &#39;alerts&#39;: [], &#39;disktotal&#39;: &#39;1035756371968&#39;}</div>

</div><div><br></div><div>Thanks,</div><div>Jithin</div><div><br></div></div><div><br></div><div><br></div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jan 15, 2013 at 5:47 PM, Haim Ateya <span dir="ltr">&lt;<a href="mailto:hateya@redhat.com" target="_blank">hateya@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">what type of storage are you using? is it posix btw? can you please issues the following command on both hosts:<br>
<br>
vdsClient -s 0 getConnectedStoragePoolsList<br>
vdsClient -s 0 getStoragePoolInfo `vdsClient -s 0 getConnectedStoragePoolsList`<br>
<div><div><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Jithin Raju&quot; &lt;<a href="mailto:rajujith@gmail.com" target="_blank">rajujith@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a><br>
&gt; Sent: Tuesday, January 15, 2013 12:22:50 PM<br>
&gt; Subject: [Users] spm keeps on shifting between nodes continously<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt; I have 2 nodes of ovirt 3.1+ gluster. When i am trying to activate<br>
&gt; the Data center its changing to up then contend then back up<br>
&gt; continuously.<br>
&gt;<br>
&gt;<br>
&gt; Same way along with the above SPM status is shifting between the two<br>
&gt; nodes continously.<br>
&gt;<br>
&gt;<br>
&gt; With one node its working fine.<br>
&gt;<br>
&gt;<br>
&gt; Somebody has reported this before I remember, but do not remember the<br>
&gt; fix.<br>
&gt;<br>
&gt;<br>
&gt; engine log:<br>
&gt;<br>
&gt; 2013-01-15 15:50:41,762 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11] START,<br>
&gt; HSMGetAllTasksInfoVDSCommand(vdsId =<br>
&gt; 7caf739e-5ef7-11e2-aa89-525400927148), log id: 59dae374<br>
&gt; 2013-01-15 15:50:41,791 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11] FINISH,<br>
&gt; HSMGetAllTasksInfoVDSCommand, return: [], log id: 59dae374<br>
&gt; 2013-01-15 15:50:41,793 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11] FINISH,<br>
&gt; SPMGetAllTasksInfoVDSCommand, return: [], log id: 77055e85<br>
&gt; 2013-01-15 15:50:41,795 INFO<br>
&gt; [org.ovirt.engine.core.bll.AsyncTaskManager]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11]<br>
&gt; AsyncTaskManager::AddStoragePoolExistingTasks: Discovered no tasks<br>
&gt; on Storage Pool DC<br>
&gt; 2013-01-15 15:50:41,796 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11] START,<br>
&gt; SPMGetAllTasksInfoVDSCommand(storagePoolId =<br>
&gt; 1a995d7c-5ef3-11e2-a8c4-525400927148, ignoreFailoverLimit = false,<br>
&gt; compatabilityVersion = null), log id: 318b02c2<br>
&gt; 2013-01-15 15:50:41,798 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11] --<br>
&gt; SPMGetAllTasksInfoVDSCommand::ExecuteIrsBrokerCommand: Attempting on<br>
&gt; storage pool 1a995d7c-5ef3-11e2-a8c4-525400927148<br>
&gt; 2013-01-15 15:50:41,800 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11] START,<br>
&gt; HSMGetAllTasksInfoVDSCommand(vdsId =<br>
&gt; 7caf739e-5ef7-11e2-aa89-525400927148), log id: 22d29c5b<br>
&gt; 2013-01-15 15:50:41,832 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11] FINISH,<br>
&gt; HSMGetAllTasksInfoVDSCommand, return: [], log id: 22d29c5b<br>
&gt; 2013-01-15 15:50:41,836 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11] FINISH,<br>
&gt; SPMGetAllTasksInfoVDSCommand, return: [], log id: 318b02c2<br>
&gt; 2013-01-15 15:50:41,841 INFO<br>
&gt; [org.ovirt.engine.core.bll.AsyncTaskManager]<br>
&gt; (QuartzScheduler_Worker-66) [16c01e11]<br>
&gt; AsyncTaskManager::AddStoragePoolExistingTasks: Discovered no tasks<br>
&gt; on Storage Pool DC<br>
&gt; 2013-01-15 15:50:51,830 ERROR<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.GetStoragePoolInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-44)<br>
&gt; irsBroker::BuildStorageDynamicFromXmlRpcStruct::Failed building<br>
&gt; Storage dynamic, xmlRpcStruct =<br>
&gt; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct@7fdd2faf<br>
&gt; 2013-01-15 15:50:51,832 ERROR<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.GetStoragePoolInfoVDSCommand]<br>
&gt; (QuartzScheduler_Worker-44)<br>
&gt; org.ovirt.engine.core.vdsbroker.irsbroker.IRSErrorException:<br>
&gt; IRSErrorException:<br>
&gt; 2013-01-15 15:50:51,833 ERROR<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]<br>
&gt; (QuartzScheduler_Worker-44) IrsBroker::Failed::GetStoragePoolInfoVDS<br>
&gt; due to: IRSErrorException: IRSErrorException:<br>
&gt; 2013-01-15 15:50:51,865 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStopVDSCommand]<br>
&gt; (QuartzScheduler_Worker-44) START, SpmStopVDSCommand(vdsId =<br>
&gt; 7caf739e-5ef7-11e2-aa89-525400927148, storagePoolId =<br>
&gt; 1a995d7c-5ef3-11e2-a8c4-525400927148), log id: 6c7ade5e<br>
&gt; 2013-01-15 15:50:51,899 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStopVDSCommand]<br>
&gt; (QuartzScheduler_Worker-44) SpmStopVDSCommand::Stopping SPM on vds<br>
&gt; blueberry, pool id 1a995d7c-5ef3-11e2-a8c4-525400927148<br>
&gt; 2013-01-15 15:50:53,032 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStopVDSCommand]<br>
&gt; (QuartzScheduler_Worker-44) FINISH, SpmStopVDSCommand, log id:<br>
&gt; 6c7ade5e<br>
&gt; 2013-01-15 15:50:53,036 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]<br>
&gt; (QuartzScheduler_Worker-44) Irs placed on server null failed.<br>
&gt; Proceed Failover<br>
&gt; 2013-01-15 15:50:53,046 INFO<br>
&gt; [org.ovirt.engine.core.bll.storage.SetStoragePoolStatusCommand]<br>
&gt; (QuartzScheduler_Worker-44) [3f11e766] Running command:<br>
&gt; SetStoragePoolStatusCommand internal: true. Entities affected : ID:<br>
&gt; 1a995d7c-5ef3-11e2-a8c4-525400927148 Type: StoragePool<br>
&gt; 2013-01-15 15:50:53,091 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]<br>
&gt; (QuartzScheduler_Worker-44) [3f11e766] hostFromVds::selectedVds -<br>
&gt; fig, spmStatus Free, storage pool DC<br>
&gt; 2013-01-15 15:50:53,097 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]<br>
&gt; (QuartzScheduler_Worker-44) [3f11e766] starting spm on vds fig,<br>
&gt; storage pool DC, prevId -1, LVER 27<br>
&gt; 2013-01-15 15:50:53,103 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]<br>
&gt; (QuartzScheduler_Worker-44) [3f11e766] START,<br>
&gt; SpmStartVDSCommand(vdsId = d199e4dc-5ef4-11e2-a538-525400927148,<br>
&gt; storagePoolId = 1a995d7c-5ef3-11e2-a8c4-525400927148, prevId=-1,<br>
&gt; prevLVER=27, storagePoolFormatType=V1, recoveryMode=Manual,<br>
&gt; SCSIFencing=false), log id: 64385c4b<br>
&gt; 2013-01-15 15:50:53,144 INFO<br>
&gt; [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]<br>
&gt; (QuartzScheduler_Worker-44) [3f11e766] spmStart polling started:<br>
&gt; taskId = 373b6b46-d79b-45a5-a534-3a18d38ac65e<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Jithin<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>