cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

need command to find backup images with its size

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

Tags (2)
1 Solution

Accepted Solutions
Highlighted
Accepted Solution!

Re: need command to find backup images with its size

10 Replies
Highlighted
Accepted Solution!

Re: need command to find backup images with its size

Highlighted

Re: need command to find backup images with its size

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.

 

Highlighted

Re: need command to find backup images with its size

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.

Highlighted

Re: need command to find backup images with its size

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.

Highlighted

Re: need command to find backup images with its size

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.

 

Highlighted

Re: need command to find backup images with its size

Where is the figure of 80TB coming from?

Highlighted

Re: need command to find backup images with its size

try adding a date from option to your bpimmedia command:

-d 01/01/1970 00:00:00

Highlighted

Re: need command to find backup images with its size

80 TB is the used disk pool size.i am seeing it from Devices: --Diskpools

 

Highlighted

Re: need command to find backup images with its size

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 }'

 

Highlighted

Re: need command to find backup images with its size

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.