Your collocation rules are uniderctional, i.e. pgsql depends on ip and fs, but ip doesn't depend on pgsql. So whenever you move over IP or FS pgsql follows but if you move just pgsql IP stays in ints current place becuase it doesn't depend on pgsql. On other hand pgsql can't run without IP so it stays down. Try to use groups or make your collocation rules bidirectional. I know it's confusing.
On Dec 30, 2007 11:08 AM, Thomas Glanzmann <[EMAIL PROTECTED]> wrote: > Hello, > I modified my setup to do: > > # Add resources / constraints: > > cibadmin -o resources -C -x 01_drbd > cibadmin -o resources -C -x 02_filesystem > cibadmin -o constraints -C -x 03_constraint_run_on > cibadmin -o constraints -C -x 04_order_drbd_before_fs0 > cibadmin -o constraints -C -x 05_colocation_drbd_master_on_fs0 > > cibadmin -o resources -C -x 06_ip_address > cibadmin -o resources -C -x 07_pgsql > > cibadmin -o constraints -C -x 08_order_fs0_before_ip0 > cibadmin -o constraints -C -x 09_order_ip0_before_pgsql0 > cibadmin -o constraints -C -x 10_colocation_fs0_ip0 > cibadmin -o constraints -C -x 11_colocation_ip0_pgsql0 > > Order: > DRBD0(Master) => FS0 => IP0 => PGSQL0 > > Colocation: > > DRBD0(Master) => FS0 > FS0 => IP0 > FS0 => PGSQL > > # Start resources: > > crm_resource -r ms-drbd0 -v '#default' --meta -p target_role > crm_resource -r fs0 -v '#default' --meta -p target_role > crm_resource -r pgsql0 -v '#default' --meta -p target_role > > And now it works (maybe that was already the case) when I push over the "fs0" > ressource. The rest follows. But when I try to push the pgsql0 or the ip0 > ressource over, it stops everything, doesn't promote drbd master on the other > node and hangs there. I would be really glad if someone could show me my > configuration mistake. > > Btw. I was able to get all of this running in two days and I would like to > thank the people who made that possible. Linux-HA is very fine piece of > software. Now that the postgres works more or less I do the tomcats. After > that > I do the router, openvpn, apache and nfs server. :-) > > > Thomas > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > -- Serge Dubrouski. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
