Hi,

For some time we have used a utility that came from this list or off the
'net somewhere called 'afsfree'. I don't know where it originally came
from but thanks to it's authors anyway. It's a Tcl/Tk script that
displays a bar chart of partition utilisation.

As an attempt to learn Tcl/Tk I have made some mods to it to do things
like list/examine/move volumes on a partition. I'm now getting ambitious
and would like change the bar chart to show the amount of space used by
RW RO and backup volumes, and to show the total quota allocated to all
volumes on each partition. This is not easy - afsfree currently uses
'vos partinfo' to determine how full each partition is. To get
information about each type of volume and it's max quota you would need
to use 'vos listvol -long' which takes much longer to execute and
produces verbose output that would need to be parsed by a perl script or
similar. Perhaps a better solution would be a C program to get and
format the required info from the AFS API.

Once you have got the numbers it is still not easy to do anything
sensible with them - RO volumes on the same server as the RW normally
don't occupy any real disk space, should the quota for backup volumes be
included in showing the total quota per partition etc.

Has anyone written any scripts or programs to do this kind of thing?
Does anyone have any suggestions about how you can sensibly show the
degree to which the quota per volume exceeds the physical partition
size?

All suggestions gratefully received.

Thanks,

Andy Haxby
Shell Research
Rijswijk
Netherlands.

Email: [EMAIL PROTECTED]

Note:

Modifications to the afsfree program have been made using Darwin
Evolutionary Methodology (DEM).

I f**ked about until it worked. :-)

Reply via email to