Re: [Linux-HA] Heartbeat interfaces questions

2010-09-22 Thread Henrique Fernandes
Oh, i think i got it now!

I guess i was setting the wrong name for the constraint, in the atrribute i
was seeting the pingdresourcename, but it has to be only pingd right ?

At least is working now.

[]'sf.rique


On Wed, Sep 22, 2010 at 4:24 PM, Henrique Fernandes wrote:

> Look, i am not getting it to work.
>
> I already made a pingd conective clone in all nodes. But now i can not get
> an location to work.
>
> Can you help me ?
>
> I set an constraint > location > Conectivity and this has resource, my
> loadbalancer group resources, The score is - infinity and the atribute is my
> pingd clone with operator less than value. And my pingd need both
> conectivity working so the score is same as value.
>
> any help ?
>
>
>
> []'sf.rique
>
>
> On Wed, Sep 22, 2010 at 11:49 AM, Henrique Fernandes 
> wrote:
>
>> Here where i work, we try to use the distro release package, and the on
>> centos is this version. =/
>>
>> But thanks, i am gonna ready it now.
>>
>> []'sf.rique
>>
>>
>> On Wed, Sep 22, 2010 at 11:47 AM, Dejan Muhamedagic 
>> wrote:
>>
>>> Hi,
>>>
>>> On Wed, Sep 22, 2010 at 11:39:18AM -0300, Henrique Fernandes wrote:
>>> > Ok, thanks,
>>> >
>>> > I am using heartbeat 2.1.3 on a CentOS release 5.5 (Final)
>>>
>>> Oh, please upgrade as soon as you can, version 2.1.3 is quite old
>>> and you won't get much support for it. Pacemaker is what used to
>>> be heartbeat v2. There's an upgrade documentation at
>>> http://www.linux-ha.org/doc/
>>>
>>> > And i using crm respaw, i guess it uses peacemaker. crm_mon and etc.
>>>
>>> Yes.
>>>
>>> > So, i guess you are saying that is possible to do what i want, using
>>> > constraint.
>>> >
>>> > Can you give me a litle more information about suject ? Maybe some
>>> where i
>>> > can find man and stuff ?
>>> >
>>> > I will try add this But i am not quite sure what you said.
>>> >
>>> > So i have to add an location containind my resource ? How do i make
>>> this
>>> > Count ? i am not to familiared with peacemaker.
>>>
>>> Hmm, not sure if it's really a peacemaker ;->
>>>
>>> There's documentation for a Pacemaker release which corresponds
>>> to Heartbeat v2.1.x
>>>
>>> http://www.clusterlabs.org/mwiki/images/7/7d/Configuration_Explained_0.6.pdf
>>>
>>> But please consider upgrading.
>>>
>>> Thanks,
>>>
>>> Dejan
>>>
>>> >
>>> > Thanks.
>>> >
>>> >
>>> >
>>> > []'sf.rique
>>> >
>>> >
>>> > On Wed, Sep 22, 2010 at 11:17 AM, Dejan Muhamedagic <
>>> deja...@fastmail.fm>wrote:
>>> >
>>> > > Hi,
>>> > >
>>> > > On Wed, Sep 22, 2010 at 12:37:50AM -0300, Henrique Fernandes wrote:
>>> > > > When i set heartbeat to do bcast in some interface, it does ok.
>>> > > >
>>> > > > But if i set to do bcast in 2 interfaces, it does ok also, the
>>> problem
>>> > > is, i
>>> > > > want the heartbeat give up resoucers if it looses just one
>>> interface...
>>> > > it
>>> > > > does not do this, it just issue an info saying that the other link
>>> is
>>> > > down.
>>> > > >
>>> > > > Does any one can help me ?
>>> > > >
>>> > > > So just to be clear, i want to heartbeat check on 2 diferents
>>> interfaces
>>> > > > eth0 and eth1, and if it loses connections in one of the
>>> interfaces, it
>>> > > give
>>> > > > up resources or shutdown etc..
>>> > > >
>>> > > > As i am doing now it doe snothing, and i can get it to do.
>>> > > >
>>> > > >
>>> > > > I am trying to make three ldiretord in HA, but it receves
>>> connections
>>> > > from
>>> > > > internet on eth0 and redirect them in eth1 ( intranet )
>>> > > > The point is, if any interface goes down, my service does not work.
>>> So i
>>> > > > need it to give up resources.
>>> > > >
>>> > > > Sorry about my english!
>>> > >
>>> > > NP, you make yourself perfectly understandable.
>>> > >
>>> > > The point of having more than one interface is exactly that
>>> > > heartbeat can continue. It has nothing to do with resources.
>>> > >
>>> > > If you're using pacemaker (not sure how would it work with
>>> > > heartbeat v1), you can use a ping RA and specify two hosts
>>> > > independently reachable over the two interfaces and make a
>>> > > location constraint which would move a resource if the count of
>>> > > reachable hosts is less than 2.
>>> > >
>>> > > Thanks,
>>> > >
>>> > > Dejan
>>> > >
>>> > > > Thankss!!
>>> > > >
>>> > > >
>>> > > > []'sf.rique
>>> > > > ___
>>> > > > Linux-HA mailing list
>>> > > > Linux-HA@lists.linux-ha.org
>>> > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>> > > > See also: http://linux-ha.org/ReportingProblems
>>> > > ___
>>> > > Linux-HA mailing list
>>> > > Linux-HA@lists.linux-ha.org
>>> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>> > > See also: http://linux-ha.org/ReportingProblems
>>> > >
>>> > ___
>>> > Linux-HA mailing list
>>> > Linux-HA@lists.linux-ha.org
>>> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>> > See also: http://linux-ha.

