Top
ETERNUS SF AdvancedCopy Manager V15.1 Operation Guide
ETERNUS

9.1.8 Notes on replication in a clustered system

SynfinityCLUSTER or PRIMECLUSTER

For replication operation in a clustered system, note the following points that do not apply to regular operation:

SynfinityCLUSTER

Note the following points if a file system has been created on a copy source volume and the file system has been registered as a clustered system resource.

PRIMECLUSTER 4.1A30 or later

Note the following points if a file system has been created on a copy source volume and the file system has been registered as a clustered system resource.

Follow the procedure below to perform replication.

Snapshot-type replication procedure using AdvancedCopy Manager in a PRIMECLUSTER environment
  1. Switch userApplication to Maintenance mode.

    # hvutil -m on userApplication
  2. Unmount the replication source volume (this is mandatory to replicate a replication source volume in the file system).

  3. If the replication source volume was unmounted, then make sure that the cluster resources of the volume are Offline (wait until the return value of the command is 0):

    # hvassert -s <replication_source_volume> <cluster_resource_name> Offline
  4. Perform replication.

    # /opt/FJSVswsrp/bin/swsrpmake <from_volume_name> <to_volume_name>
    FROM=<from_volume_name> TO=<to_volume_name> swsrpmake completed
  5. If the replication source volume was unmounted, then mount it back.

  6. Make sure that the cluster resources of the replication source volume are Online (wait until the return value of the command is 0):

    # hvassert -s <replication_source_volume> <cluster_resource_name> Online
  7. Stop Maintenance mode for userApplication.

    # hvutil -m off userApplication
Synchronous replication procedure using AdvancedCopy Manager in a PRIMECLUSTER environment
  1. Start synchronization processing.

    # /opt/FJSVswsrp/bin/swsrpstartsync <from_volume_name> <to_volume_name>
    FROM=<from_volume_name> TO=<to_volume_name> swsrpstartsync completed
  2. Check the equivalency maintenance status.

  3. Switch userApplication to Maintenance mode.

    # hvutil -m on userApplication
  4. Unmount the replication source volume (this is mandatory to replicate a replication source volume in the file system).

  5. If the replication source volume was unmounted, then make sure that its cluster resources are Offline (wait until the return value of the command is 0):

    # hvassert -s <replication_source_volume> <cluster_resource_name> Offline
  6. Perform replication.

    # /opt/FJSVswsrp/bin/swsrpmake <from_volume_name> <to_volume_name>
    FROM=<from_volume_name> TO=<to_volume_name> swsrpmake completed
  7. If the replication source volume was unmounted, then mount it back.

  8. Make sure that the cluster resources of the replication source volume are Online (wait until the return value of the command is 0):

    # hvassert -s <replication_source_volume> <cluster_resource_name> Online
  9. Stop Maintenance mode for userApplication.

    # hvutil -m off userApplication

Note

  • In either procedure, if the replication source volume was unmounted, then the pre- and post-processing scripts will not be executed (they are only executed when the transaction or replication source volumes are mounted).
    If the applicable parts of the pre- and post-processing scripts are being customized, take this point into account.

  • The cluster detector detects the status of cluster resources either periodically or asynchronously. Therefore, it may take a few moments for the cluster resource status to be reflected, depending on the system load, and on the timing of mounting/unmounting the replication source volume. This means that the status may not be able to be checked using the hvassert command.
    Due to this fact, note the following about the timing of using hvassert to check the cluster resource status:

    1. Once the mounting/unmounting of the file system of a cluster FSystem resource has finished, only use hvassert after the time elapsed is equal to or greater than the cluster resource monitoring interval.

      You can specify the maximum time to wait until the cluster reaches the desired status by using hvassert with the -w option:

      # hvassert -w <replic_src_vol> <cluster_res_name> Offline|Online <max_wait_time(secs)>
    2. When using hvassert with the -w option, the system load and cluster resource reflection processing time must also be taken into account.
      Due to that, make sure to specify a value that suits the system operating environment, purpose, and requirements.

In PRIMECLUSTER 4.2, the default monitoring interval for the PRIMECLUSTER Fsystem resource is 10 seconds - check the default value for your version.
For details on the hvassert command, refer to the "PRIMECLUSTER Installation and Administration Guide", section "hvassertt(1M)".


VERITAS Cluster Server

For replication in a clustered system, note the following points that do not apply to regular operation:


9.1.8.1 Replication during the stoppage of a cluster

SynfinityCLUSTER or PRIMECLUSTER

When a cluster service (userApplication) to which AdvancedCopy Manager belongs is operating, replication operation is enabled only on the active node. The standby node environment is not ready (to provide necessary resources) for replication operation, thus disabling replication operation. Likewise, if the cluster service (userApplication) has been stopped, the environment is not ready and disables replication operation.
However, only when the cluster service (userApplication) has been stopped is replication operation enabled by temporarily arranging the minimum essentials.

