Name

ocf_heartbeat_db2 — Manages an IBM DB2 Universal Database instance

Synopsis

db2 [ start | stop | status | monitor | meta-data | validate-all ]

Description

Resource script for db2. It manages a DB2 Universal Database instance as an HA resource. Multiple partitions are supported. Configure each partition as a separate HA instance.

Supported Parameters

instance

The instance of database. (required, string, no default)

admin

The admin user of the instance. (optional, string, no default)

dbpartitionnum

The number of the partion (DBPARTITIONNUM) to be managed. (optional, string, default 0)

Supported Actions

This resource agent supports the following actions (operations):

start

Starts the resource. Suggested minimum timeout: 120.

stop

Stops the resource. Suggested minimum timeout: 120.

status

Performs a status check. Suggested minimum timeout: 60.

monitor

Performs a detailed status check. Suggested minimum timeout: 60. Suggested interval: 10.

validate-all

Performs a validation of the resource configuration. Suggested minimum timeout: 5.

meta-data

Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.

methods

Suggested minimum timeout: 5.

Example

The following is an example configuration for a db2 resource using the crm(8) shell:

primitive example_db2 ocf:heartbeat:db2 \
  params \
    instance=string \
  op monitor depth="0" timeout="60" interval="10" 

See also

http://www.linux-ha.org/wiki/db2_(resource_agent)