Re: [Linux-HA] Heartbeat interfaces questions

2010-09-22 Thread Henrique Fernandes
Look, i am not getting it to work.

I already made a pingd conective clone in all nodes. But now i can not get
an location to work.

Can you help me ?

I set an constraint > location > Conectivity and this has resource, my
loadbalancer group resources, The score is - infinity and the atribute is my
pingd clone with operator less than value. And my pingd need both
conectivity working so the score is same as value.

any help ?



[]'sf.rique


On Wed, Sep 22, 2010 at 11:49 AM, Henrique Fernandes wrote:

> Here where i work, we try to use the distro release package, and the on
> centos is this version. =/
>
> But thanks, i am gonna ready it now.
>
> []'sf.rique
>
>
> On Wed, Sep 22, 2010 at 11:47 AM, Dejan Muhamedagic 
> wrote:
>
>> Hi,
>>
>> On Wed, Sep 22, 2010 at 11:39:18AM -0300, Henrique Fernandes wrote:
>> > Ok, thanks,
>> >
>> > I am using heartbeat 2.1.3 on a CentOS release 5.5 (Final)
>>
>> Oh, please upgrade as soon as you can, version 2.1.3 is quite old
>> and you won't get much support for it. Pacemaker is what used to
>> be heartbeat v2. There's an upgrade documentation at
>> http://www.linux-ha.org/doc/
>>
>> > And i using crm respaw, i guess it uses peacemaker. crm_mon and etc.
>>
>> Yes.
>>
>> > So, i guess you are saying that is possible to do what i want, using
>> > constraint.
>> >
>> > Can you give me a litle more information about suject ? Maybe some where
>> i
>> > can find man and stuff ?
>> >
>> > I will try add this But i am not quite sure what you said.
>> >
>> > So i have to add an location containind my resource ? How do i make this
>> > Count ? i am not to familiared with peacemaker.
>>
>> Hmm, not sure if it's really a peacemaker ;->
>>
>> There's documentation for a Pacemaker release which corresponds
>> to Heartbeat v2.1.x
>>
>> http://www.clusterlabs.org/mwiki/images/7/7d/Configuration_Explained_0.6.pdf
>>
>> But please consider upgrading.
>>
>> Thanks,
>>
>> Dejan
>>
>> >
>> > Thanks.
>> >
>> >
>> >
>> > []'sf.rique
>> >
>> >
>> > On Wed, Sep 22, 2010 at 11:17 AM, Dejan Muhamedagic <
>> deja...@fastmail.fm>wrote:
>> >
>> > > Hi,
>> > >
>> > > On Wed, Sep 22, 2010 at 12:37:50AM -0300, Henrique Fernandes wrote:
>> > > > When i set heartbeat to do bcast in some interface, it does ok.
>> > > >
>> > > > But if i set to do bcast in 2 interfaces, it does ok also, the
>> problem
>> > > is, i
>> > > > want the heartbeat give up resoucers if it looses just one
>> interface...
>> > > it
>> > > > does not do this, it just issue an info saying that the other link
>> is
>> > > down.
>> > > >
>> > > > Does any one can help me ?
>> > > >
>> > > > So just to be clear, i want to heartbeat check on 2 diferents
>> interfaces
>> > > > eth0 and eth1, and if it loses connections in one of the interfaces,
>> it
>> > > give
>> > > > up resources or shutdown etc..
>> > > >
>> > > > As i am doing now it doe snothing, and i can get it to do.
>> > > >
>> > > >
>> > > > I am trying to make three ldiretord in HA, but it receves
>> connections
>> > > from
>> > > > internet on eth0 and redirect them in eth1 ( intranet )
>> > > > The point is, if any interface goes down, my service does not work.
>> So i
>> > > > need it to give up resources.
>> > > >
>> > > > Sorry about my english!
>> > >
>> > > NP, you make yourself perfectly understandable.
>> > >
>> > > The point of having more than one interface is exactly that
>> > > heartbeat can continue. It has nothing to do with resources.
>> > >
>> > > If you're using pacemaker (not sure how would it work with
>> > > heartbeat v1), you can use a ping RA and specify two hosts
>> > > independently reachable over the two interfaces and make a
>> > > location constraint which would move a resource if the count of
>> > > reachable hosts is less than 2.
>> > >
>> > > Thanks,
>> > >
>> > > Dejan
>> > >
>> > > > Thankss!!
>> > > >
>> > > >
>> > > > []'sf.rique
>> > > > ___
>> > > > Linux-HA mailing list
>> > > > Linux-HA@lists.linux-ha.org
>> > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> > > > See also: http://linux-ha.org/ReportingProblems
>> > > ___
>> > > Linux-HA mailing list
>> > > Linux-HA@lists.linux-ha.org
>> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> > > See also: http://linux-ha.org/ReportingProblems
>> > >
>> > ___
>> > Linux-HA mailing list
>> > Linux-HA@lists.linux-ha.org
>> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> > See also: http://linux-ha.org/ReportingProblems
>> ___
>> Linux-HA mailing list
>> Linux-HA@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>>
>
>
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Interesting scenario, is there a solution?

