|
|
Testing Open HA Cluster, Geographic EditionThe geo module of the Open High Availability (Open HA) Cluster Automated Test Suite is the open-source version of the Geo-Cluster test harness. This test harness currently supports Sun StorageTek™ Availability Suite (AVS) data replication software. For more information or for complete documentation, refer to the Open HA Cluster Automated Test Suite User's Guide. For the most up-to-date build instructions, see the Building and Installing the Open HA Cluster Automated Test Suite page.
The following procedures explain how to run the Open HA Cluster Automated Test Suite to qualify your build of Open HA Cluster, Geographic Edition.
PrerequisitesBefore you run the geo test suite, ensure that you have met the following prerequisites.Cluster Hardware
Cluster Software
Test ServerThe SUNWscts (Open HA Cluster Automated Test Suite) package must be installed on the test server.How to Create the Test Request FileCreate a test request file of the geo-cluster configuration before you run the test suite.
How to Run the geo-avs Test Suite
# # Geo-Cluster Test Request File # NODENAME=pbric1 SEQUENCE=geo CLUSTER_1_NODE=pbric1 CLUSTER_1_FAILOVER_ADDRESS_1=breccia-1 CLUSTER_1_FAILOVER_ADDRESS_2=breccia-2 CLUSTER_1_FAILOVER_ADDRESS_3=breccia-3 CLUSTER_1_FAILOVER_ADDRESS_4=breccia-4 CLUSTER_1_DISK_1=d4 CLUSTER_1_DISK_2=d5 CLUSTER_2_NODE=phadar1 CLUSTER_2_FAILOVER_ADDRESS_1=hadar-1 CLUSTER_2_FAILOVER_ADDRESS_2=hadar-2 CLUSTER_2_FAILOVER_ADDRESS_3=hadar-3 CLUSTER_2_FAILOVER_ADDRESS_4=hadar-4 CLUSTER_2_DISK_1=d5 CLUSTER_2_DISK_2=d6 RAW_DEVICE_TYPE=sds DATA_VOL_SIZE=240 GEO_DELAY=6 PG_TIMEOUT=600Top How to Monitor Test ResultsTest result directory - The test result is located on the node where the run_geo command is started. It is in the /usr/scate/geo_results/sc_clusternode1_clusternode2/results/log.pid directory, where clusternode1 is the name of a node in the first cluster, and clusternode2 is the name of a node in the second cluster. When the test is finished, you can look at the summary and test log files under this test result directory.Test log files - If the summary file indicates that there are failures, you can go to the test log file to look further into the failures. Almost all command executions in the geo-avs test suite capture the output of the command executions and save the output in /var/tmp/geo* files in case of failures. So if a command fails, check the /var/tmp/geo* files to see the message that the command returned. Here is an example of a line in a test log file: 520|0 0 00017162 0 302|Nov 27 12:45:15 : COMMAND: /usr/scate/tset/geo/bin/check_geoadm_status_pg pg1 halite-1 "Configuration" "OK" /var/tmp/geoRabqHH 1 root phalite4 rsh, ret = 0The preceding example shows that command execution returned successfully (ret = 0). If ret were 1, you could look at the /var/tmp/geoRabqHH file, which is saved on the Sun Cluster Automated Test Environment (SCATE) server. Location of a test log file - To find out whether a /var/tmp/geo* file is on the SCATE server or one of the cluster nodes, check the third column of the output. The following information is taken from the previous example: 520|0 0 00017162In this example, the 000 prefix represents the SCATE server. Because this prefix indicates that the command was executed on the SCATE server, the /var/tmp/geo* files are located on the SCATE server. This prefix can be 001, 002, 003, and so forth. The prefix 001 indicates that the command was executed on TET_NODE_1 and the prefix 002 indicates that the command was executed on TET_NODE_2, and so forth. In some cases, the SCATE server issues a command to be run on a cluster node. In this test, the test log contains the following entry: 520|0 0 00013369 0 148|Dec 02 21:05:15 : run_remote: cmd=, node=Monitoring live logs - During test execution, you can monitor the test execution as it runs by viewing the live log located under the /usr/scate/geo_results/sc_clusternode1_clusternode2/results/0001e directory. You can run tail -f on the live log to view the latest output. If you kill a test manually, the live log is saved in the live_logs/ subdirectory of the test result directory. How to Cleaning Up After You Kill a Test ManuallyPerform all of the following tasks to clean up the geo-cluster configuration after you manually kill a test.
|