Visualizing Solaris Cluster Resource Group and Resouce dependencies/affinities

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.

<br>Resource group dependencies graph for the evans cluster
Figure 1: Resource dependencies graph for the evans cluster

Resource dependencies graph for the evans cluster
Figure 2: Resource dependencies graph for the evans cluster

Resource dependencies graph for the geo-muc1 cluster
Figure 3: Resource group dependencies graph for the geo-muc1 cluster

Graph to visualize resource dependencies for the geo-muc1 cluster - click to enlarge
Figure 4: Resource dependencies graph for the geo-muc1 cluster

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 :-)

Comments:

Post a Comment:
Comments are closed for this entry.
About

This Blog is about my work at Availability Engineering: Wine, Cluster and Song :-) The views expressed on this blog are my own and do not necessarily reflect the views of Sun and/or Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today