2010-09-22 Thread Dimitri Maziuk
On 9/21/2010 10:06 AM, Steve Davies wrote:

> - Kill the master (A).
> - The slave (B) is coming up
> - Some transient issue prevents the RC scripts running on (B).
> - (B) backs down and requests to become slave again
> - (A) is down, so (B) never gets confirmation of its slave request.
>
> Nothing more happens. A is down and B is sulking!
>
> Can a node be persuaded to retry under these circumstances?

Generally, no: there is no way to know how "transient" the "issue" is. 
E.g. if a backhoe ate your uplink fiber and telco techies will fix the 
cut "in a day or two" -- do you want the other node retrying for a day? 
Or two? Or a week?

> Perhaps there is a way to identify this odd intermediate state so we
> can force a heartbeat restart or reinitialise?

What I have is a separate nagios setup that monitors cluster IP and 
services and sends me nastygrams if they disappear.

Dima
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Heartbeat interfaces questions

2010-09-22 Thread Henrique Fernandes
Here where i work, we try to use the distro release package, and the on
centos is this version. =/

But thanks, i am gonna ready it now.

[]'sf.rique


On Wed, Sep 22, 2010 at 11:47 AM, Dejan Muhamedagic wrote:

> Hi,
>
> On Wed, Sep 22, 2010 at 11:39:18AM -0300, Henrique Fernandes wrote:
> > Ok, thanks,
> >
> > I am using heartbeat 2.1.3 on a CentOS release 5.5 (Final)
>
> Oh, please upgrade as soon as you can, version 2.1.3 is quite old
> and you won't get much support for it. Pacemaker is what used to
> be heartbeat v2. There's an upgrade documentation at
> http://www.linux-ha.org/doc/
>
> > And i using crm respaw, i guess it uses peacemaker. crm_mon and etc.
>
> Yes.
>
> > So, i guess you are saying that is possible to do what i want, using
> > constraint.
> >
> > Can you give me a litle more information about suject ? Maybe some where
> i
> > can find man and stuff ?
> >
> > I will try add this But i am not quite sure what you said.
> >
> > So i have to add an location containind my resource ? How do i make this
> > Count ? i am not to familiared with peacemaker.
>
> Hmm, not sure if it's really a peacemaker ;->
>
> There's documentation for a Pacemaker release which corresponds
> to Heartbeat v2.1.x
>
> http://www.clusterlabs.org/mwiki/images/7/7d/Configuration_Explained_0.6.pdf
>
> But please consider upgrading.
>
> Thanks,
>
> Dejan
>
> >
> > Thanks.
> >
> >
> >
> > []'sf.rique
> >
> >
> > On Wed, Sep 22, 2010 at 11:17 AM, Dejan Muhamedagic  >wrote:
> >
> > > Hi,
> > >
> > > On Wed, Sep 22, 2010 at 12:37:50AM -0300, Henrique Fernandes wrote:
> > > > When i set heartbeat to do bcast in some interface, it does ok.
> > > >
> > > > But if i set to do bcast in 2 interfaces, it does ok also, the
> problem
> > > is, i
> > > > want the heartbeat give up resoucers if it looses just one
> interface...
> > > it
> > > > does not do this, it just issue an info saying that the other link is
> > > down.
> > > >
> > > > Does any one can help me ?
> > > >
> > > > So just to be clear, i want to heartbeat check on 2 diferents
> interfaces
> > > > eth0 and eth1, and if it loses connections in one of the interfaces,
> it
> > > give
> > > > up resources or shutdown etc..
> > > >
> > > > As i am doing now it doe snothing, and i can get it to do.
> > > >
> > > >
> > > > I am trying to make three ldiretord in HA, but it receves connections
> > > from
> > > > internet on eth0 and redirect them in eth1 ( intranet )
> > > > The point is, if any interface goes down, my service does not work.
> So i
> > > > need it to give up resources.
> > > >
> > > > Sorry about my english!
> > >
> > > NP, you make yourself perfectly understandable.
> > >
> > > The point of having more than one interface is exactly that
> > > heartbeat can continue. It has nothing to do with resources.
> > >
> > > If you're using pacemaker (not sure how would it work with
> > > heartbeat v1), you can use a ping RA and specify two hosts
> > > independently reachable over the two interfaces and make a
> > > location constraint which would move a resource if the count of
> > > reachable hosts is less than 2.
> > >
> > > Thanks,
> > >
> > > Dejan
> > >
> > > > Thankss!!
> > > >
> > > >
> > > > []'sf.rique
> > > > ___
> > > > Linux-HA mailing list
> > > > Linux-HA@lists.linux-ha.org
> > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > > > See also: http://linux-ha.org/ReportingProblems
> > > ___
> > > Linux-HA mailing list
> > > Linux-HA@lists.linux-ha.org
> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > > See also: http://linux-ha.org/ReportingProblems
> > >
> > ___
> > Linux-HA mailing list
> > Linux-HA@lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Heartbeat interfaces questions

