Top
ETERNUS SFAdvancedCopy Manager 14.0 Operator's Guide forCluster Environment

4.8.2 Customization Procedure

To set up a Storage Server transaction, use the procedure below.

  1. Restart the system.

    Restart the primary and secondary nodes. If the system is restarted in an extension of the installation process of AdvancedCopy Manager, proceed to step 2.

    Note

    • If VERITAS Cluster Server 5.0 is used, modify the following files:

      • /opt/FJSVswstf/cluster/smgr_vstart_OK

      • /opt/FJSVswstf/cluster/smgr_vstop_OK

    • "Contents to be changed"

      • /opt/FJSVswstf/cluster/smgr_vstart_OK

        exit 1 -> exit 110

      • /opt/FJSVswstf/cluster/smgr_vstop_OK

        exit 0 -> exit 100

    * Make these changes on all primary nodes and secondary nodes where the cluster is being set up.

  2. Check the preparations.

    Check each item of "3.3 Confirmation of items," for the Service Group to be set up.

  3. Mount the shared disk on the primary node.

    Mount the shared disk for AdvancedCopy Manager shared data on the primary node.

  4. Stop the transaction.

    To add a Storage Server transaction to an existing Service Group by using the VERITAS Cluster Server function, stop the applicable Service Group.

    For information on how to stop the user Service Group, see the "VERITAS Cluster Server User's Guide".

    # hagrp -offline User-Service-Group  -sys  system-name

    system-name: The node name by which the user service group is started

  5. Register port numbers

    Register the port number for the transaction communication daemon, prepared in advance, in /etc/services under the service name below. Use an OS command, such as vi, to register it in /etc/services.

    • Transaction communication daemon: stgxfws_Logical-Node-Name

    Note

    Register the same port number on the primary node and all secondary nodes.

  6. Execute the cluster setup command on the primary node.

    On the primary node, execute the cluster setup command shown below after blocking other users from accessing the shared disk for AdvancedCopy Manager shared data.

    Example

    # /opt/swstorage/bin/stgclset_aixvcs -k Primary -m /STGAGTMNT -n nodeAGT -s agent_service

    Refer to "8.2.7 stgclset_aixvcs (AIX edition VERITAS Cluster Server environment setup command)" for command details.

  7. Check the setup object.

    Information about the logical node specified by the command is displayed. After confirming the displayed information, press the Enter key.

    # /opt/swstorage/bin/stgclset_aixvcs -k Primary -m /STGAGTMNT -n nodeAGT -s  agent_service
    AdvancedCopy Manager settings are as follows.
            Cluster system : VERITAS Cluster Server
            Node type      : Primary
            Mount point    : /STGAGTMNT
            Node name      : nodeAGT
            Service        : agent_service
            Function       : Server
    Do you want to continue with setting of AdvancedCopy Manager cluster? [default:y]

    To interrupt the cluster environment setting process, enter "n". To continue the setting process, enter "y" or press the Enter key.

  8. Finish the cluster setup command on the primary node.

    The window indicating cluster setup command completion opens.

    swstf8100 The cluster setup of the primary node has been completed. Next, create the cluster environment of the secondary node.
    #
  9. Unmount the shared disks on the primary node.

    Unmount the shared disk for AdvancedCopy Manager shared data on the primary node.

  10. Mount the shared disks on the secondary node.

    Mount the shared disk for AdvancedCopy Manager shared data on the secondary node.

  11. Execute the cluster setup command on the secondary node.

    On the secondary node, execute the cluster setup command shown below after blocking other users from accessing the shared disk for AdvancedCopy Manager shared data.

    Example

    # /opt/swstorage/bin/stgclset_aixvcs -k Secondary -m /STGMGRDISK

    Refer to "8.2.7 stgclset_aixvcs (AIX edition VERITAS Cluster Server environment setup command)" for command details.

  12. Check the setup object.

    Information about the logical node that was specified by the command is displayed. After confirming the displayed information, press the Enter key.

    # /opt/swstorage/bin/stgclset_aixvcs -k Secondary -m /STGAGTMNT
    
    AdvancedCopy Manager settings are as follows.
            Cluster system : VERITAS Cluster Server
            Node type      : Secondary
            Mount point    : /STGAGTMNT
            Node name      : nodeAGT
            Service        : agent_service
            Function       : Server
    Do you want to continue with setting of AdvancedCopy Manager cluster? [default:y]

    To interrupt the cluster environment setting process, enter "n". To continue the setting process, enter "y" or press the Enter key.

  13. Finish the cluster setup command on the secondary node.

    The window indicating cluster setup command completion opens.

    swstf8101 The cluster setup of the secondary node has been completed.
    #
  14. Unmount the shared disks on the secondary node.

    Unmount the shared disk for AdvancedCopy Manager share data on the secondary node.

  15. Create and register a Service Group.

    Use the VERITAS Cluster Service functions to create and register a User Service Group.

    Add the following types as AdvancedCopy Manager resources:

    • Application

      For StartProgram, specify "/opt/FJSVswstf/cluster/clproc/vcsStart_Logical-Node-Name".

      For StopProgram, specify "/opt/FJSVswstf/cluster/clproc/vcsStop_Logical-Node-Name".

      For MonitorProgram, specify "/opt/FJSVswstf/cluster/clproc/vcsMoni_Logical-Node-Name".

    • MountPoint

      Register the shared disk for AdvancedCopy Manager share data.

    • IP

      Register the logical IP address for AdvancedCopy Manager. If the logical IP address already in use for transactions is to be used, a new logical IP address need not be registered.

    Applications should set a dependency relationship after the MountPoint and IP in order to become online.

    Refer to the "VERITAS Cluster Server User's Guide" for information concerning user service groups and the creation and registration of resources.

    Examples of using VERITAS Cluster Server commands to create and register user service groups and resources are shown below.

    In these examples, the User Service Group name is set to "STGMGRSRV", the active system node name is set to "node1", the standby system node name is set to "node2", and the resource (application) name is set to "AdvancedCopy_Manager_appl".

    VCS config file is saved under another file-name. (Execute at all nodes.)

    # mv  /etc/VRTSvcs/conf/config/main.cf /etc/VRTSvcs/conf/config/main.cf.bk

    Place VCS into the read-write enabled state.

    # haconf -makerw

    Set the list of systems used when failover occurs.

    If it has already been set for the User Service Group, this setting is not required.

    The following commands perform a check.

    # hagrp -display STGMGRSRV -attribute SystemList
    # hagrp -display STGMGRSRV -attribute AutoStartList

    A User Service Group is newly created (this is not necessary when it has already been set up into the User Service Group). As the system priority sequence, the active node has priority over the standby node.

    # hagrp -add STGMGRSRV
    # hagrp -modify STGMGRSRV SystemList node1 0 node2 1
    # hagrp -modify STGMGRSRV AutoStartList node1 node2

    Register applications.

    A resource (application) is registered into a User Service Group.

    # hares -add AdvancedCopy_Manager_appl Application STGMGRSRV

    Place resources into the enabled state.

    # hares -modify AdvancedCopy_Manager_appl Enabled 1

    Specify a super-user (root) who starts StartProgram, StopProgram,and MonitorProgram.

    # hares -modify AdvancedCopy_Manager_appl User root

    Specify a start application.

    When the logical node name is nodeagt, the path of the application for starting is "/opt/FJSVswstf/cluster/clproc/vcsStart_nodeagt."

    # hares -modify AdvancedCopy_Manager_appl StartProgram /opt/FJSVswstf/cluster/clproc/vcsStart_nodeagt

    Specify a stop application.

    When the logical node name is nodeagt, the path of the application for stopping is "/opt/FJSVswstf/cluster/clproc/vcsStop_nodeagt."

    # hares -modify AdvancedCopy_Manager_appl StopProgram /opt/FJSVswstf/cluster/clproc/vcsStop_nodeagt

    Specify a monitor application.

    When the logical node name is nodeagt, the path of the monitor application is "/opt/FJSVswstf/cluster/clproc/vcsMoni_nodeagt."

    # hares -modify AdvancedCopy_Manager_appl MonitorProgram /opt/FJSVswstf/cluster/clproc/vcsMoni_nodeagt

    The mount information on the shared disk for AdvancedCopy Manager share data is registered.

    In this example, the resource (mount) name is set to "AdvancedCopy_Manager_mount", and the mount point of the shared disk for AdvancedCopy Manager share data is set to "/STGMGRDISK".

    Register the resource into the User Service Group.

    # hares -add AdvancedCopy_Manager_mount Mount STGMGRSRV

    Place the resource into the enabled state.

    # hares -modify AdvancedCopy_Manager_mount Enabled 1

    A mount point is set as a resource.

    # hares -modify AdvancedCopy_Manager_mount MountPoint /STGMGRDISK

    Specify a block device to be mounted.

    In this example, the block device of the shared disk is set to "/dev/dsk/c2t0d0s4".

    # hares -modify AdvancedCopy_Manager_mount BlockDevice /dev/dsk/c2t0d0s4

    Specify a file system type for the shared disk.

    In this example, the file system type is set to vxfs.

    # hares -modify AdvancedCopy_Manager_mount FSType vxfs

    Register a logical address.

    If the logical address has already been set for the User Service Group, this setting is not required.

    In this example, the resource (IP address) name is set to "sybase_ip".

    A resource is registered into a User Service Group.

    # hares -add sybase_ip IP STGMGRSRV

    Place the resource into the enabled state.

    # hares -modify Sybase_ip Enabled 1

    Specify a device.

    In this example, the device is set to "hme0".

    # hares -modify Sybase_ip  Device  hme0

    Specify an address.

    In this example, the IP address is set to "10.10.10.10".

    # hares -modify sybase_ip  Address  "10.10.10.10"

    Specify the dependency of the resource.

    # hares -link AdvancedCopy_Manager_appl AdvancedCopy_Manager_mount
    # hares -link AdvancedCopy_Manager_appl sybase_ip

    Reflect the VCS setting and set VCS into the read only mode.

    # haconf -dump -makero
  16. Start the AdvancedCopy Manager and Transaction.

    Use the VERITAS Cluster Service functions to start the new User Service Group or the User Service Group stopped in step 4.

    Refer to the "VERITAS Cluster Server User's Guide" for the User Service Group starting method.

    An example of starting the User Service Group using VERITAS Cluster Server commands is given below.

    In this example, the User Service Group name is set to "STGMGRSRV", and the active system node name is set to "node1".

    # hagrp -online STGMGRSRV -sys node1
  17. Back up the environment.

    As a safeguard against accidental loss of data or file corruption, back up the following environments.

    • Data on the shared disk for AdvancedCopy Manager shared data

      Use the OS command such as cp to back up the following directories on the shared disk for AdvancedCopy Manager shared data:

      • Mountpoint-of-shared-disk-for-AdvancedCopy-Manager-shared-data/etc

      • Mountpoint-of-shared-disk-for-AdvancedCopy-Manager-shared-data/var

  18. Create the environment for Storage Server transactions.

    Use the Web GUI of AdvancedCopy Manager to create the environment for Storage Server transactions.

    Note

    Create the environment for the Storage Server transactions with reference to the "ETERNUS SF AdvancedCopy Manager Operator's Guide (AIX)".