Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Postgresql don't works in caa
@ 2003-01-10 15:02 Snip3r
  2003-01-11  2:59 ` Craig Hulett
  0 siblings, 1 reply; 4+ messages in thread
From: Snip3r @ 2003-01-10 15:02 UTC (permalink / raw)


Hi,

i made this post some time ago, excuse me but i can't find a solution.

On a trucluster 5.1 environment with 2 node i'm trying
to put postgresql db server in high availibility using the
example script for ORACLE, but it don't migrate or restart 
and require always 'human intervention' .


The error in the syslog is exactly :

"postgresql on member node1 has experienced an unrecoverable failure.
Human Intervention required to resume its availability."

The script works when launched by hand and works when launched the first
time via sysman, in the caa section. But it don't work when happens
a failure. 

After the failure this is the result of the command 'caa_stat' :

NAME=pgsql
TYPE=application
TARGET=ONLINE
STATE=UNKNOWN on node1

It's in an UNKNOW state.

All other resource in caa are working well.

Any idea is welcomed.

Thanks.

S.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Postgresql don't works in caa
  2003-01-10 15:02 Postgresql don't works in caa Snip3r
@ 2003-01-11  2:59 ` Craig Hulett
  2003-01-13 12:01   ` Matthew Wild
  0 siblings, 1 reply; 4+ messages in thread
From: Craig Hulett @ 2003-01-11  2:59 UTC (permalink / raw)


Snip3r wrote:
> Hi,
>
> i made this post some time ago, excuse me but i can't find a solution.
>
> On a trucluster 5.1 environment with 2 node i'm trying
> to put postgresql db server in high availibility using the
> example script for ORACLE, but it don't migrate or restart
> and require always 'human intervention' .
>
>
> The error in the syslog is exactly :
>
> "postgresql on member node1 has experienced an unrecoverable failure.
> Human Intervention required to resume its availability."
>
> The script works when launched by hand and works when launched the
> first time via sysman, in the caa section. But it don't work when
> happens a failure.
>
> After the failure this is the result of the command 'caa_stat' :
>
> NAME=pgsql
> TYPE=application
> TARGET=ONLINE
> STATE=UNKNOWN on node1
>
> It's in an UNKNOW state.
>
> All other resource in caa are working well.
>
> Any idea is welcomed.
>
> Thanks.
>
> S.

Well... I'm certainly no *expert* on caa, but we do run a number of large
24x7 Oracle databases under caa with no issues.  AFAIK, all that UNKNOWN
means it what you said - there has been a failure and the database is
neither ONLINE nor OFFLINE. What you need to do is ensure that your 'check'
section of the caa 'pgsql_scr' script for this is written so that it can
recognize the fact that there has been a failure, and then caa will attempt
to 'start' it on the other node.

Do you have caa_stop and caa_start working for the database?  I believe that
you should be able to do a caa_stop and get the instance down to an OFFLINE
target and state.  After that, does caa_start bring it back online?  Seems
to me if start and stop both work, but failures in the database aren't
recognized, you need to flesh out your 'check' option so that it knows how
to tell that it the database is down. Be careful with it, tho, cuz if you
get it wrong and the check fails when in fact nothing is wrong, the database
will 'ping-pong' back and forth between nodes... and it's not a pretty
sight. <g>

FWIW, the Oracle example script was declared 'very simple' by our DBA and
had to be reworked quite a bit before our company had a brain-fart and
decided to release all consultants, of which he was one.  [sigh]  What
changes did you make to it for Postgresql?

-craig




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Postgresql don't works in caa
  2003-01-11  2:59 ` Craig Hulett
@ 2003-01-13 12:01   ` Matthew Wild
  2003-01-13 13:49     ` Craig Hulett
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wild @ 2003-01-13 12:01 UTC (permalink / raw)


Craig Hulett wrote:

