From zyjzyj2000 at gmail.com Fri Mar 1 04:55:06 2013 From: zyjzyj2000 at gmail.com (zhuyj) Date: Fri, 01 Mar 2013 12:55:06 +0800 Subject: [Linux-cluster] [openais]timer_attributes.type is missing Message-ID: <513034AA.5010902@gmail.xom> Hi, If req_lib_tmr_timerreschedule->timer_attributes.type is SA_TIME_ABSOLUTE, an absolute time value must be higher than the current absolute time.According to the type, we will compare the current time with an absolute time. If the type is SA_TIME_ABSOLUTE, we will compare. Or else, we do nothing; diff -urpN a/services/tmr.c b/services/tmr.c --- a/services/tmr.c +++ b/services/tmr.c @@ -442,7 +442,8 @@ static void message_handler_req_lib_tmr_ current_time = (SaTimeT)(api->timer_time_get()); - if (current_time > req_lib_tmr_timerreschedule->timer_attributes.initialExpirationTime) { + if ((SA_TIME_ABSOLUTE == req_lib_tmr_timerreschedule->timer_attributes.type) && + (current_time > req_lib_tmr_timerreschedule->timer_attributes.initialExpirationTime)) { error = SA_AIS_ERR_INVALID_PARAM; goto error_put; } diff -urpN a/test/testtmr.c b/test/testtmr.c --- a/test/testtmr.c +++ b/test/testtmr.c @@ -86,8 +86,8 @@ int main (void) SaTmrHandleT handle; SaSelectionObjectT select_obj; SaTmrTimerAttributesT attrs; - SaTmrTimerAttributesT attrs_a = { SA_TIME_DURATION, TMR_30_SECONDS, 0 }; - SaTmrTimerAttributesT attrs_b = { SA_TIME_DURATION, TMR_30_SECONDS, 0 }; + SaTmrTimerAttributesT attrs_a = { SA_TIME_DURATION, TMR_30_SECONDS, TMR_30_SECONDS }; + SaTmrTimerAttributesT attrs_b = { SA_TIME_DURATION, TMR_30_SECONDS, TMR_30_SECONDS }; SaTmrTimerAttributesT new_attrs_a = { SA_TIME_DURATION, TMR_10_SECONDS, TMR_10_SECONDS }; SaTmrTimerAttributesT new_attrs_b = { SA_TIME_DURATION, TMR_20_SECONDS, TMR_20_SECONDS }; SaTmrTimerIdT id_a; From zyjzyj2000 at gmail.com Fri Mar 1 04:56:56 2013 From: zyjzyj2000 at gmail.com (zhuyj) Date: Fri, 01 Mar 2013 12:56:56 +0800 Subject: [Linux-cluster] [openais]timer_attributes.type is missing In-Reply-To: <513034AA.5010902@gmail.xom> References: <513034AA.5010902@gmail.xom> Message-ID: <51303518.5010105@gmail.xom> On 03/01/2013 12:55 PM, zhuyj wrote: > Hi, > > If req_lib_tmr_timerreschedule->timer_attributes.type is > SA_TIME_ABSOLUTE, an absolute time value must be higher > than the current absolute time.According to the type, we > will compare the current time with an absolute time. If > the type is SA_TIME_ABSOLUTE, we will compare. Or else, > we do nothing; > > diff -urpN a/services/tmr.c b/services/tmr.c > --- a/services/tmr.c > +++ b/services/tmr.c > @@ -442,7 +442,8 @@ static void message_handler_req_lib_tmr_ > > current_time = (SaTimeT)(api->timer_time_get()); > > - if (current_time > > req_lib_tmr_timerreschedule->timer_attributes.initialExpirationTime) { > + if ((SA_TIME_ABSOLUTE == > req_lib_tmr_timerreschedule->timer_attributes.type) && > + (current_time > > req_lib_tmr_timerreschedule->timer_attributes.initialExpirationTime)) { > error = SA_AIS_ERR_INVALID_PARAM; > goto error_put; > } > diff -urpN a/test/testtmr.c b/test/testtmr.c > --- a/test/testtmr.c > +++ b/test/testtmr.c > @@ -86,8 +86,8 @@ int main (void) > SaTmrHandleT handle; > SaSelectionObjectT select_obj; > SaTmrTimerAttributesT attrs; > - SaTmrTimerAttributesT attrs_a = { SA_TIME_DURATION, > TMR_30_SECONDS, 0 }; > - SaTmrTimerAttributesT attrs_b = { SA_TIME_DURATION, > TMR_30_SECONDS, 0 }; > + SaTmrTimerAttributesT attrs_a = { SA_TIME_DURATION, > TMR_30_SECONDS, TMR_30_SECONDS }; > + SaTmrTimerAttributesT attrs_b = { SA_TIME_DURATION, > TMR_30_SECONDS, TMR_30_SECONDS }; SaTmrTimerAttributesT attrs_b = { SA_TIME_DURATION, TMR_30_SECONDS, 0 }; Maybe it is better. > SaTmrTimerAttributesT new_attrs_a = { SA_TIME_DURATION, > TMR_10_SECONDS, TMR_10_SECONDS }; > SaTmrTimerAttributesT new_attrs_b = { SA_TIME_DURATION, > TMR_20_SECONDS, TMR_20_SECONDS }; > SaTmrTimerIdT id_a; > From DJCapstick1 at uclan.ac.uk Sun Mar 3 17:13:44 2013 From: DJCapstick1 at uclan.ac.uk (David John Capstick) Date: Sun, 3 Mar 2013 17:13:44 +0000 Subject: [Linux-cluster] LDAP as a service Message-ID: Hi, If you do decide to use the existing resource type for an openldap how is replication between nodes handled ? Many Thanks David -------------- next part -------------- An HTML attachment was scrubbed... URL: From queszama at yahoo.in Wed Mar 6 06:57:26 2013 From: queszama at yahoo.in (Zama Ques) Date: Wed, 6 Mar 2013 14:57:26 +0800 (SGT) Subject: [Linux-cluster] Adding a Node back to cluster failing Message-ID: <1362553046.6133.YahooMailNeo@web193502.mail.sg3.yahoo.com> Hi All, We are using a two node cluster using centOS 5.5 on HP Proliant Servers . One of the our servers in the cluster failed and is not booting up . There was a hardware issue on the server , so we removed the node from the cluster and also removed it from fencing domain. Now our cluster service is now running on a single node cluster . After resolving the hardware issue , we are now trying to add back? the node to the cluster using the luci interface but it is failing with the following? error "Host already member of cluster? testcluster" whereas the host information is not available in cluster config file.? # grep host2 /etc/cluster/cluster.conf Restart of cman on the node is showing the following error ==== # service cman restart Stopping cluster: ?? Stopping fencing... done ?? Stopping cman... done ?? Stopping ccsd... done ?? Unmounting configfs... done ?????????????????????????????????????????????????????????? [? OK? ] Starting cluster: ?? Loading modules... done ?? Mounting configfs... done ?? Starting ccsd... done ?? Starting cman... failed cman not started: Can't find local node name in cluster.conf /usr/sbin/cman_tool: aisexec daemon didn't start ?????????????????????????????????????????????????????????? [FAILED] -------------- # tail -f /var/log/messages Jul 29 00:04:16 host2 ccsd[2793]:? Local version # : 31 Jul 29 00:04:16 host2 ccsd[2793]:? Remote version #: 31 Jul 29 00:04:16 host2 openais[2799]: [MAIN ] AIS Executive Service RELEASE 'subrev 1887 version 0.80.6' Jul 29 00:04:16 host2 openais[2799]: [MAIN ] AIS Executive Service: started and ready to provide service. Jul 29 00:04:16 host2 openais[2799]: [MAIN ] local node name "host2.example.com" not found in cluster.conf Jul 29 00:04:16 host2 openais[2799]: [MAIN ] Error reading CCS info, cannot start Jul 29 00:04:16 host2 openais[2799]: [MAIN ] Error reading config from CCS Jul 29 00:04:16 host2 openais[2799]: [MAIN ] AIS Executive exiting (reason: could not read the main configuration file). ======= Please suggest how to add the failed node back to the cluster ? Thanks in Advance Zaman -------------- next part -------------- An HTML attachment was scrubbed... URL: From emi2fast at gmail.com Wed Mar 6 08:09:30 2013 From: emi2fast at gmail.com (emmanuel segura) Date: Wed, 6 Mar 2013 09:09:30 +0100 Subject: [Linux-cluster] Adding a Node back to cluster failing In-Reply-To: <1362553046.6133.YahooMailNeo@web193502.mail.sg3.yahoo.com> References: <1362553046.6133.YahooMailNeo@web193502.mail.sg3.yahoo.com> Message-ID: Hello Zama Where is your cluster config? Thanks 2013/3/6 Zama Ques > Hi All, > > We are using a two node cluster using centOS 5.5 on HP Proliant Servers . > One of the our servers in the cluster failed and is not booting up . There > was a hardware issue on the server , so we removed the node from the > cluster and also removed it from fencing domain. > > Now our cluster service is now running on a single node cluster . After > resolving the hardware issue , we are now trying to add back the node to > the cluster using the luci interface but it is failing with the following > error > > "Host already member of cluster testcluster" > > whereas the host information is not available in cluster config file. > > # grep host2 /etc/cluster/cluster.conf > > Restart of cman on the node is showing the following error > > ==== > # service cman restart > Stopping cluster: > Stopping fencing... done > Stopping cman... done > Stopping ccsd... done > Unmounting configfs... done > [ OK ] > Starting cluster: > Loading modules... done > Mounting configfs... done > Starting ccsd... done > Starting cman... failed > cman not started: Can't find local node name in cluster.conf > /usr/sbin/cman_tool: aisexec daemon didn't start > [FAILED] > -------------- > > # tail -f /var/log/messages > Jul 29 00:04:16 host2 ccsd[2793]: Local version # : 31 > Jul 29 00:04:16 host2 ccsd[2793]: Remote version #: 31 > Jul 29 00:04:16 host2 openais[2799]: [MAIN ] AIS Executive Service RELEASE > 'subrev 1887 version 0.80.6' > Jul 29 00:04:16 host2 openais[2799]: [MAIN ] AIS Executive Service: > started and ready to provide service. > Jul 29 00:04:16 host2 openais[2799]: [MAIN ] local node name " > host2.example.com" not found in cluster.conf > Jul 29 00:04:16 host2 openais[2799]: [MAIN ] Error reading CCS info, > cannot start > Jul 29 00:04:16 host2 openais[2799]: [MAIN ] Error reading config from CCS > Jul 29 00:04:16 host2 openais[2799]: [MAIN ] AIS Executive exiting > (reason: could not read the main configuration file). > ======= > > Please suggest how to add the failed node back to the cluster ? > > Thanks in Advance > Zaman > > > -- > Linux-cluster mailing list > Linux-cluster at redhat.com > https://www.redhat.com/mailman/listinfo/linux-cluster > -- esta es mi vida e me la vivo hasta que dios quiera -------------- next part -------------- An HTML attachment was scrubbed... URL: From queszama at yahoo.in Wed Mar 6 09:37:56 2013 From: queszama at yahoo.in (Zama Ques) Date: Wed, 6 Mar 2013 17:37:56 +0800 (SGT) Subject: [Linux-cluster] Adding a Node back to cluster failing In-Reply-To: References: <1362553046.6133.YahooMailNeo@web193502.mail.sg3.yahoo.com> Message-ID: <1362562676.38124.YahooMailNeo@web193501.mail.sg3.yahoo.com> Thanks emmanuel. Please find the cluster config file. ===== ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???