Top
PRIMECLUSTER  Installation and Administration Guide4.3

F.1 Registering a Procedure Resource

This section explains how to register a procedure resource.

Take the following steps to register a procedure resource on all nodes where the procedure resource needs to be registered.

Operation Procedure:

  1. Log in with the system administrator authority to the node in which the procedure resource is to be registered.

  2. Execute the "clsetproc(1M)" command to register the state transition procedure.

    See

    For details on the "clsetproc(1M)" command, see the manual page.

    Example

    To register the "/var/tmp/program" state transition procedure as program (file name) to the BasicApplication class

    # /etc/opt/FJSVcluster/bin/clsetproc -c BasicApplication -m program /var/tmp/program

    Point

    To overwrite a state transition procedure that is already registered, specify the -o option.

  3. Registering the procedure resource

    Execute the "claddprocrsc(1M)" command to register the procedure resource.

    See

    For details on the claddprocrsc(1M) command, see the manual page for claddprocrsc (1M).

    Example

    When registering a procedure resource, this procedure resource has to meet the following conditions;

    • The resource key of the procedure resource is SDISK,

    • The procedure name is program,

    • This procedure resource uses the state transition procedure registered in the BasicApplication class,

    • The procedure resource is registered in the node (NODE1), and

    • The state transition procedure receives the requests of START RUN AFTER and STOP RUN BEFORE

      # /etc/opt/FJSVcluster/bin/claddprocrsc -k SDISK -m program -c BasicApplication -s NODE1 -K AFTER -S BEFORE