2010-09-22 Thread Dejan Muhamedagic
Hi,

On Wed, Sep 22, 2010 at 11:39:18AM -0300, Henrique Fernandes wrote:
> Ok, thanks,
> 
> I am using heartbeat 2.1.3 on a CentOS release 5.5 (Final)

Oh, please upgrade as soon as you can, version 2.1.3 is quite old
and you won't get much support for it. Pacemaker is what used to
be heartbeat v2. There's an upgrade documentation at
http://www.linux-ha.org/doc/

> And i using crm respaw, i guess it uses peacemaker. crm_mon and etc.

Yes.

> So, i guess you are saying that is possible to do what i want, using
> constraint.
> 
> Can you give me a litle more information about suject ? Maybe some where i
> can find man and stuff ?
> 
> I will try add this But i am not quite sure what you said.
> 
> So i have to add an location containind my resource ? How do i make this
> Count ? i am not to familiared with peacemaker.

Hmm, not sure if it's really a peacemaker ;->

There's documentation for a Pacemaker release which corresponds
to Heartbeat v2.1.x
http://www.clusterlabs.org/mwiki/images/7/7d/Configuration_Explained_0.6.pdf

But please consider upgrading.

Thanks,

Dejan

> 
> Thanks.
> 
> 
> 
> []'sf.rique
> 
> 
> On Wed, Sep 22, 2010 at 11:17 AM, Dejan Muhamedagic 
> wrote:
> 
> > Hi,
> >
> > On Wed, Sep 22, 2010 at 12:37:50AM -0300, Henrique Fernandes wrote:
> > > When i set heartbeat to do bcast in some interface, it does ok.
> > >
> > > But if i set to do bcast in 2 interfaces, it does ok also, the problem
> > is, i
> > > want the heartbeat give up resoucers if it looses just one interface...
> > it
> > > does not do this, it just issue an info saying that the other link is
> > down.
> > >
> > > Does any one can help me ?
> > >
> > > So just to be clear, i want to heartbeat check on 2 diferents interfaces
> > > eth0 and eth1, and if it loses connections in one of the interfaces, it
> > give
> > > up resources or shutdown etc..
> > >
> > > As i am doing now it doe snothing, and i can get it to do.
> > >
> > >
> > > I am trying to make three ldiretord in HA, but it receves connections
> > from
> > > internet on eth0 and redirect them in eth1 ( intranet )
> > > The point is, if any interface goes down, my service does not work. So i
> > > need it to give up resources.
> > >
> > > Sorry about my english!
> >
> > NP, you make yourself perfectly understandable.
> >
> > The point of having more than one interface is exactly that
> > heartbeat can continue. It has nothing to do with resources.
> >
> > If you're using pacemaker (not sure how would it work with
> > heartbeat v1), you can use a ping RA and specify two hosts
> > independently reachable over the two interfaces and make a
> > location constraint which would move a resource if the count of
> > reachable hosts is less than 2.
> >
> > Thanks,
> >
> > Dejan
> >
> > > Thankss!!
> > >
> > >
> > > []'sf.rique
> > > ___
> > > Linux-HA mailing list
> > > Linux-HA@lists.linux-ha.org
> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > > See also: http://linux-ha.org/ReportingProblems
> > ___
> > Linux-HA mailing list
> > Linux-HA@lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Heartbeat interfaces questions

