ocf_heartbeat_db2(7) Manages an IBM DB2 Universal Database instance

SYNOPSIS

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

DESCRIPTION

Resource script for db2. It manages a DB2 Universal Database instance as an HA resource.

SUPPORTED PARAMETERS

instance

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

admin

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

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" 

AUTHOR

Linux-HA contributors (see the resource agent source for information about individual authors)