Backups in Weeknow Directory Not Expiring - How to Manually Expire

  • 7019425
  • 12-Jul-2013
  • 30-Aug-2017

Environment


Reload (all versions)

Situation


Profiles are set to limit the number of Standard backups to keep to 14 days; however, there are 22 backups in ../[profile]/backups/weeknow directory.  How do I get them deleted?

Resolution


When the option to limit the number of backups to keep is enabled for a profile, Reload runs a process called GRE_PO_EXPIRE.  It is launched by the GRE_DBS process once it has completed.  See the end of this article for a sample of what gets written to the agent.log when it runs.

As a troubleshooting measure, you can run this process by itself to see if it deletes the older backups that extend beyond the limit set for the profile:
1.  From a console prompt, go to /opt/beginfinite/reload/lib/code.

2.  Launch the GRE_PO_EXPIRE process by typing: ./gre_po_expire -p [profile] -e
It doesn't close when it's done.  You'll see it read "REMOVE_TRASH_ITEMS" and list the items.  When it is done deleting older backups, you'll see a line that reads, "ls: cannot access ./*-DELETING*: No such file or directory"

At this point, you can hit CTRL-C to cancel it.

On the following day, see if the backups have expired properly.  If not, consider re-installing Reload

Another troubleshooting option would be to delete the profile and re-create it.  Deleting a profile does NOT delete the backups.  Be sure to only delete the profile when no backup jobs are running for it and only after confirming that no open mounts exist.  Type "reloadj -q" at a command prompt.  If no jobs are running, type "dreload stop", which will clear any leftover mounts (if they exist) from previous backup jobs.  It does this for ALL mounts, so be sure not to run this command when backups are running, even for other profiles.

Agent Log Sample Showing GRE_PO_EXPIRE Process
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Current Number of Standard Backups = 14
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Backup Directory Structure: satjul06-1
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Backup Directory ID: 1373126374
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Parent Backup Directory Structure: weeknow
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Standard Backup to Expire: /data/beg2po/backups/weeknow/satjul06-1
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Move /data/beg2po/backups/weeknow/satjul06-1 to Trash Location: /data/beg2po/trash
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - mv /data/beg2po/backups/weeknow/satjul06-1 /data/beg2po/trash/satjul06-1-DELETING
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Delete Standard Backup at this Location: /data/beg2po/trash/satjul06-1-DELETING
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Index references have not been removed
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Reference information does exist
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - [GRE_PO_EXPIRE] Removing all references to backup satjul06-1
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - GRE_TEXT_EDITOR_REMOVE "1373126374" "/data/beg2po/backups/weeknow/gre_data/gre_spurge_index.bin"
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - GRE_TEXT_EDITOR_REMOVE "1373126374" "/data/beg2po/gre_data/index/gre_master_spurge_index.bin"
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - GRE_TEXT_EDITOR_REMOVE_EXACT "satjul06-1" "/data/beg2po/gre_data/index/gre_master_day_index.bin"
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - GRE_TEXT_EDITOR_REMOVE_EXACT "satjul06-1" "/data/beg2po/backups/weeknow/gre_data/gre_day_all_index.bin"
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - GRE_TEXT_EDITOR_REMOVE "satjul06-1" "/data/beg2po/backups/weeknow/gre_data/gre_day_index.bin"
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - GRE_TEXT_EDITOR_REMOVE "1373126374" "/data/beg2po/backups/weeknow/gre_data/gre_day_spurge_index.bin"
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - GRE_TEXT_EDITOR_REMOVE "1373126374" "/data/beg2po/gre_data/index/gre_master_day_spurge_index.bin"
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Backup Directory Structure: sunjul07-2
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Backup Directory ID: 1373191163
[I] DATE: Mon_Jul_08 TIME: 12:14:02 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 12:14:03 - Backup Directory Structure: sunjul07-1
[I] DATE: Mon_Jul_08 TIME: 12:14:03 - Backup Directory ID: 1373212786
[I] DATE: Mon_Jul_08 TIME: 12:14:03 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 12:14:03 - Backup Directory Structure: monjul08-1
[I] DATE: Mon_Jul_08 TIME: 12:14:03 - Backup Directory ID: 1373277588
[I] DATE: Mon_Jul_08 TIME: 12:14:03 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 13:04:25 - Current Number of Standard Backups = 14
[I] DATE: Mon_Jul_08 TIME: 13:04:25 - Backup Directory Structure: sunjul07-2
[I] DATE: Mon_Jul_08 TIME: 13:04:25 - Backup Directory ID: 1373191163
[I] DATE: Mon_Jul_08 TIME: 13:04:25 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 13:04:26 - Backup Directory Structure: sunjul07-1
[I] DATE: Mon_Jul_08 TIME: 13:04:26 - Backup Directory ID: 1373212786
[I] DATE: Mon_Jul_08 TIME: 13:04:26 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 13:04:26 - Backup Directory Structure: monjul08-1
[I] DATE: Mon_Jul_08 TIME: 13:04:26 - Backup Directory ID: 1373277588
[I] DATE: Mon_Jul_08 TIME: 13:04:26 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Current Number of Standard Backups = 14
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Backup Directory Structure: sunjul07-2
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Backup Directory ID: 1373191163
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Backup Directory Structure: sunjul07-1
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Backup Directory ID: 1373212786
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Week Directory ID: 1373105545
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Backup Directory Structure: monjul08-1
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Backup Directory ID: 1373277588
[I] DATE: Mon_Jul_08 TIME: 13:04:40 - Week Directory ID: 1373105545

Additional Information

This article was originally published in the GWAVA knowledgebase as article ID 2174.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.