Note

  • When transactions in scalable operation are handled together, only stop cluster service (userApplications) in scalable operation; do not stop cluster service (userApplications) for Management Server transaction and Managed Server transactions.
    Enabling replication operation disks (source volume/destination volume to operate) allows you to perform replication operation in the same way as for regular operations.
    If a replication operation disk cannot be enabled, you cannot perform replication operation while a cluster service (userApplications) in scalable operation is stopped.

  • If any of the following types of shared disks cannot be enabled (i.e., set online or mounted in a system), replication operation is disabled.

    • Shared disk for AdvancedCopy Manager shared data

    • Replication operation disks (source volume/destination volume to operate)

  • The following operations are not allowed in replication operation:

    • Manipulation for replication operation from a Management Server (host specification with the -h option)

    • Addition or deletion of an original/replica volume

    • Inter-server replication without the -m option specified

  • To execute a display command for replication management to a Management Server transaction that also functions as a Managed Server transaction, you must specify options for the command. For details on the display command for replication management, refer to the "8.4 Replication Management Commands".

Perform replication operation during stoppage of a cluster service (userApplication) by taking the following steps:

  1. Confirm that the cluster service (userApplication) has been stopped on both nodes.
    For details on how to stop a userApplication, refer to the SynfinityCLUSTER or PRIMECLUSTER manual.

  2. Log in to the node on which you want to perform replication operation through telnet, for example.
    You cannot use the logical IP address. Directly use a node that is operable by using the physical IP address.

  3. Enable the shared disk.
    Start (set online) the shared disk.
    Mount the shared disk for AdvancedCopy Manager shared data.
    When the original volume and replica volume have been mounted as file systems for operation, mount the volumes.

    Note

    Be sure to enable the shared disk from either node. Do not enable the shared disk from both nodes.

  4. In the environment variable SWSTGNODE, set the logical node name for the relevant task.
    Set the environment variable as shown below.

    <Execution example>

    # SWSTGNODE=logical-node-name
    # export SWSTGNODE
  5. Perform replication operation.
    You can perform replication operation in the same way as for regular operations for cluster operation.
    You can also perform restoration from the replica volume to the original volume.

  6. Release all the shared disks you enabled in Step 3.
    Unmount the file systems you mounted.
    Stop (set offline) the shared disk.

  7. Start (set online) the cluster service (userApplication).
    Start the userApplication, if necessary.
    For details on how to start a cluster service (userApplication), refer to the SynfinityCLUSTER or PRIMECLUSTER manual.


VERITAS Cluster Server

When a service group to which AdvancedCopy Manager belongs is operating, replication is enabled only on the active node. The standby node environment is not ready (to provide necessary resources) for replication, and replication is, therefore, disabled. Likewise, if the service group has been stopped, the environment is not ready and disables replication.
However, replication is temporarily enabled when the service group has been stopped.

Note

  • If any of the following types of shared disks cannot be enabled (i.e., set online or mounted in a system), replication is disabled.

    • Shared disk for AdvancedCopy Manager shared data

    • Replication operation disks (source volume/destination volume to operate)

  • The following operations are not allowed in replication:

    • Manipulation for replication from a Management Server (host specification with the -h option)

    • Addition or deletion of an original/replica volume

    • Inter-server replication without the -m option specified

  • To execute a display command for replication management to a Management Server transaction that also functions as a Managed Server transaction, you must specify options for the command. For details on the display command for replication management, refer to "8.4 Replication Management Commands".

Perform replication during stoppage of the service group by taking the steps below.

  1. Confirm that the service group has been stopped on both nodes.
    For details on how to stop a service group, refer to the VERITAS Cluster Server manual.

  2. Log in (for example, through Telnet) to the node on which you want to perform replication.
    You cannot use the logical IP address. Use a node that is operable via the physical IP address.

  3. Enable the shared disk.
    Start (set online) the shared disk.
    Mount the shared disk for AdvancedCopy Manager shared data.
    When the original volume and replica volume have been mounted as file systems for operation, mount the volumes.

    Note

    Be sure to enable the shared disk from either node. Do not enable the shared disk from both nodes.

  4. In the SWSTGNODE environment variable, set the logical node name for the relevant task.
    Set the environment variable as shown below.

    <Execution example>

    # SWSTGNODE=logical-node-name
    # export SWSTGNODE
  5. Perform replication.
    You can perform replication in the same way as for regular operations in a cluster environment.
    You can also perform restoration from the replica volume to the original volume.

  6. Release all the shared disks you enabled in Step 3.
    Unmount the file systems you mounted.
    Stop (set offline) the shared disk.

  7. Start (set online) the service group.
    Start the service group, if necessary.
    For details on how to start a service group, refer to the VERITAS Cluster Server manual.