Hi AlexeyF
Use the post you provided gives the "protected" space. This is what NetBackup thinks is stored in the pool as per the NetBackup catalog. To get the sum of the storage (in KB) use this modified version of the command (after a while it will spit out a single figure):
bpimmedia -dp DiskPoolName -stype PureDisk -l | awk '{ if ( $1 == "IMAGE" ) print $3 }' | xargs -n 1 bpimagelist -l -backupid | awk '{ sum += $19 } END { print sum }'
For the pool use the crstats command to show both the consume pool usage and what the pool considers it is protecting. If the protected figures are way out, then you probably have orphaned images in the pool - which is best solved by opening a support case.
This is the type of output from the crcontrol command:
# /usr/openv/pdde/pdcr/bin/crstats --convert-size 2> /dev/null
Storage Pool Raw Size=4.0TiB
Storage Pool Reserved Space=164.1GiB
Storage Pool Size=3.8TiB
Storage Pool Used Space=1.7TiB
Storage Pool Available Space=2.1TiB
Catalog Logical Size=43.8TiB
Catalog files Count=235909
Space Allocated For Containers=1.7TiB
Deduplication Ratio=26.2
#
The things to note - the Catalog Logical Size should match (reasonably closely to the sum of the output from the bpimmedia output. The Storage Pool Used Space is what is being used in the pool (this will match the file system usage),
The crstats output can also be obtained by looking at the storage server in the GUI, and examining the properties.
Cheers
David