Link to home
Start Free TrialLog in
Avatar of Santiago videla
Santiago videla

asked on

how to calculate the total amount of data on the storage pools TSM

Hi everyone.
                         i need to calculate the total amount of data residing on my tsm storage pools and the % of data on the tape volumes.

Thanks in advance.
Avatar of max_the_king
max_the_king

Hi,

this one will tell you the total amount in GB of your pools, and an estimate on both average occupation of each tape and maximum:

SELECT stgpool_name AS "Storage Pool ", CAST(COUNT(*) as DECIMAL(6,0)) AS "Volumes", CAST(SUM(est_capacity_mb/1024/100*pct_utilized) AS DECIMAL(8,3)) AS "GB in Pool", CAST(AVG(est_capacity_mb/1024/100*pct_utilized) AS DECIMAL(7,3)) AS "Average/Tape", CAST(MAX(est_capacity_mb/1024) AS DECIMAL(7,3)) AS "Max/Tape" FROM VOLUMES WHERE status NOT IN ('PENDING', 'EMPTY') GROUP BY stgpool_name ORDER BY 3 desc

hope this helps
max
Avatar of Santiago videla

ASKER

max,
          i got two tsm environment, same version but differrent sizes. in the small one the command worked perfect but in the big one i got the following warning:

ANR0162W Supplemental database diagnostic information: -1: 22003: -413 ([IBM] [CLI Driver] [DB2 / NT64] SQL0413N An overflow occurred during numeric data type conversion.
  ) .STATE = 22003


looks like the amount of data to process is too big. am i right?

please can you help me with this?

thanks in advance!!!!
ASKER CERTIFIED SOLUTION
Avatar of max_the_king
max_the_king

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
max thanks both qerys worked  just perfect!!!!