01-28-2020 07:09 AM
Hi ALL,
we have a disk pool where the duplication happens.
I need a command to find the copy 2 images on this pure disk disk pool with each image size.
I have searched the report section of NBU but its not showing the Image size.
NBU 8.0
Linux
Solved! Go to Solution.
01-28-2020 07:56 AM
Have you tried @RiaanBadenhorst 's suggestion found in https://vox.veritas.com/t5/NetBackup/need-to-fetch-report-for-all-images-on-a-Data-domain-with-size/...
01-28-2020 07:56 AM
Have you tried @RiaanBadenhorst 's suggestion found in https://vox.veritas.com/t5/NetBackup/need-to-fetch-report-for-all-images-on-a-Data-domain-with-size/...
01-28-2020 09:39 PM
Disk pool utilisation is showing 80 TB full.
But when I am counting the images on the disk pool it is showing only 25 TB utilised.
01-29-2020 01:15 AM - edited 01-29-2020 01:15 AM
Some of the images in the disk pool might not be copy number 2, some of them could have any other copy number.
You need to show us the exact command(s) and/or take us through the exact step(s) that you used to count-up and size-up the images... which you believe are all of the images in the disk-pool.
01-29-2020 01:21 AM - edited 01-29-2020 01:21 AM
Hi SDO,
Disk pool is MSDP (not appliance).Space is coming from netapp.
Only Copy2 is there on the Disk pool.(Used for duplication only)
I ran below command to check the size of the images on this disk pool:
./bpimmedia -dp DISKPOOL_1 -stype PureDisk -l -legacy | awk '{ if ( $1 == "IMAGE" ) print " ./bpimagelist -backupid "$4" -l" }'|sh | awk '{ if ( $1 == "IMAGE" ) print $6,$19 }'
and after that i counted all the size of the images in KB.
01-29-2020 02:26 AM
Your command will only list copy 1.
Extract from Command Reference Guide:
-cn copy_number
Copy number (1 or 2) of a backup ID. The default is copy 1. This option is used only in combination with -spanpools.
01-29-2020 02:47 AM
Where is the figure of 80TB coming from?
01-29-2020 02:53 AM
try adding a date from option to your bpimmedia command:
-d 01/01/1970 00:00:00
01-29-2020 05:07 AM
80 TB is the used disk pool size.i am seeing it from Devices: --Diskpools
01-29-2020 10:37 PM
try adding a date from option to your bpimmedia command:
-d 01/01/1970 00:00:00
After adding the above command.....still the same result.
./bpimmedia -dp DISKPOOL1 -stype PureDisk -l -legacy -d 01/01/1970 00:00:00 -cn 2| awk '{ if ( $1 == "IMAGE" ) print " ./bpimagelist -backupid "$4" -l"}'|sh | awk '{ if ( $1 == "IMAGE" ) print $6,$19 }'
01-29-2020 11:28 PM
Seems -cn option is ignored if not used with -spanpools
-cn copy_number
Copy number (1 or 2) of a backup ID. The default is copy 1. This option is used only in combination with -spanpools.