Unsolved

This post is more than 5 years old

13 Posts

5218

July 23rd, 2010 01:00

delete savesets from AFTD without cloning/staging automatically

Hi,

I use two AFTD devices for backup some test systems.

These system are configured with browse & retention time = 2 days.

The savesets should be deleted from the AFTD & media database after the retention period latest after 7 days without clonig/staging to other volumes.

How I can configure/implement this to have an automatic process?

I tried with a staging policy, but I need always to stage the data to another pool before recovering the space...

Thanks in advance for your suggestions.

regards

Michael

736 Posts

July 23rd, 2010 02:00

Hi,

You shouldn't need to configure anything other than the retention policy for these savesets.  Once they have passed their retention date (and there is no dependant savesets) then the savesets will be deleted automatically from the AFTD. If this is not happening fast enough and you want to force it to be deleted in your test environment, you can run the commands nsrmm -d -S [ssid] - to delete the saveset from the medai-db and nsrim -X to have all expired or deleted savesets physically deleted from the AFTD.

-Bobby

123 Posts

July 23rd, 2010 02:00

Hi Michael,

     An AFTD works the following way.

When an AFTD runs out of disk space, the current backup is suspended. This

message appears:

Waiting for more available space on filesystem device-name

Immediately after this message appears, the action that is associated with the

Filesystem Full — Recover adv_file Space notification takes place. By default, the

action for this notification uses the nsrim command to delete expired save sets. If

enough space has been cleared, the backup continues. If the recycle setting for the

volume is manual, however, then the expired save sets are not removed from the

volume. The AFTD deletes expired save sets depending on the retention policy and the recycle

setting. If sufficient storage space has not been cleared after a 10-minute period from

the start of the initial deletion of the expired save sets, the action that is associated

with the Filesystem Full—Waiting for adv_file Space notification takes place.

Regards,

Arun

36 Posts

July 23rd, 2010 07:00

Hi Michael
I agree with bobby that Once the savesets have passed their retention date (and there is no dependant savesets) then the savesets will be deleted automatically from the AFTD and the space reclaimed.

Additionally if this is not happening you may also use : nsrstage -v -C -V
The advantage with -C option is that you dont have to stage the data to another pool. A brief description for -C syntax is as follows:

-C = Instructs nsrstage to perform a volume cleaning operation. Scans a volume for save sets with no entries in the media data base and recovers their space. Space for recyclable and aborted save sets are also recovered from the volume with the save set entries removed from the media data base. You can perform this operation on adv_file and file type volumes.

13 Posts

July 28th, 2010 05:00

Many thanks for your explanations!

Top