Networker

Re: [Networker] Virtual tapes get stuck in virtual tape drives

2010-09-28 12:55:55
Subject: Re: [Networker] Virtual tapes get stuck in virtual tape drives
From: Mark Davis <davism AT UWO DOT CA>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 28 Sep 2010 12:55:01 -0400
We do a lot of virtual tape re-labeling with our FalconStor VTL/SIR to clear out the repository of unused deduplicated blocks. I was concerned about scripting it, in case the script or Networker had issues and it started labeling tapes with production data.

I find the Admin console very nice to do this. I go to the VTL in devices, then sort the tapes by "Mode". This groups all the expired tapes. Simply highlight all the expired tapes, right click and select label. It takes a few seconds to do, then Networker does the rest.

My $0.02

Mark
--
Mark Davis
University of Western Ontario - ITS
email: davism AT uwo DOT ca

rmumford wrote:
Running NW 7.5.2 with Data Domain DD880 in VTL mode. It has been suggested by DD that we need to relabel tapes each day via a script in order to keep the data stored on the DD880 trimmed down for replication, and I will agree thats probably a good idea. I have a script written that works pretty well. The problem comes in if that script is running against a pool when a backup kicks off that wants to use the same pool. Some of the relabel commands may fail, and then that tape may be "stuck" in that drive, and that drive can't be used until I can get that tape out. The only way I get the tape out is to go to the DD880 and export those tapes, then import them back into the library. Here's a sample of 2 that got stuck today because oracle backups kicked off in the middle of this process:
OR0073 from oracle8daycdl on JB DD880456-1 will be re-labeled
setting verbosity level to `3'
Info: Preparing to load volume `OR0073' from slot 470 into device 
`rd=nt2legatoj4.emn.com:\\.\Tape14'.
Info: Loading volume `OR0073' from slot `470' into device 
`rd=nt2legatoj4.emn.com:\\.\Tape14'.
Info: Load sleep for 5 seconds.
Info: Performing operation `Verify label' on device 
`rd=nt2legatoj4.emn.com:\\.\Tape14'.
Info: Operation `Verify label' in progress on device 
`rd=nt2legatoj4.emn.com:\\.\Tape14'
Error: Task `OP_LABEL' timed out.
39077:nsrjb: error, Jukebox command terminated with errors.

OR0259 from oracle8daycdl on JB DD880456-1 will be re-labeled
setting verbosity level to `3'
Info: Preparing to load volume `OR0259' from slot 911 into device 
`rd=nt2legatoj4.emn.com:\\.\Tape15'.
Info: Loading volume `OR0259' from slot `911' into device 
`rd=nt2legatoj4.emn.com:\\.\Tape15'.
Info: Load sleep for 5 seconds.
Info: Performing operation `Verify label' on device 
`rd=nt2legatoj4.emn.com:\\.\Tape15'.
Info: Operation `Verify label' in progress on device 
`rd=nt2legatoj4.emn.com:\\.\Tape15'
Error: Task `OP_LABEL' timed out.
39077:nsrjb: error, Jukebox command terminated with errors.

My question has 2 parts I guess, is there a problem with my script? And is 
there maybe a better way to do this? Here's my script:

#!/bin/ksh
#################################################################
#
# Program Name: recycle_tapes_J1.sh
# Author: R Mumford
# Date:   24 Jan 2009
#
#

LOCATION=DD880456-1

echo " "
echo $LOCATION
echo " "

echo " "      > recycled_tapes_NT2LEGATOJ1.txt
echo $LOCATION  >> recycled_tapes_NT2LEGATOJ1.txt
echo " "      >> recycled_tapes_NT2LEGATOJ1.txt


#First, get a list of all tapes marked recycled and output to a file we will 
mail out.

mminfo -q "!inuse,volrecycle,location=$LOCATION" -r "volume, pool, volretent, 
location" >> recycled_tapes_NT2LEGATOJ1.txt
echo " "      >> recycled_tapes_NT2LEGATOJ1.txt

#MAINLOOP - loop thru pools - add to list if new pools added

for POOL in Bootstrap eastman28 edmdevclone enp8day mig ndmp oracle28day 
oracle8daycdl VMS

do

#WORKINGLOOP - delete and relable volumes

        mminfo -q "volrecycle,pool=$POOL,location=$LOCATION" -r volume | while 
read VOLUME

        do

        echo "$VOLUME from $POOL on JB $LOCATION will be re-labeled"
        echo "$VOLUME from $POOL on JB $LOCATION will be re-labeled" >> 
recycled_tapes_NT2LEGATOJ1.txt

        nsrjb -Yvvv -j $LOCATION -R -b $POOL -L $VOLUME

        done
done

#####


Thanks

Robert D Mumford

+----------------------------------------------------------------------
|This was sent by rmumford AT eastman DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the body of the email. Please write to networker-request 
AT listserv.temple DOT edu if you have any problems with this list. You can access the 
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER


To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the body of the email. Please write to networker-request 
AT listserv.temple DOT edu if you have any problems with this list. You can access the 
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER