rajeev karamchedu

Technology and Professional Services Director, currently part of a very exciting and talented team of technology/data management solution provider, IronBrick

2 responses to “average file size”

  1. Blake Golliher

    You can use filestats on the filer to get filesize information from a filer. It’s on a volume basis, so if you have a lot of volumes, I see a for loop in your future. The syntax looks like this.

    filestats sizes * snapshot hourly.0 volume vol03

    That will give you counters for every unique filesize in volume vol03, in snapshot hourly.0. Filestats only runs against a snapshot.

    If you wanted more in buckets, you could do this.

    filestats ages 1k 2k 3k 4k 5k 6k 7k 8k 9k 10k snapshot hourly.0 volume vol03

    I warn you if you run this you will loose your console until the command is done running. This can take anywhere from a few minutes to a few hours (not suprisingly) based off the number of files you have. I therefor recommend running doing this via rsh. :)

    You could graph this fairly easily I think, might be nice to have a running average or plot things over the lifespan of a filer.

Leave a Reply