Product SiteDocumentation Site

B.4. OCF Return Codes

Tabella B.4. OCF Return Codes and their Recovery Types

RC OCF Alias Descrizione RT
0
OCF_SUCCESS
Success. The command completed successfully. This is the expected result for all start, stop, promote and demote commands.
soft
1
OCF_ERR_GENERIC
Generic "there was a problem" error code.
soft
2
OCF_ERR_ARGS
The resource’s configuration is not valid on this machine. Eg. refers to a location/tool not found on the node.
hard
3
OCF_ERR_UNIMPLEMENTED
The requested action is not implemented.
hard
4
OCF_ERR_PERM
The resource agent does not have sufficient privileges to complete the task.
hard
5
OCF_ERR_INSTALLED
The tools required by the resource are not installed on this machine.
hard
6
OCF_ERR_CONFIGURED
The resource’s configuration is invalid. Eg. required parameters are missing.
fatal
7
OCF_NOT_RUNNING
The resource is safely stopped. The cluster will not attempt to stop a resource that returns this for any action.
N/A
8
OCF_RUNNING_MASTER
The resource is running in Master mode.
soft
9
OCF_FAILED_MASTER
The resource is in Master mode but has failed. The resource will be demoted, stopped and then started (and possibly promoted) again.
soft
other
NA
Custom error code.
soft

Although counterintuitive, even actions that return 0 (aka. OCF_SUCCESS) can be considered to have failed.