|
|
Utility to visualize Resource Group and Resource Dependencies and AffinitiesThe Open HA Cluster utilities available from this project page are released under the Common Development and Distribution License (CDDL) Version 1.0. Solaris Cluster Express did improve a lot with the new command line interface and the updated Solaris Cluster Manager Browser User Interface (BUI). The BUI has a Topology view for resource groups and resources in order to visualize the various dependencies and affinities the cluster framework offers. It is also a good idea to document a cluster configuration carefully. For that purpose an online view within a BUI is not always helping. And sometimes you want to see all dependencies/affinities within one graph. Fortunately the cluster framework does offer the scha_cmds(1HA) API, which makes it possible to retrieve all informations out of the cluster and use them e.g. in shell scripts. And there are already tools available as open source which do a great job in visualizing graphs. One tool I selected is Graphviz, which is available for a lot of platforms, including Solaris. The Companion Software CD for Solaris does provide a ready to install package for SPARC and x86. The cluster2dot shell script extracts the necessary informations out of the cluster framework and creates two files, one for the resource groups with dependencies and various affinities, and one for the resouces with the various dependencies. The files contain the output ready for the dot language consumed by Graphviz. You can browse the source online, presented through OpenGrok. The script will create two files for further use:
Both files can then be used as input files for the dot command within the graphviz tools, e.g.:
$ dot -Tps /tmp/${CLUSTERNAME}-resources.dot -o ${CLUSTERNAME}-resources.ps
to create a postscript file to visualize the dependencies.
Here you can see some example outputs, in this case converted into png files. You can click on the images to enlarge them for better view.
|