Top
ETERNUS SF Storage Cruiser V15.3/ AdvancedCopy Manager V15.3 Cluster Environment Setup Guide
ETERNUS

14.2.2 Deletion Procedure

To delete the cluster environment, use the following procedure:

  1. Delete the node.

    Use the AdvancedCopy Manager command to delete the node.

  2. Stop the transaction.

    Stop the transaction to be deleted using the VERITAS Cluster Server function.

    Refer to "VERITAS Cluster Server User's Guide" for stopping a user service group.

    An example of stopping the user service group by the command of VERITAS Cluster Server is as follows.

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

    # hagrp -offline STGMGRSRV  -sys  node1
  3. Delete resources.

    Use the VERITAS Cluster Server function to delete the AdvancedCopy Manager resources registered for the target transaction. If Service Groups have been created using only AdvancedCopy Manager resources, delete the whole Service Group.

    Refer to "VERITAS Cluster Server User's Guide" for deleting a user service group and a resource.

    The user service group by the command of VERITAS Cluster Server and the example of deletion of a resource are as follows.

    In this example, a user service group name is set to "STGMGRSRV".

    Moreover, each resource name is carried out as follows.

    • Resource name (Application): AdvancedCopy_Manager_appl

    • Resource name (MountPoint of the shared disk for AdvancedCopy Manager shared data): AdvancedCopy_Manager_mount

    • Resource name (IP): sybase_ip

    VCS config table is saved by another file-name.

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

    Place VCS into the read-write enabled state.

    # haconf -makerw

    Delete a resource (Application, MountPoint).

    # hares -delete AdvancedCopy_Manager_appl
    # hares -delete AdvancedCopy_Manager_mount

    When not using resource (IP) in a transaction, delete it.

    # hares -delete sybase_ip

    When deleting a transaction, delete a user service group.

    # hagrp -delete STGMGRSRV

    Write the VCS configuration to disk change the mode to read-only.

    # haconf -dump -makero
  4. Mount the shared disk on the secondary node.

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

  5. Execute the cluster unsetup command on the secondary node.

    On the secondary node, execute the following command after blocking other users from accessing the shared disk for AdvancedCopy Manager shared data:

    Example:

    # /opt/swstorage/bin/stgclunset_aixvcs -n nodeagt

    Refer to "16.3.2 stgclunset_aixvcs (AIX version VERITAS Cluster Server environment cancel command)" for command details.

  6. Check the objects to be deleted.

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

    # /opt/swstorage/bin/stgclunset_aixvcs -n nodeagt
    AdvancedCopy Manager settings were as follows. 
            Cluster system : VERITAS Cluster Server
            Node type      : Secondary
            Mount point    : /STGMGRDISK
            Node name      : nodeagt
            Service        : STGMGRSRV
            Function       : Server
            Number         : 2
            MODE           : Normal
    Do you want to continue with un-setting of AdvancedCopy Manager cluster? [default:y]

    To interrupt cluster environmental unsetup processing, input "n". To continue processing, input "y", or press the Enter key.

    Note

    The number of nodes that are not carrying out cluster unsetup command is output to "Number". For a secondary node, it must be two.

  7. The cluster unsetup command is executed on the secondary node.

    The window indicating cluster unsetup command completion opens.

    swstf8103 The cluster deletion of the secondary node has been completed. Next, delete the cluster environment of the primary node.
    #
  8. Dismount the shared disk on the secondary node.

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

  9. Mount the shared disk on the primary node.

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

  10. Execute the cluster unsetup command on the primary node.

    On the primary node, execute the following command after blocking other users from accessing the shared disk for AdvancedCopy Manager shared data:

    Example:

    # /opt/swstorage/bin/stgclunset_aixvcs -n nodeagt

    Refer to "16.3.2 stgclunset_aixvcs (AIX version VERITAS Cluster Server environment cancel command)" for command details.

  11. Check the objects to be deleted.

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

    # /opt/swstorage/bin/stgclunset_aixvcs -n nodeagt
    AdvancedCopy Manager settings were as follows.
            Cluster system : VERITAS Cluster Server
            Node type      : Primary
            Mount point    : /STGMGRMNT
            Node name      : nodeagt
            Service        : STGMGRSRV
            Function       : Server
            Number         : 1
            MODE           : Normal
    Do you want to continue with un-setting of AdvancedCopy Manager cluster? [default:y]

    To interrupt cluster environmental unsetup processing, input "n". To continue processing, input "y", or press the Enter key.

    Note

    The number of nodes that are not carrying out cluster unsetup command is output to "Number". For a primary node, it must be one.

  12. The cluster unsetup command is executed on the primary node.

    The window indicating cluster unsetup command completion opens.

    swstf8102 The cluster deletion of the primary node has been completed.
    #
  13. Dismount the shared disk on the primary node.

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

  14. Delete port numbers.

    Delete the following service defined in /etc/services during cluster setup. Delete the services on the primary node and the secondary node. Use an OS command such as vi to delete the service from /etc/services.

    • Communication daemon for transactions: stgxfws_logicalNodeName

  15. Start the transaction.

    Start the transaction which stopped in step 2, using VERITAS Cluster Server function. This operation is not necessary if the Service Group was deleted in step 3.

    Refer to "VERITAS Cluster Server User's Guide" for starting a user service group.

    # hagrp -online User-Service-Group -sys systemName

    systemName : The node name to be started a user service group.