cancel
Showing results for 
Search instead for 
Did you mean: 

need command to find backup images with its size

noazara
VIP
   VIP   

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

1 ACCEPTED SOLUTION
10 REPLIES 10

noazara
VIP
   VIP   

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.

 

sdo
Moderator
Moderator
Partner    VIP    Certified

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.

noazara
VIP
   VIP   

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.

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

 

sdo
Moderator
Moderator
Partner    VIP    Certified

Where is the figure of 80TB coming from?

sdo
Moderator
Moderator
Partner    VIP    Certified

try adding a date from option to your bpimmedia command:

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

noazara
VIP
   VIP   

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

 

noazara
VIP
   VIP   

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

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.