2010-09-22 Thread Henrique Fernandes
Ok, thanks,

I am using heartbeat 2.1.3 on a CentOS release 5.5 (Final)

And i using crm respaw, i guess it uses peacemaker. crm_mon and etc.

So, i guess you are saying that is possible to do what i want, using
constraint.

Can you give me a litle more information about suject ? Maybe some where i
can find man and stuff ?

I will try add this But i am not quite sure what you said.

So i have to add an location containind my resource ? How do i make this
Count ? i am not to familiared with peacemaker.


Thanks.



[]'sf.rique


On Wed, Sep 22, 2010 at 11:17 AM, Dejan Muhamedagic wrote:

> Hi,
>
> On Wed, Sep 22, 2010 at 12:37:50AM -0300, Henrique Fernandes wrote:
> > When i set heartbeat to do bcast in some interface, it does ok.
> >
> > But if i set to do bcast in 2 interfaces, it does ok also, the problem
> is, i
> > want the heartbeat give up resoucers if it looses just one interface...
> it
> > does not do this, it just issue an info saying that the other link is
> down.
> >
> > Does any one can help me ?
> >
> > So just to be clear, i want to heartbeat check on 2 diferents interfaces
> > eth0 and eth1, and if it loses connections in one of the interfaces, it
> give
> > up resources or shutdown etc..
> >
> > As i am doing now it doe snothing, and i can get it to do.
> >
> >
> > I am trying to make three ldiretord in HA, but it receves connections
> from
> > internet on eth0 and redirect them in eth1 ( intranet )
> > The point is, if any interface goes down, my service does not work. So i
> > need it to give up resources.
> >
> > Sorry about my english!
>
> NP, you make yourself perfectly understandable.
>
> The point of having more than one interface is exactly that
> heartbeat can continue. It has nothing to do with resources.
>
> If you're using pacemaker (not sure how would it work with
> heartbeat v1), you can use a ping RA and specify two hosts
> independently reachable over the two interfaces and make a
> location constraint which would move a resource if the count of
> reachable hosts is less than 2.
>
> Thanks,
>
> Dejan
>
> > Thankss!!
> >
> >
> > []'sf.rique
> > ___
> > Linux-HA mailing list
> > Linux-HA@lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Heartbeat interfaces questions

