Hello everyboddy,
First, i'm sorry for my bad english.
I'm from ecuador and i'm trying configure a ha cluster with 2 nodes,
the resource are:
IP
filesystem (with a SAN)
apache
postgresql
The problem is then when i start the cluster, everything go to up,
but the posgres resource not, in the logs (/var/log/messages) i get
this:
Jan 14 23:32:49 ohgyedbs02 pengine: [28713]: WARN: unpack_rsc_op:
Processing failed op postgres_start_0 on ohgyedbs01: Timed Out
Jan 14 23:32:49 ohgyedbs02 pengine: [28713]: WARN: unpack_rsc_op:
Compatability handling for failed op postgres_start_0 on ohgyedbs01
Jan 14 23:32:49 ohgyedbs02 pengine: [28713]: WARN: unpack_rsc_op:
Processing failed op postgres_start_0 on ohgyedbs02: Timed Out
Jan 14 23:32:49 ohgyedbs02 pengine: [28713]: WARN: unpack_rsc_op:
Compatability handling for failed op postgres_start_0 on ohgyedbs02
Jan 14 23:32:49 ohgyedbs02 pengine: [28713]: notice: native_print:
postgres (ocf::heartbeat:pgsql): Stopped
Jan 14 23:32:49
ohgyedbs02 pengine: [28713]: WARN: native_color:
Resource postgres cannot run anywhere
Someone can say me what is wrong?
My cib.xml is attached to this message with the name "test.xml"
Thanks for your help.
Best regards,
Carlos Chiriboga Calderon
<cib admin_epoch="30">
<configuration>
<crm_config />
<nodes />
<resources>
<primitive id="webip" class="ocf" type="IPaddr"
provider="heartbeat">
<instance_attributes>
<attributes>
<nvpair id="id_ipaddr"
name="ip" value="172.20.2.210"/>
<nvpair id="id_netmask"
name="netmask" value="24"/>
<nvpair id="id_device"
name="nic" value="eth9"/>
</attributes>
</instance_attributes>
</primitive>
<group id="group_fs">
<primitive id="FS_www" class="ocf"
type="Filesystem" provider="heartbeat">
<instance_attributes>
<attributes>
<nvpair
id="dev_sddlmaa1" name="device" value="/dev/sddlmaa1"/>
<nvpair
id="replica_www" name="directory" value="/replica/www"/>
<nvpair id="fs_type1"
name="fstype" value="ext3"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="FS_pgdata" class="ocf"
type="Filesystem" provider="heartbeat">
<instance_attributes>
<attributes>
<nvpair
id="dev_sddlmab1" name="device" value="/dev/sddlmab1"/>
<nvpair
id="replica_pgdata" name="directory" value="/replica/pgdata"/>
<nvpair id="fs_type2"
name="fstype" value="ext3"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="FS_pglogs" class="ocf"
type="Filesystem" provider="heartbeat">
<instance_attributes>
<attributes>
<nvpair
id="dev_sddlmac1" name="device" value="/dev/sddlmac1"/>
<nvpair
id="replica_pglogs" name="directory" value="/replica/pglogs"/>
<nvpair id="fs_type3"
name="fstype" value="ext3"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="FS_backup" class="ocf"
type="Filesystem" provider="heartbeat">
<instance_attributes>
<attributes>
<nvpair
id="dev_sddlmad1" name="device" value="/dev/sddlmad1"/>
<nvpair
id="replica_backup" name="directory" value="/replica/backup"/>
<nvpair id="fs_type4"
name="fstype" value="ext3"/>
</attributes>
</instance_attributes>
</primitive>
</group>
<primitive id="postgres" class="ocf" type="pgsql"
provider="heartbeat">
<instance_attributes id="atrApPostgreSQLDB">
<attributes>
<nvpair id="pgctl"
name="pgctl" value="/usr/local/pgsql/bin/pg_ctl"/>
<nvpair id="psql"
name="psql" value="/usr/local/pgsql/bin/psql"/>
<nvpair id="pgdata"
name="pgdata" value="/replica/pgdata/data"/>
<nvpair id="pgdba"
name="pgdba" value="postgres"/>
<nvpair id="pgdb"
name="pgdb" value="postgres"/>
<nvpair id="logfile"
name="logfile" value="/replica/pglogs/postgres.log"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="apache" class="lsb" type="apache2"/>
</resources>
<constraints>
<rsc_colocation id="loc_grpFS_ip"
from="group_fs" to="webip" score="INFINITY"/>
<rsc_colocation id="loc_ip_apache"
from="apache" to="webip" score="INFINITY"/>
<rsc_colocation id="loc_apache_postgres"
from="postgres" to="apache" score="INFINITY"/>
<rsc_order id="order_named_webip_grpFS"
from="webip" action="start" type="before" to="group_fs"/>
<rsc_order id="order_named_grpFS_apache"
from="group_fs" action="start" type="before" to="apache"/>
<rsc_order id="order_named_grpFS_webip"
from="group_fs" action="start" type="after" to="webip"/>
<rsc_order id="order_named_apache_postgres"
from="apache" action="start" type="before" to="postgres"/>
<rsc_order id="order_named_apache_grpFS"
from="apache" action="start" type="after" to="group_fs"/>
<rsc_order id="order_postgres_apache"
from="postgres" action="start" type="after" to="apache"/>
</constraints>
</configuration>
<status />
</cib>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems