I have a Windows cluster that hosts various file shares on cluster disks. I realized today that I can report on usage of the cluster disk and the node it is running on in a single graph. In my case it works because I have 2 nodes in the cluster, and a graph has 4 lines so a given graph has 2 x 2 disk lines appearing on it.
So I have the cluster IP and the 2 nodes in my hosts.cfg file. I then went into the cluster directory in the RRD storage area and created some symlinks. Due to the FNPATTERN matching of the [disk] graph I then see [disk] graphs in my trends report for the cluster. A given daily graph may only show one colour, but by clicking on the graph, the longer timescales show the data lines from each node as the resource moves between them over time.
[disk] FNPATTERN disk(.*).rrd TITLE Disk Utilization YAXIS % Full DEF:p at RRDIDX@=@RRDFN@:pct:AVERAGE LINE2:p at RRDIDX@#@COLOR@:@RRDPARAM@ -u 100 -l 0 GPRINT:p at RRDIDX@:LAST: \: %5.1lf (cur) GPRINT:p at RRDIDX@:MAX: \: %5.1lf (max) GPRINT:p at RRDIDX@:MIN: \: %5.1lf (min) GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
So my symlink hack was just this:
% cd <RRDpath>/fs1clusv.ausport.gov.au % for d in M N O Q R S ; do for h in 1 2 ; do ln -s ../fs1n${h}sv.ausport.gov.au/disk,${d}.rrd disk,${d},fs1n${h}sv.rrd; done; done
If you had more nodes in your cluster you could create extra dummy files to make it up to 4 graphs for 1 drive, or tweak the number of graphs that appear on a graph, maybe with a custom graph definition.
This trick could be used for other similar HA scenarios - e.g. load balancer, etc.
Sample graphs below.
monthly graph monthly graph
David.
-- David Baldwin - Senior Systems Administrator (Datacentres + Networks) Information and Communication Technology Services Australian Sports Commissionhttp://ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 david.baldwin at ausport.gov.au 1 Leverrier Street Bruce ACT 2617 Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE
Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au