2010-09-22 Thread Dejan Muhamedagic
Hi,

On Wed, Sep 22, 2010 at 12:37:50AM -0300, Henrique Fernandes wrote:
> When i set heartbeat to do bcast in some interface, it does ok.
> 
> But if i set to do bcast in 2 interfaces, it does ok also, the problem is, i
> want the heartbeat give up resoucers if it looses just one interface... it
> does not do this, it just issue an info saying that the other link is down.
> 
> Does any one can help me ?
> 
> So just to be clear, i want to heartbeat check on 2 diferents interfaces
> eth0 and eth1, and if it loses connections in one of the interfaces, it give
> up resources or shutdown etc..
> 
> As i am doing now it doe snothing, and i can get it to do.
> 
> 
> I am trying to make three ldiretord in HA, but it receves connections from
> internet on eth0 and redirect them in eth1 ( intranet )
> The point is, if any interface goes down, my service does not work. So i
> need it to give up resources.
> 
> Sorry about my english!

NP, you make yourself perfectly understandable.

The point of having more than one interface is exactly that
heartbeat can continue. It has nothing to do with resources.

If you're using pacemaker (not sure how would it work with
heartbeat v1), you can use a ping RA and specify two hosts
independently reachable over the two interfaces and make a
location constraint which would move a resource if the count of
reachable hosts is less than 2.

Thanks,

Dejan

> Thankss!!
> 
> 
> []'sf.rique
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Heartbeat/Pacemaker Italian article series complete!

2010-09-22 Thread RaSca
Il giorno Mer 22 Set 2010 13:44:07 CET, Dejan Muhamedagic ha scritto:
[...]
> Didn't understand a thing, but looks great :)

LOL!

> Just one note, it caught my attention, a node preference is
> usually expressed in non-absolute terms and using a shorter
> syntax:
> location cli-prefer-share-a share-a 100: ubuntu-nodo1
> Cheers,
> Dejan

