Video Screencast Help
Protect Your POS Environment Against Retail Data Breaches. Learn More.

How do you manually run the image cleanup job in NBU 7.1?

Created: 06 Nov 2012 • Updated: 07 Nov 2012 | 5 comments
This issue has been solved. See solution.

I believe by default the image cleanup is run every 12 hours, is there a way to manually kick this process off from within the NBU 7.1 GUI?

Comments 5 CommentsJump to latest comment

susindran.suruli's picture

I know we can do the cleanup from command prompt and dont no wheather we have option from GUI.

From command line :-

 

# /usr/openv/netbackup/bin/bpimage -cleanup -allclients

Marianne's picture

You cannot do it from the GUI. 

It can be done from cmd with these two commands:

bpexpdate -deassignempty -force
bpimage -cleanup -allclients

(both in .../netbackup/bin/admincmd)

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

SOLUTION
Allan Slavens's picture

Thanks for the replies, to confirm, both are safe to run and will only expire images that are ready?

IE) If I have piece of media with a data expiration date/time of 11/6/2012 9:33pm and I run one of the commands you listed at say 11/6/2012 2:30pm, will it actually expire that image? Do I have to specify the media ID?

What Im trying to accomplish is some space recovery as Ive started running out space on my Data Domain (VTL). Ive already changed my retention on my SLP's but I may have waited to long to do this to rectify my issue.

 

Thanks in advance.

Marianne's picture

bpexpdate -deassignempty will only deassign media if all images have already expired.

If you run the command at 2:30pm, it will therefore not expire images/media that will expire after this time (e.g. 9:33pm). 

The only way to get the 9:33pm tape(s) to expire is to manually expire it with bpexpdate:
bpexpdate -d 0 -m <media-id> -force

On the other hand - I have seen bpexpdate failing when images are under SLP control...

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links