HA - Cluster: OCF Resource Agent

Posted on 2009-02-17
Last Modified: 2012-06-21

i am using Linux CLuster with Centos 5.2 as OS,and heartbeat 2, DRBD , btw. MaxDB ..etc.

I trying to modify the Resource Agent "SAPDatabase" in "/usr/lib/ocf/resource.d/heartbeat" to start MaxDB automaticly after a failover!

it is not working!

i am trying this code:

 <parameter name="SID" unique="1" required="1">

  <longdesc lang="en">The unique SAP system identifier. e.g. P01</longdesc>

  <shortdesc lang="en">SAP system ID</shortdesc>

  <content type="string" default="MDB" />


 <parameter name="DIR_EXECUTABLE" unique="1" required="0">

  <longdesc lang="en">The full qualified path where to find sapstartsrv and sapcontrol.</longdesc>

  <shortdesc lang="en">path of sapstartsrv and sapcontrol</shortdesc>

  <content type="string" default="/repdata/opt/sdb/programs/bin" />


 <parameter name="DBTYPE" unique="1" required="1">

  <longdesc lang="en">The name of the database vendor you use. Set either: ORA,DB6,ADA</longdesc>

  <shortdesc lang="en">database vendor</shortdesc>

  <content type="string" default="MaxDB" />


thanks alot for any help

Open in new window

Question by:XXXcool
    1 Comment
    LVL 27

    Accepted Solution

    Hi, xxxcool.

    RedHat doesn't support MaxDB database resource type. You may either write your custom scripts or change your database to supported one:
    Oracle, Postgres or MySQL.

    MaxDB from is not  SAP R/3, that is

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now