On Wed, Jan 23, 2013 at 7:44 PM, hj <huanghy...@gmail.com> wrote: > I install drbd + lvm + postgresql + pacemaker on debian 6. > What's wrong with pg_lvm_start_0?
Impossible to say given the info below. One would hope the LVM agent would be printing something to syslog with more information. > > root@node1:/home/hj# crm_mon -1 > ============ > Last updated: Wed Jan 23 16:36:34 2013 > Stack: openais > Current DC: node1 - partition with quorum > Version: 1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b > 2 Nodes configured, 2 expected votes > 3 Resources configured. > ============ > > Online: [ node2 node1 ] > > Master/Slave Set: ms_drbd_pg > Masters: [ node2 ] > Slaves: [ node1 ] > > Failed actions: > pg_lvm_start_0 (node=node1, call=7, rc=1, status=complete): unknown error > pg_fs_start_0 (node=node1, call=21, rc=5, status=complete): not installed > pg_fs_start_0 (node=node2, call=14, rc=5, status=complete): not installed > pg_lvm_start_0 (node=node2, call=7, rc=1, status=complete): unknown error > root@node1:/home/hj# crm configure show > node node1 > node node2 \ > attributes standby="off" > primitive drbd_pg ocf:linbit:drbd \ > params drbd_resource="pg" \ > op monitor interval="15" \ > op start interval="0" timeout="240" \ > op stop interval="0" timeout="120" > primitive pg_fs ocf:heartbeat:Filesystem \ > params device="/dev/vgpg/lvdata" directory="/db/pgdata" options="" \ > fstype="ext3" \ > op start interval="0" timeout="60" \ > op stop interval="0" timeout="120" > primitive pg_lsb lsb:postgresql \ > op monitor interval="30" timeout="60" \ > op start interval="0" timeout="60" \ > op stop interval="0" timeout="60" > primitive pg_lvm ocf:heartbeat:LVM \ > params volgrpname="vgpg" \ > op start interval="0" timeout="30" \ > op stop interval="0" timeout="30" > primitive pg_vip ocf:heartbeat:IPaddr2 \ > params ip="192.168.1.200" iflabel="pgvip" \ > op monitor interval="5" > group PGServer pg_fs pg_lsb pg_vip > ms ms_drbd_pg drbd_pg \ > meta master-max="1" master-node-max="1" clone-max="2" > clone-node-max="1" \ > notify="true" > location cli-prefer-PGServer PGServer \ > rule $id="cli-prefer-rule-PGServer" inf: #uname eq node2 > colocation col_pg_drbd inf: PGServer ms_drbd_pg:Master > order ord_pg inf: ms_drbd_pg:promote PGServer:start > property $id="cib-bootstrap-options" \ > dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \ > cluster-infrastructure="openais" \ > expected-quorum-votes="2" \ > stonith-enabled="false" \ > no-quorum-policy="ignore" \ > default-resource-stickiness="100" > > > > _______________________________________________ > Pacemaker mailing list: Pacemaker@oss.clusterlabs.org > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: http://bugs.clusterlabs.org _______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org