Top
PRIMECLUSTER  Installation and Administration Guide 4.4
FUJITSU Software

6.11 Notes When Setting Cmdline Resources

Users need to create a script for the following cases when: starting or stopping ISV applications and user application in line with the userApplication state transition, and switching the userApplication status in line with the stopping of the applications.
Set the created scripts as Cmdline resources, and then set those resources in the userApplication.
This chapter also describes the example of the scripts and notes when creating them.

The following three script types can be set to Cmdline:

Besides, the Start script and Stop script are called as the Online script and Offline script respectively.

The following table indicates attributes can be set to the Cmdline resources.

Table 6.2 Attributes of the Cmdline resource

Attribute

Outline

NULLDETECTOR

If an attribute value is set to "Yes," Check script is disabled. The resource state is determined only depending on what Online or Offline script of the Cmdline resource shows when each script is executed in conjunction with Online or Offline processing of the userApplication. In this case, the resource state is unmonitored.

Moreover, all values of other Flags are set to "No."
Below indicates the relationship between the Check script and the default value:

  • The Check script is set
    The default value is "No."

  • The Check script is not set
    The default value is "Yes."

ALLEXITCODES

If the attribute is set to "No," the exit code of the Check script is interpreted as follows:

0: Online
Other than 0: Offline

If the attribute is set to "Yes," the exit code is interpreted as follows.

0: online
1: offline
2: faulted
3: unknown
4: standby
5: onlinewarning
6: offlinefaulted

The default value is "No."

* Do not use them as return values within the script because the values displayed in 3, 5, 6 and other than the values above indicate a special status.
They are only allowed when PRIMECLUSTER products specified.

LIEOFFLINE

If the attribute is set to "Yes" and the Stop script is not set, the Offline processing of the resource is interpreted as it was processed successfully. However, for the resource status, the current status is displayed.
If the Stop script is specified, the failure of the script triggers a fault processing.
The default value is "No."

CLUSTEREXCLUSIVE

If the attribute is set to "Yes," the resource needs to be Online on one node at the same time in a cluster system. If the resource becomes Online on two or more nodes at the same time because of a script problem and so on, the state of userApplication to which this resource belongs becomes Inconsistent.
The default value is "Yes."
It is recommended to set "Yes."

AUTORECOVER

If the attribute is set to "Yes," it tries to restart on the same node before userApplication is failed over in the even to a resource failure. This attempt is performed just once.
The default value is "Yes."

MONITORONLY

This attribute controls whether the status of userApplication becomes Faulted or not when the resource becomes Faulted. If this attribute is set to "Yes," userApplication does not become Faulted even if the resource becomes Faulted.

Set "No" to at least one Cmdline resource that is registered in userApplication.
The default value is "No."

STANDBYCAPABLE

If the attribute is set to "Yes," RMS sets the StandbyCapable attribute to "1" for this resource.

For detailed information regarding this attribute, see "12 Appendix - Attributes" of "PRIMECLUSTER Reliant Monitor Services (RMS) with Wizard Tools Configuration and Administration Guide."
The default value is "No."

REALTIME

If the attribute is set to "No," the Check script is started in the TS class.
If the attribute is set to "Yes," the Check script is started in the RT class.
Note that the highest priority is assigned to the process started in the RT class in the operating system. Thus, the bugs of the script or commands may give a large effect on system performance.
The default value is "No."

TIMEOUT

This attribute sets a timeout interval (seconds) to start and stop programs.
The default value is "300."

Note

When PRIMECLUSTER products are not specified, do not change ReturnCodes of the Cmdline resource.