Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

Re: [Openais] Need your help.

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


lmb at suse

Jan 28, 2009, 4:54 AM

Post #1 of 11 (927 views)
Permalink
Re: [Openais] Need your help.

On 2009-01-28T15:02:30, Priyanka Ranjan <priyanka3rdfeb [at] gmail> wrote:

> Hi all,
> i am new to openais and pacemaker. i am working on sles11 . i have three
> questions.

If you are working on SLE11, please use the pacemaker list only. These
questions have nothing to do with linux-ha nor openais. I have set the
reply-to accordingly.

(Besides, SLE11 isn't released, so that's all beta code right now.)

> 1) can any one tell me what resource agents are available . can i have a
> list of resource agents which openais supports like apache, oracle , tomcat
> etc.

openAIS doesn't support any resource agents, those come from other
packages. But in your installed system, simply look at
/usr/lib/ocf/resource.d/

This will also be documented in the Novell provided product docs, of
course.

> 2) does openais + pacemaker support SCSI Persisten Resrvation as one of
> resource/node fencing method. i could not find PR when i did stonith -L . do
> we need to write external stonith script if we want to use SCSI Persisten
> Resrvation.

There is a scsi_reservation resource agent, but it is not used for
node-level fencing; you can simply add it to the resource hierarchy as
required.

If you want to fence through shared storage, the external/sbd stonith
script might be want you want.

> 3) i want to create two nodes cluster. i have generated the autheky on one
> node and copied it to another node.. after starting openais service i got
> two separate clusters on two nodes. i have specified following in interface
> of openais.conf.
>
> interface {
> #Network Address to be bind for this interface setting
>
> bindnetaddr: 198.168.2.2 # this is node1's pvt addr. on
> node 2's openais.conf i have specified node2's ip address.

You can simply specify the network address, no need to specify the
explicit IP address here. (ie, likely 192.168.2.0).

And if you want to use OCFS2, you must specify an explicit nodeid: field
(1, 2, 3, 4, ... this needs to be unique on each node).

> can i directly modify cib xml file to add a node or should i use hb_gui . i
> am not able to form two nodes cluster, please help me.

You NEVER edit cib.xml manually. _Never_. Only through tools such as
hb_gui, the "crm" shell, cibadmin etc.

You don't need to add nodes to the configuration explicitly, they'll get
auto-added to the CIB as soon as openais forms a ring. Try without
"secauth", maybe the encryption is proving troublesome for you.

There are docs on clusterlabs.org on how to set this all up, too.


Regards,
Lars

--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


lars.ellenberg at linbit

Jan 28, 2009, 6:09 AM

Post #2 of 11 (899 views)
Permalink
Re: [Linux-HA] Re: [Openais] Need your help. [In reply to]

On Wed, Jan 28, 2009 at 01:54:50PM +0100, Lars Marowsky-Bree wrote:
> > can i directly modify cib xml file to add a node or should i use hb_gui . i
> > am not able to form two nodes cluster, please help me.
>
> You NEVER edit cib.xml manually. _Never_. Only through tools such as
> hb_gui, the "crm" shell, cibadmin etc.

maybe you should store the cib.xml on disk in
rot13(plaintext) ^ 0xc0ffee
or some such ;)

Lars Ellenberg

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


lmb at suse

Jan 28, 2009, 7:57 AM

Post #3 of 11 (914 views)
Permalink
Re: [Linux-HA] Re: [Openais] Need your help. [In reply to]

On 2009-01-28T15:09:28, Lars Ellenberg <lars.ellenberg [at] linbit> wrote:

> > You NEVER edit cib.xml manually. _Never_. Only through tools such as
> > hb_gui, the "crm" shell, cibadmin etc.
> maybe you should store the cib.xml on disk in
> rot13(plaintext) ^ 0xc0ffee
> or some such ;)

The idea is not actually without merit ... The checksums apparently
aren't sufficient to deter users from doing it.

Maybe simply bziping it would be sufficient. Then we could claim it is
not to protect us from users but for efficiency ;-}

(Like the checksums are _of course_ meant to protect against data
corruptions; never mind that 95% of the real use cases are admins ;-)


Regards,
Lars

--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


priyanka3rdfeb at gmail

Jan 28, 2009, 8:31 PM

Post #4 of 11 (893 views)
Permalink
Re: [Openais] Need your help. [In reply to]

