To delete the cluster environment, use the following procedure:
Point
For explanatory purposes, the <Examples of command execution> in this section use the following settings:
<Mountpoint-of-shared-disk-for-AdvancedCopy-Manager-shared-data> : /acmdata01
Logical node name : acmnode1
Delete the node.
Use the AdvancedCopy Manager command to delete the node.
Use the function of a clustered system to stop the transaction on the primary node.
Refer to your cluster software documentation for information on how to stop transactions.
Delete resources.
Delete the AdvancedCopy Manager resources registered for the target transaction.
Refer to your cluster software documentation for information on how to delete resources.
If the system is a Cascade topology or a Priority transfer, execute "Deletion procedure for secondary node" on the secondary node B.
Execute "Deletion procedure for secondary node" on the secondary node A.
Execute "Deletion procedure for primary node" on the primary node.
Deletion procedure for secondary node
For Managed Server transactions, mount the shared disk.
Mount the shared disk for the AdvancedCopy Manager shared data on the secondary node.
Execute the following commands in the given sequence:
Sequence of execution | Command | Type of server that requires command execution |
---|---|---|
1 | Management Server transactions | |
2 | clset_FJSVswsrp(set/cancel command for replication environment) | Management Server transactions |
3 | Management Server transactions | |
4 | Management Server transactions |
Example
For Management Server transactions
[root@m40002]# /opt/FJSVswstf/bin/StgDbSetup -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Secondary |
The StgDbSetup displays, a screen for confirming whether to delete the database is displayed.
Check the displayed contents, enter "y", and press the Enter key. For Managed Server transactions, the screen is not displayed.
+----------------------------------------------------------------+ | | | All of database environments of AdvancedCopy Manager | | will be deleted. | | | | [Notes] | | Once processing has started, all stored data is discarded. | | Make sure that the environment allows execution | | before proceeding. | | | +----------------------------------------------------------------+ Do you want to continue with processing? [y/n] ==> y |
[root@m40002]# /opt/FJSVswsrp/bin/clset_FJSVswsrp -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Secondary clset_FJSVswsrp completed [root@m40002]# /opt/FJSVswsts/bin/clset_FJSVswsts -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Secondary clset_FJSVswsts completed [root@m40002]# /opt/FJSVswstf/bin/clset_FJSVswstf -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Secondary clset_FJSVswstf completed |
For Managed Server transactions
[root@m40002]# /opt/FJSVswsrp/bin/clset_FJSVswsrp -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Secondary clset_FJSVswsrp completed [root@m40002]# /opt/FJSVswsts/bin/clset_FJSVswsts -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Secondary clset_FJSVswsts completed [root@m40002]# /opt/FJSVswstf/bin/clset_FJSVswstf -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Secondary clset_FJSVswstf completed |
Delete the symbolic links to the shared disk for AdvancedCopy Manager shared data.
Link target directory (symbolic link file) |
---|
/etc/opt/swstorage/logicalNodeName |
Link target directory (symbolic link file) |
---|
/var/opt/swstorage/logicalNodeName |
Example
[root@m40002]# rm /etc/opt/swstorage/acmnode1 [root@m40002]# rm /var/opt/swstorage/acmnode1 |
Edit the /opt/FJSVswstf/cluster/swcluster.ini file. Refer to "swcluster.ini" for information on how to edit.
For Management Server transactions, edit the /etc/opt/swstorage/swstg.ini file. Refer to "swstg.ini" for information on how to edit.
Delete port numbers.
Delete the following service defined in /etc/services during cluster setup. Use an OS command such as vi to delete it from /etc/services.
Communication daemon for transactions : stgxfws_logicalNodeName
For Managed Server transactions, unmount the shared disk.
Unmount the shared disks for the AdvancedCopy Manager shared data on the secondary node.
Deletion procedure for primary node
For Managed Server transactions, mount the shared disk.
Mount the shared disk for the AdvancedCopy Manager shared data on the primary node.
Execute the following commands in the given sequence:
Sequence of execution | Command | Type of server that requires command execution |
---|---|---|
1 | Management Server transactions | |
2 | clset_FJSVswsrp(set/cancel command for replication environment) | Management Server transactions |
3 | Management Server transactions | |
4 | Management Server transactions |
Example
For Management Server transactions
[root@m40001]# /opt/FJSVswstf/bin/StgDbSetup -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Primary |
The StgDbSetup displays, a screen for confirming whether to delete the database is displayed.
Check the displayed contents, enter "y", and press the Enter key. For Managed Server transactions, the screen is not displayed.
+----------------------------------------------------------------+ | | | All of database environments of AdvancedCopy Manager | | will be deleted. | | | | [Notes] | | Once processing has started, all stored data is discarded. | | Make sure that the environment allows execution | | before proceeding. | | | +----------------------------------------------------------------+ Do you want to continue with processing? [y/n] ==> y |
[root@m40001]# /opt/FJSVswsrp/bin/clset_FJSVswsrp -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Primary clset_FJSVswsrp completed [root@m40001]# /opt/FJSVswsts/bin/clset_FJSVswsts -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Primary clset_FJSVswsts completed [root@m40001]# /opt/FJSVswstf/bin/clset_FJSVswstf -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Primary clset_FJSVswstf completed |
For Managed Server transactions
[root@m40001]# /opt/FJSVswsrp/bin/clset_FJSVswsrp -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Primary clset_FJSVswsrp completed [root@m40001]# /opt/FJSVswsts/bin/clset_FJSVswsts -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Primary clset_FJSVswsts completed [root@m40001]# /opt/FJSVswstf/bin/clset_FJSVswstf -u -f /acmdata01/etc/opt/swstorage/clsetup.ini -t Primary clset_FJSVswstf completed |
Delete the symbolic links to the shared disk for AdvancedCopy Manager shared data.
Link target directory (symbolic link file) |
---|
/etc/opt/swstorage/logicalNodeName |
Link target directory (symbolic link file) |
---|
/var/opt/swstorage/logicalNodeName |
Example
[root@m40001]# rm /etc/opt/swstorage/acmnode1 [root@m40001]# rm /var/opt/swstorage/acmnode1 |
Edit the /opt/FJSVswstf/cluster/swcluster.ini file. Refer to "swcluster.ini" for information on how to edit.
Delete the directories in the shared disk for AdvancedCopy Manager shared data.
<Mountpoint-of-shared-disk-for-AdvancedCopy-Manager-shared-data>
+---/etc
| ---/opt
| ---/swstorage
+---/var
---/opt
---/swstorage |
For Management Server transactions, edit the /etc/opt/swstorage/swstg.ini file. Refer to "swstg.ini" for information on how to edit.
Delete port numbers.
Delete the following service defined in /etc/services during cluster setup. Use an OS command such as vi to delete it from /etc/services.
Communication daemon for transactions : stgxfws_logicalNodeName
For Managed Server, unmount the shared disks.
Unmount the shared disks for the AdvancedCopy Manager shared data on the primary node.
For Managed Server transactions, start up cluster transaction when using the stopped cluster transaction except for AdvancedCopy Manager.
Refer to your cluster software manual for information on how to start cluster transactions.