I just used that declaration (location cli-prefer-share-a share-a rule 
inf: #uname eq ubuntu-nodo1) to reflect the rule that Pacemaker adds 
when you migrate a resource. This because in the second test I mention it.
Anyway, I will keep in mind this short declaration, it will be surely 
useful.

Thanks a lot Dejan!

-- 
RaSca
Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
ra...@miamammausalinux.org
http://www.miamammausalinux.org
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Heartbeat/Pacemaker Italian article series complete!

2010-09-22 Thread Dejan Muhamedagic
Hi,

On Tue, Sep 21, 2010 at 09:04:37AM +0200, RaSca wrote:
> Hi all guys,
> Yesterday I've finally finished and published the last article of the 
> Heartbeat/Pacemaker series. These are the links to the articles:
> 
> http://www.miamammausalinux.org/2010/04/evoluzione-dellalta-affidabilita-su-linux-come-orientarsi-fra-hertbeat-pacemaker-openais-e-corosync/
> 
> http://www.miamammausalinux.org/2010/06/evoluzione-dellalta-affidabilita-su-linux-confronto-pratico-tra-heartbeat-classico-ed-heartbeat-con-pacemaker/
> 
> http://www.miamammausalinux.org/2010/09/evoluzione-dellalta-affidabilita-su-linux-realizzare-un-nas-con-pacemaker-drbd-ed-exportfs/
> 
> All the three articles are written in Italian, but I hope you will enjoy 
> anyway.

Didn't understand a thing, but looks great :)

Just one note, it caught my attention, a node preference is
usually expressed in non-absolute terms and using a shorter
syntax:

location cli-prefer-share-a share-a 100: ubuntu-nodo1

Cheers,

Dejan

> Keep up the good work! And thanks again for the help you give me anytime.
> 
> -- 
> RaSca
> Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
> ra...@miamammausalinux.org
> http://www.miamammausalinux.org
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] how do I cut down the amount of logging?

2010-09-22 Thread Dejan Muhamedagic
Hi Bernd,

On Fri, Sep 17, 2010 at 05:20:18PM +0200, Bernd Schubert wrote:
> Hello Dejan,
> 
> On Wednesday, September 15, 2010, Dejan Muhamedagic wrote:
> > Hi,
> > 
> > On Sat, Aug 28, 2010 at 04:21:31AM +0200, Tomasz Chmielewski wrote:
> > > Can I restrict logging to WARN and ERROR only?
> > > 
> > > I have an enormous flood of "info" messages running through my syslog
> > > (for lrmd, crmd, attrd etc.) - is there a way to disable it and get only
> > > WARN and ERROR reported?
> > 
> > syslog-ng should be able to filter out messages based on
> > severity. But I'd recommend against it. It'd be hard to support
> > the cluster without complete logs.
> 
> I see that as real problem as well. All those HA/pacemaker messages make it 
> difficult to see other, non pacemaker/heartbeat/cluster-glue, failures in the 
> logs. Most of those messages are IMHO also entirely useless for the admin, 
> but 
> seem to pacemaker debug messages.

I also don't like mixing the pacemaker logs with system logs.
What's wrong with using a facility such as local7 for the HA
logs? Otherwise, yes, I understand your pain.

> Now as you know, the good news it that I send list of patches this week to 
> address at least the logging :)
> 
> One of the patches allows to disable logd syslog logging at all. Logs go 
> anyway to ha-log and ha-debug. And another patch makes filtering more easy, 
> so 
> it adds the common logd identifier to all syslog messages. That allows to 
> greatly simplify syslog-ng rules. For example for DDN Lustre system I wrote a 
> rule that writes a file "ha-log.useful". That file has mostly output from 
> resource agents only (which other usually well hidden between all those 
> pacemaker debug lines).

Did you check the load of syslog-ng in this case?

Cheers,

Dejan

> Cheers,
> Bernd
> 
> -- 
> Bernd Schubert
> DataDirect Networks
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] About OCFS2 and Pacemaker

2010-09-22 Thread Andrew Beekhof
On Wed, Sep 22, 2010 at 10:24 AM, Alain.Moulle  wrote:
> Hi again,
>
> I've have a look in the external/sdb device, it seems to be useful
> only if we don't use a "by network" fencing solution , so as I'm
> using fence_ipmilan, perhaps this shared device is not useful
> in my case , right ?

Correct
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] About OCFS2 and Pacemaker

2010-09-22 Thread Alain.Moulle
Hi again,

I've have a look in the external/sdb device, it seems to be useful
only if we don't use a "by network" fencing solution , so as I'm
using fence_ipmilan, perhaps this shared device is not useful
in my case , right ?

Regards
ALain
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Configuration question