On Wed, Jan 28, 2009 at 6:24 PM, Lars Marowsky-Bree <lmb [at] suse> wrote:

> On 2009-01-28T15:02:30, Priyanka Ranjan <priyanka3rdfeb [at] gmail> wrote:
>


Thanks a lot for your reply Lars

>
>
> > Hi all,
> > i am new to openais and pacemaker. i am working on sles11 . i have three
> > questions.
>
> If you are working on SLE11, please use the pacemaker list only. These
> questions have nothing to do with linux-ha nor openais. I have set the
> reply-to accordingly.
>
> (Besides, SLE11 isn't released, so that's all beta code right now.)


ok , i will use pacemaker list now.

>
>
> > 1) can any one tell me what resource agents are available . can i have a
> > list of resource agents which openais supports like apache, oracle ,
> tomcat
> > etc.
>
> openAIS doesn't support any resource agents, those come from other
> packages. But in your installed system, simply look at
> /usr/lib/ocf/resource.d/
>
> This will also be documented in the Novell provided product docs, of
> course.
>

i had no idea that openAIS doesnot support RA. can you send me the link of
novell doc , i may get some other useful information also.

i saw that dir and found heatbeat, lvm2 , ocfs2 and pacemaker there.
now one question if i want to use any of these RA in openAIS cluster can
i use heatbeat , lvm2 ,ocfs2 or pacemaker's RA by making them provider.

