# SLE HAE with DB2

**URL:** <https://forums.suse.com/t/sle-hae-with-db2/23287>\
**Category:** SLES High Availability Extension\
**Created:** [November 11, 2012, 11:25am UTC](https://forums.suse.com/t/sle-hae-with-db2/23287 "2012-11-11T11:25:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![supphakorn](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@supphakorn](https://forums.suse.com/u/supphakorn)\
**Post date:** [November 11, 2012, 11:25am UTC](https://forums.suse.com/t/sle-hae-with-db2/23287/1 "2012-11-11T11:25:10Z")

</div>

Someone have sample configuration for DB2 resource agent ?

I test it but when I check log in /var/log/message I see DB2 start successfull and some second DB2 stop successfull.

Before DB2 stop, It say Error: DB2 is not working in /var/log/message

anybody have sample db2 with HAE configuration please tell me

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [November 12, 2012, 5:05pm UTC](https://forums.suse.com/t/sle-hae-with-db2/23287/2 "2012-11-12T17:05:55Z")

</div>

Hi supphakorn,

a - no, I don’t have a RA at hand, but have toyed with many of 'em, including self-written ones.

b - you might want to take a look at the agent script and determine what it’s trying to do. Might be as simple as an too early initial check for a functional instance after bringing up the resource.

If we were to assist with debugging, more detailed information is in order. I recommend that you take a closer look at the startup messages and try to determine what’s going wrong. The usual way things operate would be

- the desired state in the CIB is set to “started”
- the LRM invokes the RA to start the resource (does that work? You might want to manually set up a temp environment and invoke the RA to see what’s actually happening)
- after the RA reports back success, LRM will periodically invoke the RA to check the resource status

So basically you should check if startup did indeed succeed - or were there errors, probably due to some missing or wrong parameters or because startup took longer than the granted time? If startup seemed ok, did the RA report rc=0 when checking the resource state? If not, why (probably checked to early?)

If you still don’t find your way around this (no-one is going to blame you for that 🙂 ) you should provide the resource definition and probably related syslog output.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 12, 2012, 6:00pm UTC](https://forums.suse.com/t/sle-hae-with-db2/23287/3 "2012-11-12T18:00:01Z")

</div>

On Sun, 11 Nov 2012 09:34:02 +0000, supphakorn wrote:  
[color=blue]

> Someone have sample configuration for DB2 resource agent ?
> 
> I test it but when I check log in /var/log/message I see DB2 start  
> successfull and some second DB2 stop successfull.
> 
> Before DB2 stop, It say Error: DB2 is not working in /var/log/message[/color]

That sounds like the ‘monitor’ section of the DB2 resource agent is  
reporting a failure. You might check to see what that section does, and  
make sure that whatever it is that it does, that it works correctly.

## –

David Gersic [dgersic\_@\_niu.edu](mailto:dgersic_@_niu.edu)  
Knowledge Partner [http://forums.netiq.com](http://forums.netiq.com)

Please post questions in the forums. No support provided via email.
