how to Change retention

Bharanij

ADSM.ORG Member
Joined
Jun 18, 2016
Messages
159
Reaction score
2
Points
0
PREDATAR Control23

HI Guys,

i having issue i have 15 tapes now every thing if full now i need help for retain

i need data should exist till 20days on tapes like

1 day backup should deleted on 21 day from them tape for free space.

pls find the current details


Code:
*** ---> Q COPYGROUP * * * STANDARD TYPE=BACKUP
**************************************************


Policy    Policy    Mgmt      Copy      Version- Version-  Retain  Retain
Domain    Set Name  Class     Group      s Data   s Data    Extra    Only
Name                Name      Name        Exists  Deleted Versions Version
--------- --------- --------- --------- -------- -------- -------- -------
DIR2TAPE  ACTIVE    STANDARD  STANDARD         2        1       30      60
DIR2TAPE  STANDARD  STANDARD  STANDARD         2        1       30       1
STANDARD  ACTIVE    STANDARD  STANDARD         2        1       30      60
STANDARD  STANDARD  STANDARD  STANDARD         2        1       30      60


**************************************************
*** ---> Q COPYGROUP * * * STANDARD TYPE=ARCHIVE
**************************************************


Policy        Policy        Mgmt          Copy           Retain
Domain        Set Name      Class         Group          Version
Name                        Name          Name         
---------     ---------     ---------     ---------     --------
more...   (<ENTER> to continue, 'C' to cancel)

DIR2TAPE      ACTIVE        STANDARD      STANDARD           365
DIR2TAPE      STANDARD      STANDARD      STANDARD           365
STANDARD      ACTIVE        STANDARD      STANDARD           365
STANDARD      STANDARD      STANDARD      STANDARD           365

Fixed output so it's readable
 
Last edited by a moderator:
PREDATAR Control23

First, do you want this for both domains?
Second do you want to keep the number of versions the same?

You would need to first update the copygroup for each domain you want modified: HELP UPDATE COPYGROUP
If you only want to change RETEXTRA and possibly RETONLY. Read the help on update copygroup if you need to understand what each do.

Then validate the policy for each domain you modified: HELP VALIDATE POLICY
Then activate the policy for each domain you modified: HELP ACTIVATE POLICY

NOTE: Since you are only keeping 2 versions, you only have 2 different versions. So for files that change daily, you only have today's and yesterday's version. For files that rarely change, you have the most recent version (active), plus one previous(inactive) for up to 30 days (or 21 if you change it). You may want to read this to understand how retention works: https://www-304.ibm.com/support/docview.wss?uid=swg21224145

By the way, you should not base your retention on your storage capacity, but instead size your capacity based on your retention requirements. The business dictates how long backups need to be kept.
 
PREDATAR Control23

hi,

thank you for the reply

1. I need only for this domain:- DIR2TAPE

2. 1st day data should stay 20days and it should be deleted after 21st day

Daily backup will be 500GB to 600GB we are taking every day full backup (here we are not using compress format or incremental backup),we have only 15 tapes we what to reuse. so pls advice how many version should i keep and what are setting need to done.

Version- s Data Exists-
Version- s Data Deleted-
Retain Extra Version-
Retain Only Version-

Thank you in advance.
 
PREDATAR Control23

Well, I have bad news for you, with your current retention and backup strategy, you are only keeping 2 days because you only have 2 versions.

So if you really want to keep data for 21 days, you would need:
Code:
Versions Data Exists-  no limit
Versions Data Deleted- no limit
Retain Extra Version-  21
Retain Only Version-   1

VERY IMPORTANT: this will use 10 times more space than you use now because now you will have a version for each day (21 days) instead of just keeping 2 versions for 21 days. You need to read and understand this: https://www-304.ibm.com/support/docview.wss?uid=swg21224145 Especially Case A and Case B.

You should really consider using incremental forever with the same retention as I put above, it will use a lot less space because not all files change daily, so you would not have multiple versions of the same files.
 
PREDATAR Control23

Hi MarClant,

Thank you for the reply again,

we have 2.5 TB *15 tapes now and which are full used if i use the above setting will old data's will get lost? i have take old backups in offline storage anyway that wont be any issue if "yes" means

and more thing i have try to update copygroup and getting below command

"ANR1585E UPDATE COPYGROUP: Policy set ACTIVE cannot be modified"

Note:- As per application team they inform to take full backup.

thank you in advance.
 
PREDATAR Control23

we have 2.5 TB *15 tapes now and which are full used if i use the above setting will old data's will get lost?
No, in fact you will have more data. 21 days/versions instead of 2 days/versions.

ANR1585E UPDATE COPYGROUP: Policy set ACTIVE cannot be modified
upload_2016-12-21_9-43-8.png

Note:- As per application team they inform to take full backup.
Is it files or databases? For databases, I would understand, for files the people that do fulls all the time typically don't understand how TSM incremental forever works, this is why I recommended that you or the decision makers read this:
https://www.ibm.com/developerworks/...ckups_how_the_retention_settings_work?lang=en
 
PREDATAR Control23

Hi MarClant,

Versions Data Exists- unlimited
Versions Data Deleted- 1
Retain Extra Version- 21
Retain Only Version- 21

So i need to update like below not like above right

Versions Data Exists- no limit
Versions Data Deleted- no limit
Retain Extra Version- 21
Retain Only Version- 1


for update copy group

can i update below policy set " STANDARD" ? and copy and active ?

Thank you in advance
 

Attachments

  • updatecommand.jpg
    updatecommand.jpg
    38.4 KB · Views: 6
PREDATAR Control23

Hi Marclant,

Thank you for reply,

1. I had word with my application team about incremental backup what they were telling is that application (Sybase) will compress the live data and take backup (filename.dmp). That backup will fall in one mount point form there we are taking backup to tape so they don’t want to take incremental backup.

2. if I update copy group->Validate->Activate will there be two active policy set? if “yes” how to deactivate old one ?

3. Once I update done how to remove my old data’s which is laying 10days back or inactive data’s? This may be wired I used to delete volume and make that tape as scratch (this not a right way but I need solution)

Kindly advice.

I will update back once my configure and update done.

Thank you in advance.
 
PREDATAR Control23

That backup will fall in one mount point form there we are taking backup to tape so they don’t want to take incremental backup.
If you are backing up a single file daily and that file changes daily, incremental or selective(full), it makes no difference because the file will be backed up anyway. It would be different if backing up a million files and only 10% of them change, then incremental makes more sense
2. if I update copy group->Validate->Activate will there be two active policy set?
No, only one Active policy per domain
3. Once I update done how to remove my old data’s which is laying 10days back or inactive data’s?
Run expiration daily and data older than the retention period will be deleted.
 
PREDATAR Control23

Hi Marclant,

I have updated and after expiration my old data's got deleted and all tapes went to scratch.

Pls find the attached Jpg file

its been great help from you side and once again i thanking you for support.
 

Attachments

  • updatecommand1.jpg
    updatecommand1.jpg
    75.8 KB · Views: 12
Top