>
>
> > 2) does openais + pacemaker support SCSI Persisten Resrvation as one of
> > resource/node fencing method. i could not find PR when i did stonith -L .
> do
> > we need to write external stonith script if we want to use SCSI Persisten
> > Resrvation.
>
> There is a scsi_reservation resource agent, but it is not used for
> node-level fencing; you can simply add it to the resource hierarchy as
> required.
>
> If you want to fence through shared storage, the external/sbd stonith
> script might be want you want.
>
> > 3) i want to create two nodes cluster. i have generated the autheky on
> one
> > node and copied it to another node.. after starting openais service i got
> > two separate clusters on two nodes. i have specified following in
> interface
> > of openais.conf.
> >
> > interface {
> > #Network Address to be bind for this interface setting
> >
> > bindnetaddr: 198.168.2.2 # this is node1's pvt addr.
> on
> > node 2's openais.conf i have specified node2's ip address.
>
> You can simply specify the network address, no need to specify the
> explicit IP address here. (ie, likely 192.168.2.0).
>
> And if you want to use OCFS2, you must specify an explicit nodeid: field
> (1, 2, 3, 4, ... this needs to be unique on each node).
>
> > can i directly modify cib xml file to add a node or should i use hb_gui
> . i
> > am not able to form two nodes cluster, please help me.
>
> You NEVER edit cib.xml manually. _Never_. Only through tools such as
> hb_gui, the "crm" shell, cibadmin etc.
>
> You don't need to add nodes to the configuration explicitly, they'll get
> auto-added to the CIB as soon as openais forms a ring. Try without
> "secauth", maybe the encryption is proving troublesome for you.
>
> There are docs on clusterlabs.org on how to set this all up, too.
>
>
> Regards,
> Lars
>
> --

secauth is off in both openais.conf file. i have followed the openais
document. i have generted the authkey and copied it to second node also . i
am kind of stuck here :( .
could you please help me. i have attached the openais.conf of one node with
this mail. please have a look of this and let me know what's going wrong
here.

Thanks a lot again for your help,
Priyanka.


>
> Teamlead Kernel, SuSE Labs, Research and Development
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
>
Attachments: openais_conf.doc (31.0 KB)


priyanka3rdfeb at gmail

Jan 29, 2009, 12:09 AM

Post #5 of 11 (898 views)
Permalink
Re: [Openais] Need your help. [In reply to]

Thanks a lot for your reply Lars

>
>>
>> > Hi all,
>> > i am new to openais and pacemaker. i am working on sles11 . i have three
>> > questions.
>>
>> If you are working on SLE11, please use the pacemaker list only. These
>> questions have nothing to do with linux-ha nor openais. I have set the
>> reply-to accordingly.
>>
>> (Besides, SLE11 isn't released, so that's all beta code right now.)
>
>
> ok , i will use pacemaker list now.
>
>>
>>
>> > 1) can any one tell me what resource agents are available . can i have a
>> > list of resource agents which openais supports like apache, oracle ,
>> tomcat
>> > etc.
>>
>> openAIS doesn't support any resource agents, those come from other
>> packages. But in your installed system, simply look at
>> /usr/lib/ocf/resource.d/
>>
>> This will also be documented in the Novell provided product docs, of
>> course.
>>
>
> i had no idea that openAIS doesnot support RA. can you send me the link of
> novell doc , i may get some other useful information also.
>
> i saw that dir and found heatbeat, lvm2 , ocfs2 and pacemaker there.
> now one question if i want to use any of these RA in openAIS cluster can
> i use heatbeat , lvm2 ,ocfs2 or pacemaker's RA by making them provider.
>
>>
>>
>> > 2) does openais + pacemaker support SCSI Persisten Resrvation as one
>> of
>> > resource/node fencing method. i could not find PR when i did stonith -L
>> . do
>> > we need to write external stonith script if we want to use SCSI
>> Persisten
>> > Resrvation.
>>
>> There is a scsi_reservation resource agent, but it is not used for
>> node-level fencing; you can simply add it to the resource hierarchy as
>> required.
>>
>> If you want to fence through shared storage, the external/sbd stonith
>> script might be want you want.
>>
>> > 3) i want to create two nodes cluster. i have generated the autheky on
>> one
>> > node and copied it to another node.. after starting openais service i
>> got
>> > two separate clusters on two nodes. i have specified following in
>> interface
>> > of openais.conf.
>> >
>> > interface {
>> > #Network Address to be bind for this interface setting
>> >
>> > bindnetaddr: 198.168.2.2 # this is node1's pvt addr.
>> on
>> > node 2's openais.conf i have specified node2's ip address.
>>
>> You can simply specify the network address, no need to specify the
>> explicit IP address here. (ie, likely 192.168.2.0).
>>
>> And if you want to use OCFS2, you must specify an explicit nodeid: field
>> (1, 2, 3, 4, ... this needs to be unique on each node).
>>
>> > can i directly modify cib xml file to add a node or should i use hb_gui
>> . i
>> > am not able to form two nodes cluster, please help me.
>>
>> You NEVER edit cib.xml manually. _Never_. Only through tools such as
>> hb_gui, the "crm" shell, cibadmin etc.
>>
>> You don't need to add nodes to the configuration explicitly, they'll get
>> auto-added to the CIB as soon as openais forms a ring. Try without
>> "secauth", maybe the encryption is proving troublesome for you.
>>
>> There are docs on clusterlabs.org on how to set this all up, too.
>>
>>
>> Regards,
>> Lars
>>
>> --
>
> secauth is off in both openais.conf file. i have followed the openais
> document. i have generted the authkey and copied it to second node also . i
> am kind of stuck here :( .
> could you please help me. i have attached the openais.conf of one node with
> this mail. please have a look of this and let me know what's going wrong
> here.
>
> Thanks a lot again for your help,
> Priyanka.
>
>
>>
>> Teamlead Kernel, SuSE Labs, Research and Development
>> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
>> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>>
>>
>
Attachments: openais_conf.doc (31.0 KB)


lmb at suse

Jan 29, 2009, 3:18 AM

Post #6 of 11 (900 views)
Permalink
Re: [Openais] Need your help. [In reply to]

On 2009-01-29T10:01:05, Priyanka Ranjan <priyanka3rdfeb [at] gmail> wrote:

> On Wed, Jan 28, 2009 at 6:24 PM, Lars Marowsky-Bree <lmb [at] suse> wrote:
> > On 2009-01-28T15:02:30, Priyanka Ranjan <priyanka3rdfeb [at] gmail> wrote:
> Thanks a lot for your reply Lars

Hi Priyanka, _one_ reply is quite sufficient usually - no need to send
it to the list two times and to me personally as well.


> > This will also be documented in the Novell provided product docs, of
> > course.
> i had no idea that openAIS doesnot support RA. can you send me the link of
> novell doc , i may get some other useful information also.

The documentation is not yet public, but should be on the SLE11 HAE
media.

> i saw that dir and found heatbeat, lvm2 , ocfs2 and pacemaker there.
> now one question if i want to use any of these RA in openAIS cluster can
> i use heatbeat , lvm2 ,ocfs2 or pacemaker's RA by making them provider.

Sure. That's what the provider field is for.

> secauth is off in both openais.conf file. i have followed the openais
> document. i have generted the authkey and copied it to second node also . i
> am kind of stuck here :( .

If you've disabled secauth, there's no need to have an authkey file, so
that doesn't have anything to do with it.

> could you please help me. i have attached the openais.conf of one node with
> this mail. please have a look of this and let me know what's going wrong
> here.

Why are you attaching a plain text file as a Microsoft Word document?!

The configuration looks fine. You need to investigate the logs and
network setup why the nodes can't see each other.


Regards,
Lars

--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


priyanka3rdfeb at gmail

Jan 29, 2009, 9:36 AM

Post #7 of 11 (887 views)
Permalink
Re: [Openais] Need your help. [In reply to]

On 1/29/09, Lars Marowsky-Bree <lmb [at] suse> wrote:
> On 2009-01-29T10:01:05, Priyanka Ranjan <priyanka3rdfeb [at] gmail> wrote:
>
>> On Wed, Jan 28, 2009 at 6:24 PM, Lars Marowsky-Bree <lmb [at] suse> wrote:
>> > On 2009-01-28T15:02:30, Priyanka Ranjan <priyanka3rdfeb [at] gmail>
>> > wrote:
>> Thanks a lot for your reply Lars
>
> Hi Priyanka, _one_ reply is quite sufficient usually - no need to send
> it to the list two times and to me personally as well.

actually i got a mail saying my eariler mail to list got bounced so
sent the mail again :)
>
>
>> > This will also be documented in the Novell provided product docs, of
>> > course.
>> i had no idea that openAIS doesnot support RA. can you send me the link
>> of
>> novell doc , i may get some other useful information also.
>
> The documentation is not yet public, but should be on the SLE11 HAE
> media.
>
>> i saw that dir and found heatbeat, lvm2 , ocfs2 and pacemaker there.
>> now one question if i want to use any of these RA in openAIS cluster
>> can
>> i use heatbeat , lvm2 ,ocfs2 or pacemaker's RA by making them provider.
>
> Sure. That's what the provider field is for.
>
>> secauth is off in both openais.conf file. i have followed the openais
>> document. i have generted the authkey and copied it to second node also .
>> i
>> am kind of stuck here :( .
>
> If you've disabled secauth, there's no need to have an authkey file, so
> that doesn't have anything to do with it.
>
>> could you please help me. i have attached the openais.conf of one node
>> with
>> this mail. please have a look of this and let me know what's going wrong
>> here.
>
> Why are you attaching a plain text file as a Microsoft Word document?!
>
> The configuration looks fine. You need to investigate the logs and
> network setup why the nodes can't see each other.

now i am able to form a cluster. previously i was using pvt address .
when i used public ip address it worked. i am bit confused here , i
believe my pvt addresses are properly configured. does openais cluster
need public ip address . i guess this should not be the case . please
let me know your view.
one thing more can we configure a cluster having nodes which belong
to different subnet.

i have heard that hb_gui is being used as gui for openais+pacemaker.
do we have any other gui for oepnais+pacemaker .

Thanks a lot for your help,
priyanka.

>
>
> Regards,
> Lars
>
> --
> Teamlead Kernel, SuSE Labs, Research and Development
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] oss
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


lmb at suse

Jan 30, 2009, 4:27 AM

Post #8 of 11 (880 views)
Permalink
Re: [Openais] Need your help. [In reply to]

On 2009-01-29T23:06:04, Priyanka Ranjan <priyanka3rdfeb [at] gmail> wrote:

> now i am able to form a cluster. previously i was using pvt address .
> when i used public ip address it worked. i am bit confused here , i
> believe my pvt addresses are properly configured. does openais cluster
> need public ip address . i guess this should not be the case . please
> let me know your view.

You need to use a static IP address - one that is assigned to the nodes
permanently, and not managed by the cluster itself - for cluster comms.

Those can be private (ie, 172.16, 192.168.x.y, 10.a.b.c) etc, but the
cluster nodes must be able to reach each other via them.

> one thing more can we configure a cluster having nodes which belong
> to different subnet.

You can, but there must be working multicast communication between the
nodes.

> i have heard that hb_gui is being used as gui for openais+pacemaker.
> do we have any other gui for oepnais+pacemaker .

No, the only GUI is pacemaker-pygui. But there is the "crm" command line
shell too.


Regards,
Lars

--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


priyanka3rdfeb at gmail

Jan 30, 2009, 10:39 AM

Post #9 of 11 (880 views)
Permalink
Re: [Openais] Need your help. [In reply to]

On Fri, Jan 30, 2009 at 5:57 PM, Lars Marowsky-Bree <lmb [at] suse> wrote:

> On 2009-01-29T23:06:04, Priyanka Ranjan <priyanka3rdfeb [at] gmail> wrote:
>
> > one thing more can we configure a cluster having nodes which belong
> > to different subnet.
>
> You can, but there must be working multicast communication between the
> nodes.


i guess default multicast ip (226.94.1.1) will not work in this case and
we may need to configure different multicast ip address right.

>
>
> > i have heard that hb_gui is being used as gui for openais+pacemaker.
> > do we have any other gui for oepnais+pacemaker .
>
> No, the only GUI is pacemaker-pygui. But there is the "crm" command line
> shell too.
>

what is the command to execute pacemaker-pygui.

one more question, As you said earlier ,that openAIS doesnot support any R.A
but it can take R.A from different providers like heartbeat. is there any
plan for openAIS to support R.A in future. It seems to me tha openAIS is
going to replace heartbeat so openAIS should have it's own R.A .

Thanks for your help,
Priyanka.

>
>
> Regards,
> Lars
>
> --
> Teamlead Kernel, SuSE Labs, Research and Development
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] oss
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>


ygao at novell

Feb 1, 2009, 10:20 PM

Post #10 of 11 (869 views)
Permalink
Re: [Openais] Need your help. [In reply to]

On Sat, 2009-01-31 at 00:09 +0530, Priyanka Ranjan wrote:
>
>
> On Fri, Jan 30, 2009 at 5:57 PM, Lars Marowsky-Bree <lmb [at] suse>
> wrote:
> On 2009-01-29T23:06:04, Priyanka Ranjan
> <priyanka3rdfeb [at] gmail> wrote:
>
>
> > one thing more can we configure a cluster having nodes
> which belong
> > to different subnet.
>
>
> You can, but there must be working multicast communication
> between the
> nodes.
>
> i guess default multicast ip (226.94.1.1) will not work in this case
> and we may need to configure different multicast ip address right.
>
>
>
> > i have heard that hb_gui is being used as gui for openais
> +pacemaker.
> > do we have any other gui for oepnais+pacemaker .
>
>
> No, the only GUI is pacemaker-pygui. But there is the "crm"
> command line
> shell too.
>
>
>
> what is the command to execute pacemaker-pygui.
hb_gui so far. Maybe we should rename it to another one and retain it as
an alias
>
> one more question, As you said earlier ,that openAIS doesnot support
> any R.A but it can take R.A from different providers like heartbeat.
> is there any plan for openAIS to support R.A in future. It seems to me
> tha openAIS is going to replace heartbeat so openAIS should have it's
> own R.A .
>
> Thanks for your help,
> Priyanka.
>

>
--
Regards,
Yan Gao
China R&D Software Engineer
ygao [at] novell

Novell, Inc.
Making IT Work As One™


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


lmb at suse

Feb 3, 2009, 2:35 AM

Post #11 of 11 (868 views)
Permalink
Re: [Openais] Need your help. [In reply to]

On 2009-01-31T00:09:34, Priyanka Ranjan <priyanka3rdfeb [at] gmail> wrote:

> > > one thing more can we configure a cluster having nodes which belong
> > > to different subnet.
> > You can, but there must be working multicast communication between the
> > nodes.
> i guess default multicast ip (226.94.1.1) will not work in this case and
> we may need to configure different multicast ip address right.

Whether or not the multicast address provided as an example works in
that case or not depends on whether you have multicast routing/switching
on your network.

You need a different one if you're using that one for something else,
it's as simple as that ;-)


> what is the command to execute pacemaker-pygui.

hb_gui. But please, simply use "rpm -ql" and find out what's included in
a package, or try reading the docs.

> one more question, As you said earlier ,that openAIS doesnot support any R.A
> but it can take R.A from different providers like heartbeat. is there any
> plan for openAIS to support R.A in future. It seems to me tha openAIS is
> going to replace heartbeat so openAIS should have it's own R.A .

openAIS is merely a cluster infrastructure layer. It doesn't include RAs
nor should it do so. Those are coming from different packages/projects.



Regards,
Lars

--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N黵nberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.