Visualizing Solaris Cluster Resource Group and Resouce dependencies/affinities
By tf on Apr 09, 2008
Solaris Cluster did improve a lot with the new command line interface and the updated Solaris Cluster Manager Browser User Interface (BUI) within the 3.2 and 3.2 02/08 release. 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.
I developed a shell script which 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. 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.
Let me know if you would find such a script useful! I plan to publish it under a freshly proposed OpenSolaris project for Open HA Cluster utilities - if I get the necessary approval that is