[Linux-HA] Migrate to cib.xml - can't get resources to start

Andrew Beekhof beekhof at gmail.com
Mon Feb 12 01:16:51 MST 2007


On 2/9/07, Darren Hoch <darren.hoch at litemail.org> wrote:
> Hello All,
>
> Heartbeat Version: 2.0.6 (aware of security vulnerability) :)
> RHEL 4 U4 SMP
>
> I am attempting to move from haresources to cib.xml. My configuration is
> moving from haresoureces based Active/Passive to Active/Active/Passive. I
> have ha1, ha2, and ha3 nodes. Both ha1 and ha3 run a proprietary app
> (started by LSB script). The proprietary app runs on DRBD filesystem on
> both ha1 and ha3 in primary (ha2 secondary DRBD device). The ha2 node is
> Passive and acquires resources (IPAddr, DRBD, App) from ha1 or ha3 upon
> failure.
>
> I believe something is too restrictive in my cib.xml.
>
> Baseline troubleshooting done already:
> * opened UDP 694 and 7788 (DRBD) in IPTables
> * all interfaces on 192.168.1.X network plugged into GigE switch
> * placed LSB script in /etc/init.d
> * ensured DRBD does not auto mount in /etc/fstab
> * read through archives on gossamer-threads and Alan Robertson's excellent
> presentations
>
> Here are the following parameters in ha.cf:
>
> debugfile /var/log/ha-debug
> logfile /var/log/ha-log
> logfacility     local0
> keepalive 2
> deadtime 30
> warntime 10
> initdead 120
> udpport 694
> bcast   eth0 eth1       # Linux
> auto_failback off
> crm yes
> node    ha1 ha2 ha3
> ping 192.168.1.1
> respawn hacluster /usr/lib/heartbeat/ipfail

btw. ipfail doesn't work with "crm yes"

>
> I created the cib.xml using haresources2cib.py. I want resources to start
> without (ignore).

for that you'll need quorum - are at least 2 of the 3 nodes active?

> I then added some resource constraints trying to accomplish the following:
>
> resource group_1 starts always on ha1, fails to ha2, and should never run
> on ha3
> resource group_11 starts always on ha3, fails to ha2, and should never run
> on ha1
> resources group_1 and group_11 should NEVER run on the same node

the config looks sane enough

> I ran crm_verify and BasicSanityCheck with NO errors. I started heartbeat
> and all HB process have started, but no DRBD mounts or starting of app. No
> matter what, the resources will NOT start. I can't seem to find any error
> messages in ha-log or ha-debug for any of the resource erros commonly seen
> with version 1 haresources.

could you attach them (compressed) so we can have a look?

> I have attached the cib.xml current snapshot from ha1.
>
>
> Thanks for any help. This has been quite a learning curve.
>
> Darren
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>


More information about the Linux-HA mailing list