cancel
Showing results for 
Search instead for 
Did you mean: 

Netbackup 4.5 scratch media problem

gustav
Level 5

Hello, I look after an old netbackup 4.5 installation that I have not been able to upgrade due to the customer. It works fine apart from one thing that i can't work out how to change. When media expires it becomes available in the Volume Pool that it originated in - is there any way I can make these expired media go into the scratch pool like in later versions. Im stuck to be honest.

Any help would be greatly appreciated
1 ACCEPTED SOLUTION

Accepted Solutions

Scott_Chapman
Level 4
OK, here is the script... I would do some major testing with it before running it for good!  If nothing else, it will show you how to do what you want...  If there are pools that you don't want changed to the scratch pool, ensure you take that into account.

Good luck!

#! /bin/ksh
# This is a script to regularly convert unassigned tapes(expired)
# from any pool back to Scratch pool.  NetBackup unassigns volumes
# after there retention has expired, but it leaves the tapes in the
# assigned pool for re use.  It is better to move them into the Scratch
# pool so other classes can use them.  We Currently do not have enough
# enough tapes residing in the Library.  It is important that every
# expired tape be re-used quickly for other backup jobs to complete
# successfully.

MEDIADIR='/usr/openv/volmgr/bin'
TEMPDIR='/tmp'
#----------------------------------------
# generate medialist from robot-0 (L700)|
#----------------------------------------
echo "querying L700 robot..."
$MEDIADIR/vmquery -bx -rn 0 | grep '\-\-\-      \-\-\-' | grep -v CLN | grep -v Scratch | grep -v NBDB-Offsite | awk '{print $1}' \
   > $TEMPDIR/medialist

#----------------------------
# place date at top of file |
#----------------------------
date >> $TEMPDIR/mediacon
for media in `cat $TEMPDIR/medialist`
 do
 echo "   Converting $media to Scratch Pool..."
 $MEDIADIR/vmchange -p 3 -m $media
 echo $media' converted to Scratch Pool' >> $TEMPDIR/mediacon
 done

#-----------------------------------
# clean up and delete working file |
#-----------------------------------
rm $TEMPDIR/medialist
echo " "
echo "        *** Done converting expired tapes to Scratch. ***"


View solution in original post

16 REPLIES 16

Anton_Panyushki
Level 6
Certified
Please check for
cat /usr/openv/volmgr/vm.conf | grep -i assign
RETURN_UNASSIGNED_MEDIA_TO_SCRATCH_POOL = YES


gustav
Level 5

entry is in vm.conf yes - but my media always goes into available in existing pools.
 cat /usr/openv/volmgr/vm.conf | grep -i assign
RETURN_UNASSIGNED_MEDIA_TO_SCRATCH_POOL = YES


Anton_Panyushki
Level 6
Certified
Please check if bpexpdate -deassignempty really works.

Hava look at these technotes


http://seer.entsupport.symantec.com/docs/242341.htm

http://seer.entsupport.symantec.com/docs/308408.htm





gustav
Level 5

When I run bpexpdate -deassignempty,
I get no media mathcing criteria were found to be de assigned no entity was found.
But when I run vmchange -p -m against available media to movw to scratch pool it moves tapes fine. I'm getting confused!
thanks for your help so far

Marianne
Level 6
Partner    VIP    Accredited Certified

Return to scratch was introduced with 4.5 FP3.
Feature Pack 3 was actually a new release, not a patch.

Nicolai
Moderator
Moderator
Partner    VIP   

Are you aware that this setting must be set on the master server  (even with a "pure" master server) ?

gustav
Level 5

yes it is on master server - no media servers on this just a single master server

Nicolai
Moderator
Moderator
Partner    VIP   

I can recall NBU 4.5FP5 had a new set of installation CD's.

Scott_Chapman
Level 4
gustav, what version are you running?  Is it 4.5?  If so, Marianne mentions that you won't be able to expire directly to the scratch pool... we used to have a script that would move expired media back to the scratch pool... don't need that anymore of course.  I could post that script if you want it.

Thanks.

CRZ
Level 6
Employee Accredited Certified

...but who's counting?  :)

Marianne
Level 6
Partner    VIP    Accredited Certified

My question remains: which version of 4.5?
Extract from 4.5 FP3 Release Notes:

Because NetBackup Feature Pack 4.5_3_F is being released as a whole product, a customer could upgrade from the NB_45_4_M to NB_45_4_F, but will have to first install NB_45_3_F and then apply NB_45_4_F, which is currently planned to be delivered in a patch format.

page 9:
4. Expired tapes are now returned to the Media Manager scratch pool
Previously, if a scratch pool is configured, Media Manager moves volumes from the scratch pool to any other pools that do not have volumes available. Now, Media Manager also returns any expired media back to the scratch volume pool automatically. The automatic behavior of returning media to the scratch pool can be disabled in the Media Manager configuration file.

p. 25:
The return tapes to scratch pool feature is enabled and disabled by an entry in the vm.conf file.
RETURN_UNASSIGNED_MEDIA_TO_SCRATCH_POOL = YES | NO
If no vm.conf file exists, the return expired tapes to scratch pool feature is enabled. To disable it, you must create a vm.conf file, add the appropriate entry, and set it to no.


gustav
Level 5
version is 4.5GA

Marianne
Level 6
Partner    VIP    Accredited Certified
Then the only option is to manually return tapes to scratch...
There are MANY good reasons to upgrade:
  • Continued support
  • New features
  • Bug fixes
  • ....
This 'NEW' feature has been around for so long that no one can remember a time when it wasn't there...

gustav
Level 5

Yes - script would be very helpful - many thanks

Scott_Chapman
Level 4

Sorry, just saw that you asked for the script!  you are running in a 'nix environment?

Scott_Chapman
Level 4
OK, here is the script... I would do some major testing with it before running it for good!  If nothing else, it will show you how to do what you want...  If there are pools that you don't want changed to the scratch pool, ensure you take that into account.

Good luck!

#! /bin/ksh
# This is a script to regularly convert unassigned tapes(expired)
# from any pool back to Scratch pool.  NetBackup unassigns volumes
# after there retention has expired, but it leaves the tapes in the
# assigned pool for re use.  It is better to move them into the Scratch
# pool so other classes can use them.  We Currently do not have enough
# enough tapes residing in the Library.  It is important that every
# expired tape be re-used quickly for other backup jobs to complete
# successfully.

MEDIADIR='/usr/openv/volmgr/bin'
TEMPDIR='/tmp'
#----------------------------------------
# generate medialist from robot-0 (L700)|
#----------------------------------------
echo "querying L700 robot..."
$MEDIADIR/vmquery -bx -rn 0 | grep '\-\-\-      \-\-\-' | grep -v CLN | grep -v Scratch | grep -v NBDB-Offsite | awk '{print $1}' \
   > $TEMPDIR/medialist

#----------------------------
# place date at top of file |
#----------------------------
date >> $TEMPDIR/mediacon
for media in `cat $TEMPDIR/medialist`
 do
 echo "   Converting $media to Scratch Pool..."
 $MEDIADIR/vmchange -p 3 -m $media
 echo $media' converted to Scratch Pool' >> $TEMPDIR/mediacon
 done

#-----------------------------------
# clean up and delete working file |
#-----------------------------------
rm $TEMPDIR/medialist
echo " "
echo "        *** Done converting expired tapes to Scratch. ***"