
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 4,868 Views
Hello,
does anyone know how to create a custom application resource like weblogic or mq series in pacemaker ?
As a comparison in veritas cluster server you have an application resource agent which is suitable for any application. You only have to provide start, stop and monitorscripts to create the resource. It looks like in pacemaker I have to create my own resource agent, right ? Or is there any other possiblity ?
Any help would be very much appreciated.
regards Hendrik
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 4,836 Views
Hello,
many thanks for your response!
I have tried this with systemd service and put it under pacemaker control. The stop and start is working fine but the cluster doesn't recognise when the qmanager is down. Is there any way to provide the systemd service a custom monitoring script ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 4,555 Views
Hi
I'll help you within my knowledge.
pacemaker can configure custom resources by creating an lsb script.
Basically, start, monitor, and stop Fraction can be written in one script, stored in the /etc/init.d/ path, and then generated in the lsb method when registering resources.
If you check the official Redhat guide document, you'll see how to generate resources using the lsb method.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 4,863 Views
You can just the systemd resource type. You need to develop a reguar systemd service that starts/stops/monitor you application as if it was regular systemd unit and have pacemaker manage it as required.
Some more details in https://access.redhat.com/solutions/7003531 .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 4,837 Views
Hello,
many thanks for your response!
I have tried this with systemd service and put it under pacemaker control. The stop and start is working fine but the cluster doesn't recognise when the qmanager is down. Is there any way to provide the systemd service a custom monitoring script ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 4,556 Views
Hi
I'll help you within my knowledge.
pacemaker can configure custom resources by creating an lsb script.
Basically, start, monitor, and stop Fraction can be written in one script, stored in the /etc/init.d/ path, and then generated in the lsb method when registering resources.
If you check the official Redhat guide document, you'll see how to generate resources using the lsb method.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 4,445 Views
Hi,
You know in the pacemaker there are two type of resources.
The first is lsb. That means some service file for systemd.
Another is ocf . You create your ocf resource. Just to implement some function.Such as
start、stop、monitor、validate、meta-data funcitons.
Below is the typical ocf resource example:
https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/ocivip
At most time. I prefer the lsb. Cz this is more easy.