PRIMECLUSTER Installation and Administration Guide 4.1 (for Solaris(TM) Operating System)
Contents Index PreviousNext

Appendix F Registering, Changing, and Deleting State Transition Procedure Resources for SynfinityCluster Compatibility

F.2 Changing a Procedure Resource

This section explains how to change a procedure resource.

mark1Changing a state transition procedure

Take the following steps to change the state transition procedure on all nodes where it needs to be changed.

mark3Operation Procedure:

  1. Log in with the system administrator authority to the node in which the state transition procedure is to be changed.
  2. Execute the "clgetproc(1M)" command to retrieve the state transition procedure.

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

    When retrieving a state transition procedure, this procedure resource has to meet the following conditions;
    • The state transition procedure is retrieved to the "/tmp" directory.
    • The file name registered in the BasicApplication class is program
    # /etc/opt/FJSVcluster/bin/clgetproc -c BasicApplication -f /tmp/program program
  3. Modifying the state transition procedure

    Using a text editor such as vi(1), modify the state transition procedure that was retrieved in Step 2.

  4. Registering the state transition procedure

    For instruction on registering the procedure, see Step 2 of "Registering a Procedure Resource."

mark1Changing registration information of a procedure resource

Take the following steps to change the registration information of the procedure resource on all nodes where the state transition procedure needs to be changed.

mark3Operation Procedure:

  1. Log in with the system administrator authority to the node in which the state transition procedure of the procedure resource is to be changed.
  2. Execute the "clsetprocrsc(1M)" command to change the registration information of the procedure resource.

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

    When adding the requests of START RUN BEFORE state transition to the procedure resource that meet the following conditions;
    • The resource key of the procedure resource is SDISK,
    • 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/clsetprocrsc -n SDISK -c BasicApplication -s NODE1 -K BEFORE,AFTER -S BEFORE

Contents Index PreviousNext

All Rights Reserved, Copyright (C) FUJITSU LIMITED 2005