02-15-2021 05:35 AM - edited 02-15-2021 05:36 AM
I backup all my images to a data domain at retention 00 - set to 4 weeks.
Then duplicate to tape at retention level 13 set to 8 weeks.
I am tight on space on the data domain and want to set retention 00 to 2 weeks and recalculate ALL images on the data domain. Both VTL and disk targets.
I know how to select images by tape id and recalculate, but can I simply issue a command to recalulate ALL images at retention 00?
Like "bpexpdate -recalculate -copy 1 -ret 00 -force" or "bpexpdate -recalculate -ret 00 -force"
I am concerned this will SET all image copy 1 to retention 00 - which would be bad since I know I have tapes that have been recopied and are now copy number 1.
Thanks in advance!
Now that I think about it, a command to recalculate all images at their retention value would work as well - do we have that?
Solved! Go to Solution.
02-15-2021 06:22 AM - edited 02-15-2021 06:23 AM
I'm not able to understand something:
@Genericus wrote:
Like "bpexpdate -recalculate -copy 1 -ret 00 -force" or "bpexpdate -recalculate -ret 00 -force"
I am concerned this will SET all image copy 1 to retention 00 - which would be bad since I know I have tapes that have been recopied and are now copy number 1.
Your backup to DD will create copy #1 on DD. The duplication from DD to tape will create copy #2 on tape.
Are there some other images which are on tape and are copy #1?
How about getting list of images on the DD using the folllowing and then changing the expiry date of those images only?
bpimmedia -stype DataDomain -dp <POOLNAME> >/tmp/NBU_Images.txt
Ref: bpimmedia 8.1.2
02-15-2021 08:26 AM
So looks like i have a solution that is a combination of scripts -
1. for each tape in the data domain vtl - list the images and bpexpdate -recalculate -ret 00
2. for each image in the bpimmedia -stype DataDomain run the bpexpdate -recalculate -ret 00
NOTE - these take a long time to run. Then I have to clean the data domain to recover the space.
02-15-2021 06:22 AM - edited 02-15-2021 06:23 AM
I'm not able to understand something:
@Genericus wrote:
Like "bpexpdate -recalculate -copy 1 -ret 00 -force" or "bpexpdate -recalculate -ret 00 -force"
I am concerned this will SET all image copy 1 to retention 00 - which would be bad since I know I have tapes that have been recopied and are now copy number 1.
Your backup to DD will create copy #1 on DD. The duplication from DD to tape will create copy #2 on tape.
Are there some other images which are on tape and are copy #1?
How about getting list of images on the DD using the folllowing and then changing the expiry date of those images only?
bpimmedia -stype DataDomain -dp <POOLNAME> >/tmp/NBU_Images.txt
Ref: bpimmedia 8.1.2
02-15-2021 06:27 AM - edited 02-15-2021 06:29 AM
02-15-2021 06:31 AM - edited 02-15-2021 06:54 AM
If you backup - you get image copy number 1. If you duplicate that you get image copy number 2. If you duplicate either copy 1 or 2 you get copy number 3. UNLESS - a copy expires. These copy numbers never change.
If you backup at 2 week retention and duplicate to 1 year retention, then 6 weeks later make an infinite copy - you will create copy 1 as infinite and the 1 year copy will retain copy number 2.
I have updated from LTO2 to LTO5, so all my oldest infinite backups have various copy numbers. Since I copied them to disk then to tape.
I have both disk and VTL targets on DD, I was wondering how to recalc the boost images. Looks like your command might work to find those.
bpimmedia -stype DataDomain -dp <POOLNAME> >/tmp/NBU_Images.txt
02-15-2021 07:00 AM
@Genericus wrote:
I am tight on space on the data domain and want to set retention 00 to 2 weeks
Just noticed the above. Because of the deduplicaition on the DD, the savings might not be that much after reducing retention. It will reduce your compression ration at least a bit.
Also, do not forget the start a manual cleanup after the retention change to actually gain the space on the DD. Still would suggest to start looking at expansion though.
02-15-2021 07:48 AM
02-15-2021 08:26 AM
So looks like i have a solution that is a combination of scripts -
1. for each tape in the data domain vtl - list the images and bpexpdate -recalculate -ret 00
2. for each image in the bpimmedia -stype DataDomain run the bpexpdate -recalculate -ret 00
NOTE - these take a long time to run. Then I have to clean the data domain to recover the space.
02-15-2021 08:30 AM
more complete #2
# nbdevquery -listdv -stype DataDomain
example: # nbdevquery -listdv -stype DataDomain
V_5_ DDve2_ddepcs-DP DataDomain dd_stu @aaaap 76.48 74.29 2 1 0 1 0 0 14 0
V_5_ DDve4-DP DataDomain StorageUnit1 @aaaar 256.83 255.65 0 1 0 1 0 0 14 0
Then add the @aaaa? to the bpimmedia command along with the -disk option
Example: # bpimmedia -l -mediaid @aaaap