To set up a Storage Server transaction, use the procedure below.
Restart the system.
Restart the primary node 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
"Changes to be made"
/opt/FJSVswstf/cluster/smgr_vstart_OK
exit 1 -> exit 110
/opt/FJSVswstf/cluster/smgr_vstop_OK
exit 0 -> exit 100
* Make this change on all the primary nodes and secondary nodes where the cluster is being set up.
Check the preparations.
Check each item of "3.3 Confirmation of items," for the Service Group to be set up.
Mount the shared disk on the primary node.
Mount the shared disk for AdvancedCopy Manager shared data on the primary node.
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 name of the node at which the user service group is started
Register port numbers
Register the port number for the transaction communication daemon, 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.
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_hpvcs -k Primary -m /STGAGTMNT -n nodeAGT -s agent_service |
Refer to "8.2.6 stgclset_hpvcs (HP edition VERITAS Cluster Server environment setup command)" for command details.
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_hpvcs -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.
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. # |
Unmount the shared disks on the primary node.
Unmount the shared disk for AdvancedCopy Manager shared data on the primary node.
Mount the shared disks on the secondary node.
Mount the shared disk for AdvancedCopy Manager shared data on the secondary node.
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_hpvcs -k Secondary -m /STGMGRDISK |
Refer to "8.2.6 stgclset_hpvcs (HP edition VERITAS Cluster Server environment setup command)" for command details.
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_hpvcs -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.
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. # |
Unmount the shared disks on the secondary node.
Unmount the shared disk for AdvancedCopy Manager share data on the secondary node.
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 you plan to use the logical IP address that is already in use for transactions, 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 is already 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 already set up into the User Service Group). In the sequence of system priority, active node has priority over standby node.
# hagrp -add STGMGRSRV # hagrp -modify STGMGRSRV SystemList node1 0 node2 1 # hagrp -modify STGMGRSRV AutoStartList node1 node2 |
Register applications.
A resource (ie, an 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 a stop 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 is already 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 |
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 start 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 |
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 an 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
Create the environment for Storage Server transactions.
Use the 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 (HP)".