2010-09-22 Thread Andrew Beekhof
On Tue, Sep 21, 2010 at 1:42 PM, Alain.Moulle  wrote:
> Hi,
>
> Suppose I have two stonith primitives configured on my two-nodes cluster,
> restofencenode0 and restofencenode1 with :
> location +INF for restofencenode0 on node1
> location -INF for restofencenode0 on node0
> location +INF for restofencenode1 on node0
> location -INF for restofencenode1 on node1
>
> And suppose I have two clone primitives : clone1 clone2
>
> I would like the restofence primitives to be started
> before both clone1 & clone2
>
> For example, when I start Pacemaker on node0 only , I would
> like that the restofencenode1 is started before clone1 & clone2
>
> I can't make a crm configure order like this :
>
> crm configure order order1-restofence mandatory: restofencenode1 clone1
> clone2

s/mandatory/optional/ perhaps?

this means that if both are starting, then the clones will start after
the fencing does.
though i'm pretty sure that happens normally anyway

>
> because, if Pacemaker is not started on node0 , then the restofencenode1
> is also not started
> as it can be started only on node0, and then the clone1 & clone2 will
> not be started on node1 neither
> as it has to wait for restofencenode1 Started.
>
> Is there a way to configure such a configuration ?
>
> Thanks
> Alain
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] About OCFS2 and Pacemaker

2010-09-22 Thread Andrew Beekhof
On Wed, Sep 22, 2010 at 9:49 AM, Alain.Moulle  wrote:
> Hi Andrew,
>
> sorry to come again on this subject, I was about to switch to OCFS2 in
> Pacemaker but :
>
> For configuration , I'm using the documentation "Oracle Cluster File
> System 2",
> I think it is always correct/valid ?
>
> It seems that o2cb/dlm need an external/sdb (with /dev/sdb2 partition)
> "for heatbeating and fencing".

Not strictly true.  Some sort of fencing is required, but to my
knowledge it doesn't have to be SFEX.
lmb: can you comment?

>
> The primitive to use (sdb_stonith) is configured with
> "stonith:external/sbd".
>
> But I'm on rhel6, and all stonith functionnalities have been removed by
> RH, justified that
> RH delivers similar fencing agents .
> (remember : we already have discuss about fence_ipmilan problems
> and you gave me a workaround to make it working with Pacemaker
> (pcmk_host_check=none) )
>
> So there is no stonith:external/sbd script available, even no more
> /usr/sbin/stonith binary delivered on RHEL6.

Correct, on RHEL6 we only have the fencing devices used by the rest of RHCS.
Management didn't like the idea of maintaining two overlapping sets.

> So do I reach a dead-end for OCFS2 under Pacemaker on RHEL6 ?

On RHEL6 you're probably better off with GFS2 - at least that way
you're likely to have a supported configuration eventually.
But as to your specific problem, you could either use one of the RH
fencing agents or re-build cluster-glue to include SFEX.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] About OCFS2 and Pacemaker

2010-09-22 Thread Alain.Moulle
Hi Andrew,

sorry to come again on this subject, I was about to switch to OCFS2 in 
Pacemaker but :

For configuration , I'm using the documentation "Oracle Cluster File 
System 2",
I think it is always correct/valid ?

It seems that o2cb/dlm need an external/sdb (with /dev/sdb2 partition) 
"for heatbeating and fencing".

The primitive to use (sdb_stonith) is configured with 
"stonith:external/sbd".

But I'm on rhel6, and all stonith functionnalities have been removed by 
RH, justified that
RH delivers similar fencing agents .
(remember : we already have discuss about fence_ipmilan problems
and you gave me a workaround to make it working with Pacemaker 
(pcmk_host_check=none) )

So there is no stonith:external/sbd script available, even no more 
/usr/sbin/stonith binary delivered on RHEL6.

So do I reach a dead-end for OCFS2 under Pacemaker on RHEL6 ?

Or do you think there is a workaround ?

Thanks for your precious help.
Regards
Alain
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems