'\" t .\" Title: ocf_heartbeat_Dummy .\" Author: Linux-HA contributors (see the resource agent source for information about individual authors) .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 03/09/2014 .\" Manual: OCF resource agents .\" Source: resource-agents UNKNOWN .\" Language: English .\" .TH "OCF_HEARTBEAT_DUMMY" "7" "03/09/2014" "resource-agents UNKNOWN" "OCF resource agents" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ocf_heartbeat_Dummy \- Example stateless resource agent .SH "SYNOPSIS" .HP \w'\fBDummy\fR\ 'u \fBDummy\fR [start | stop | monitor | migrate_to | migrate_from | meta\-data | validate\-all] .SH "DESCRIPTION" .PP This is a Dummy Resource Agent\&. It does absolutely nothing except keep track of whether its running or not\&. Its purpose in life is for testing and to serve as a template for RA writers\&. .PP NB: Please pay attention to the timeouts specified in the actions section below\&. They should be meaningful for the kind of resource the agent manages\&. They should be the minimum advised timeouts, but they shouldn\*(Aqt/cannot cover _all_ possible resource instances\&. So, try to be neither overly generous nor too stingy, but moderate\&. The minimum timeouts should never be below 10 seconds\&. .SH "SUPPORTED PARAMETERS" .PP \fBstate\fR .RS 4 Location to store the resource state in\&. (unique, optional, string, default /var/run/resource\-agents/Dummy\-default\&.state) .RE .PP \fBfake\fR .RS 4 Fake attribute that can be changed to cause a reload (optional, string, default dummy) .RE .SH "SUPPORTED ACTIONS" .PP This resource agent supports the following actions (operations): .PP \fBstart\fR .RS 4 Starts the resource\&. Suggested minimum timeout: 20\&. .RE .PP \fBstop\fR .RS 4 Stops the resource\&. Suggested minimum timeout: 20\&. .RE .PP \fBmonitor\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 20\&. Suggested interval: 10\&. .RE .PP \fBreload\fR .RS 4 Suggested minimum timeout: 20\&. .RE .PP \fBmigrate_to\fR .RS 4 Executes steps necessary for migrating the resource \fIto\fR the node\&. Suggested minimum timeout: 20\&. .RE .PP \fBmigrate_from\fR .RS 4 Executes steps necessary for migrating the resource \fIaway from\fR the node\&. Suggested minimum timeout: 20\&. .RE .PP \fBmeta\-data\fR .RS 4 Retrieves resource agent metadata (internal use only)\&. Suggested minimum timeout: 5\&. .RE .PP \fBvalidate\-all\fR .RS 4 Performs a validation of the resource configuration\&. Suggested minimum timeout: 20\&. .RE .SH "EXAMPLE" .PP The following is an example configuration for a Dummy resource using the \fBcrm\fR(8) shell: .sp .if n \{\ .RS 4 .\} .nf primitive p_Dummy ocf:heartbeat:Dummy \e meta allow\-migrate="true" \e op monitor timeout="20" interval="10" depth="0" .fi .if n \{\ .RE .\} .SH "SEE ALSO" .PP \m[blue]\fB\%http://www.linux-ha.org/wiki/Dummy_(resource_agent)\fR\m[] .SH "AUTHOR" .PP \fBLinux\-HA contributors (see the resource agent source for information about individual authors)\fR