Top
PRIMECLUSTER  Installation and Administration Guide 4.5
FUJITSU Software

D.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 the 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" command to register the state transition procedure.

    See

    For details on the "clsetproc" command, see the manual page.

    Example

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

    # /etc/opt/FJSVcluster/bin/clsetproc -c BasicApplication -m program /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" command to register the procedure resource.

    See

    For details on the "claddprocrsc" command, see the manual page for claddprocrsc .

    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