pgsql ra (WAS: Re: [Linux-ha-dev] ids ra)

Dominik Klein dk at in-telegence.net
Mon Dec 10 08:10:42 MST 2007


> OCF resource agents should be able to run meta-data, monitor, and
> stop even when there is no required software installed:
> 
> - meta-data should run ok
> - monitor should return 7 (resource stopped)
> - stop should return 0 (success)
> 
> Can you please fix that?

I think this also needs fixing in the pgsql RA. Because *every* time it 
is run, it calls:

pgsql_validate_all() {

     check_binary $SH
     check_binary $OCF_RESKEY_pgctl
     check_binary $OCF_RESKEY_psql

     return $OCF_SUCCESS
}

if ! pgsql_validate_all
then
     exit $OCF_ERR_CONFIGURED
fi

This is a problem

a) if Postgres is not installed
b) if Postgres is installed on a shared disc, which is not mounted yet 
(e.g. in a group configuration)

Regards
Dominik


More information about the Linux-HA-Dev mailing list