PRIMECLUSTER
For backup operation in a cluster system, note the following points that do not apply to regular operation:
If failover occurs while running a backup command, you must secure consistency by using swstsrsemtch (Resource match command) as a recovery measure.
You must perform backup operation on the active server of the userApplication because AdvancedCopy Manager is placed in the userApplication and operates as part of said userApplication .
You cannot make a backup from a standby node or another userApplication .
PRIMECLUSTER
Note the following points if a file system has been created on a transaction volume and the file system has been registered as a cluster resource:
Change the backup pre-processing so that the transaction volume is not unmounted. Refer to "A.2 Pre-processing and Post-processing of Backup" for information about changing backup pre-processing.
It is not possible to restore data using swstrestore (Restore execution command) during transaction operations. To restore data on the volume, either copy the data using the "dd" command, or mount the backup volume and copy the necessary data. Alternatively, perform the procedure described in "11.1.7.1 Backup and restoration during the stoppage of a cluster".
If a file system has been created on a transaction volume, and the file system has been registered as a cluster resource, use the following procedure to back up and restore data.
Follow the procedure below to perform backup/restore.
Switch userApplication to Maintenance mode.
# hvutil -m on userApplication |
Unmount the transaction volume (this is mandatory to backup or restore a transaction volume in the file system).
If the transaction volume was unmounted, then make sure that the cluster resources of the transaction volume are Offline (wait until the return value of the command is 0):
# hvassert -s <transaction_volume> <cluster_resource_name> Offline |
Perform backup or restore
# /opt/FJSVswsts/bin/swstbackup Device-Name Device-Name swstbackup completed or # /opt/FJSVswsts/bin/swstrestore Device-Name Device-Name swstrestore completed |
If the transaction volume was unmounted, then mount it back.
Make sure that the cluster resources of the transaction volume are Online (wait until the return value of the command is 0):
# hvassert -s <transaction_volume> <cluster_resource_name > Online |
Stop the Maintenance mode for the userApplication.
# hvutil -m off userApplication |
Start synchronization processing.
# /opt/FJSVswsts/bin/swststartsync Device-Name Device-Name swststartsync completed |
Check the equivalency maintenance status.
Swith userApplication to Maintenance mode.
# hvutil -m on userApplication |
Unmount the transaction volume (this is mandatory to backup/restore a transaction volume in the file system).
If the transaction volume was unmounted , then make sure that the cluster resources of the transaction volume are Offline (wait until the return value of the command is 0):
# hvassert -s <transaction_volume> <cluster_resource_name> Offline |
Perform backup.
# /opt/FJSVswsts/bin/swstbackup Device-Name Device-Name swstbackup completed |
If the transaction volume was unmounted, then mount it back.
Make sure that the cluster resources of the transaction volume are Online (wait until the return value of the command is 0):
# hvassert -s <transaction_volume_cluster_resource_name> Online |
Stop Maintenance mode for userApplication.
# hvutil -m off userApplication |
Note
In either procedure, if the transaction volume is unmounted, then the pre-processing and post-processing scripts will not be executed (they are only executed when the transaction or replication source volumes are mounted).
Take this into accoutn if the applicable parts of the pre-processing and post-processing scripts are being customized.
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 transaction 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:
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 <replication_vol> Offline|Online <max_wait_time(secs)> |
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)".
PRIMECLUSTER
When a userApplicationto which AdvancedCopy Manager belongs is operating, backup operation is enabled only on the active node. The standby node environment is not ready (to provide necessary resources) for backup operation, thus disabling backup operation. Likewise, if the userApplicationhas been stopped, the environment is not ready and disables backup operation.
However, only when the userApplicationhas been stopped is backup operation enabled by temporarily arranging the minimum essentials.
Note
When transactions in scalable operation are handled together, only stop userApplicationin scalable operation; do not stop userApplicationfor Storage Server (or Storage Management Server) transactions.
Enabling backup operation disks (transaction volume and backup volume to operate) allows you to perform backup operation in the same way as for regular operations.
If a backup operation disk cannot be enabled, you cannot perform backup operation while user applications in scalable operation are stopped.
If any of the following types of shared disks cannot be enabled (i.e., set online or mounted in a system), backup operation is disabled:
Shared disk for AdvancedCopy Manager shared data
Backup operation disk (transaction volume/backup volume to operate)
The following operations are not allowed in backup operation:
Backup/restoration through GUI
Manipulation for backup operation from a Storage Management Server (host specification with the "-h" option)
Addition or deletion of a transaction volume/backup volume, or change in policy
To execute a display command for backup management to a Storage Management Server transaction that also functions as a Storage Server transaction, you must specify options for the command. For details on the display command for backup management, see the "10.2 Backup Management Commands".
Perform backup operation while a userApplicationis stopped by taking the following steps:
Confirm that the userApplicationhas been stopped on both nodes.
For details on how to stop a userApplication, see the PRIMECLUSTER manual.
Log in to the node on which you want to make a backup through telnet, for example.
You cannot use the logical IP address. Directly use a node that is operable by using the physical IP address.
Enable the shared disk.
Start (set online) the shared disk.
Mount the shared disk for AdvancedCopy Manager shared data.
When the transaction volume is a file system, mount it.
Note
Be sure to enable the shared disk from either node. Do not enable the shared disk from both nodes.
Perform backup operation.
You can perform backup operation in the same way as for regular operations for cluster operation.
You can use swstrestore (Restore execution command) to perform restoration.
Release all the shared disks you enabled in Step 3.
Unmount the file systems you mounted.
Stop (set offline) the shared disk.
Start (set online) the userApplication.
Start the userApplication, if necessary.
For details on how to start a userApplication, see the PRIMECLUSTER manual.