> Snip3r wrote:
>> Hi,
>>
>> i made this post some time ago, excuse me but i can't find a solution.
>>
>> On a trucluster 5.1 environment with 2 node i'm trying
>> to put postgresql db server in high availibility using the
>> example script for ORACLE, but it don't migrate or restart
>> and require always 'human intervention' .
>>
>>
>> The error in the syslog is exactly :
>>
>> "postgresql on member node1 has experienced an unrecoverable failure.
>> Human Intervention required to resume its availability."
>>
>> The script works when launched by hand and works when launched the
>> first time via sysman, in the caa section. But it don't work when
>> happens a failure.
>>
>> After the failure this is the result of the command 'caa_stat' :
>>
>> NAME=pgsql
>> TYPE=application
>> TARGET=ONLINE
>> STATE=UNKNOWN on node1
>>
>> It's in an UNKNOW state.
>>
>> All other resource in caa are working well.
>>
>> Any idea is welcomed.
>>
>> Thanks.
>>
>> S.
> 
> Well... I'm certainly no *expert* on caa, but we do run a number of large
> 24x7 Oracle databases under caa with no issues.  AFAIK, all that UNKNOWN
> means it what you said - there has been a failure and the database is
> neither ONLINE nor OFFLINE. What you need to do is ensure that your
> 'check' section of the caa 'pgsql_scr' script for this is written so that
> it can recognize the fact that there has been a failure, and then caa will
> attempt to 'start' it on the other node.
> 
> Do you have caa_stop and caa_start working for the database?  I believe
> that you should be able to do a caa_stop and get the instance down to an
> OFFLINE
> target and state.
> 
> -craig

I've also had problems using the caa scripts for PostgreSQL. Once it is in 
the UNKKNOWN state, caa_stop/caa_start do not do anything useful and you 
have to spend time killing all the processes and removing lock files or 
reboot.

Matthew
-- 
Matthew Wild                       Tel.: +44 (0)1235 445173
M.Wild@rl.ac.uk                    URL http://www.wdc.rl.ac.uk/
World Data Centre - Solar-Terrestrial Physics, Chilton
Rutherford Appleton Laboratory, Chilton, Didcot, Oxon, OX11 0QX


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Postgresql don't works in caa
  2003-01-13 12:01   ` Matthew Wild
@ 2003-01-13 13:49     ` Craig Hulett
  0 siblings, 0 replies; 4+ messages in thread
From: Craig Hulett @ 2003-01-13 13:49 UTC (permalink / raw)


Matthew Wild wrote:
> Craig Hulett wrote:
>
>> Snip3r wrote:
>>> Hi,
>>>
>>> i made this post some time ago, excuse me but i can't find a
>>> solution.
>>>
>>> On a trucluster 5.1 environment with 2 node i'm trying
>>> to put postgresql db server in high availibility using the
>>> example script for ORACLE, but it don't migrate or restart
>>> and require always 'human intervention' .
>>>
>>>
>>> The error in the syslog is exactly :
>>>
>>> "postgresql on member node1 has experienced an unrecoverable
>>> failure. Human Intervention required to resume its availability."
>>>
>>> The script works when launched by hand and works when launched the
>>> first time via sysman, in the caa section. But it don't work when
>>> happens a failure.
>>>
>>> After the failure this is the result of the command 'caa_stat' :
>>>
>>> NAME=pgsql
>>> TYPE=application
>>> TARGET=ONLINE
>>> STATE=UNKNOWN on node1
>>>
>>> It's in an UNKNOW state.
>>>
>>> All other resource in caa are working well.
>>>
>>> Any idea is welcomed.
>>>
>>> Thanks.
>>>
>>> S.
>>
>> Well... I'm certainly no *expert* on caa, but we do run a number of
>> large 24x7 Oracle databases under caa with no issues.  AFAIK, all
>> that UNKNOWN means it what you said - there has been a failure and
>> the database is neither ONLINE nor OFFLINE. What you need to do is
>> ensure that your 'check' section of the caa 'pgsql_scr' script for
>> this is written so that it can recognize the fact that there has
>> been a failure, and then caa will attempt to 'start' it on the other
>> node.
>>
>> Do you have caa_stop and caa_start working for the database?  I
>> believe that you should be able to do a caa_stop and get the
>> instance down to an OFFLINE
>> target and state.
>>
>> -craig
>
> I've also had problems using the caa scripts for PostgreSQL. Once it
> is in the UNKKNOWN state, caa_stop/caa_start do not do anything
> useful and you have to spend time killing all the processes and
> removing lock files or reboot.
>
> Matthew

You mean you've had problems using the *Oracle* example scripts for
PostgreSQL?  How much customizing did you do?  Did you modify the list of
processes to 'probe' ($PROBE_PROCS) and include whichever processes you
mention as having to kill off manually?  Your 'stop' command should be able
to clean up after itself better, I would think, if you do so.  You can also
replace the example stop section with a more custom one, if there is
something more appropriate you should be doing for PostgreSQL.  I'm not
saying it always works and there aren't times when you have to manually kill
off processes, but it certainly should work the vast majority of the time..

-craig




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-13 13:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-10 15:02 Postgresql don't works in caa Snip3r
2003-01-11  2:59 ` Craig Hulett
2003-01-13 12:01   ` Matthew Wild
2003-01-13 13:49     ` Craig Hulett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox