Counting the # of disks in an aggregate

rmatsumoto
5,886 Views

I'm looking for a way to identify the number of disks in an aggregate and, if it's a flash-pool aggr, I want to be able to count the number of SSDs involved as well.  Is there a way to do this?

The goal is to figure out how many disks are in each aggr to assign them a possible "max ops" value to keep them from getting oversubscribed performance wise.

So I want to create something like:

aggr_name   flash_pool?  #_of_HDD     #_of_SDD     #_of_ops_actual     #_of_ops_possible

aggr1                n                   56               0                    2000                    7480

aggr2               y                    56          10                    4000                    31480

I hope the format above stays like it appears on my screen

At any rate, the closest I've come in identifying the number of disks in an aggregate is looking at the disk group member in the Inventory package, but the aggr name is enclosed within "filer name:/", followed by "/plexX/rgX' number(ex: filer1:/aggr1/plex1/rg0).  If this were a scripting language I'd just split by a delimiter;in this case I'd use "/", but I don't yet have enough Cognos-Fu to pull that off, and I'm not sure if that's the appropriate approach here.

Is there a simpler way to count the number of HDDs/SDDs in an aggregate(and know the type?  7200rpm, 10k, SDD)?

Thanks,

Dew