Sun Cluster Data Services Developer's Guide for Solaris OS

Testing HA Data Services

This section provides suggestions about how to test a data service implementation in a highly-available environment. The test cases are suggestions and are not exhaustive. You need access to a test-bed Sun Cluster configuration so that the testing work does not affect production machines.

Test your HA data service in non-global zones on a single node rather than on all nodes in the cluster. Once you determine that your data service works as expected in the non-global zones, you can then test it on the entire cluster. Even if it's ill-behaved, a HA data service that runs in a non-global zone on a node probably will not perturb the operation of data services that are running in other zones or on other nodes.

Test that your HA data service behaves correctly in all cases where a resource group is moved between physical hosts. These cases include system crashes and the use of the clnode command. Test that client machines continue to get service after these events.

Test the idempotence of the methods. For example, replace each method temporarily with a short shell script that calls the original method two or more times.