Veritas-bu

[Veritas-bu] Move volumes from slot to slot.

2004-08-31 12:03:41
Subject: [Veritas-bu] Move volumes from slot to slot.
From: Dave Markham <dave.markham AT gmail DOT com> (Dave Markham)
Date: Tue, 31 Aug 2004 17:03:41 +0100
You can also echo commands to tldtest ( robtest ) to perform these
tasks automatically.

E.g

echo "m s14 s10" | tldtest -r /dev/sg/c0t0l0 

Above would move contents of slot 14 to slot 10 on device robot path
/dev/sg/c0t0l0   ....obtain this from sgscan

I run a loadtap script periodoically through the day as ops change
tapes. This re-inventories the robot

root@machine# cat loadtape
#!/bin/ksh
#Reloading and inventorising tapes for media manager

NBDIR=/usr/openv/netbackup/bin
MMDIR=/usr/openv/volmgr/bin
ADMINDIR=/usr/openv/netbackup/bin/admincmd

#robot parameters
#ROBOT=`/opt/openv/volmgr/bin/sgscan | awk -F: '/P1000/ {print $1}'`
#ROBTEST=tldtest
#ROBCMD="$MMDIR/$ROBTEST -r $ROBOT"      #gives tldtest -r c0t0l0
#ROBFILE=/tmp/robotpath


###### Script ######
#Interactive
#$MMDIR/vmupdate -x -rn 0 -rt tld -rh `uname -n` -vh `uname -n`
-interactive -use_barcode_rules

#non-interactive
$MMDIR/vmupdate -x -rn 0 -rt tld -rh `uname -n` -vh `uname -n`
-use_barcode_rules
if [ $? != "0" ]
then
        echo "WARNING: Problem with loadtape script..maybe an
unreadable tape! Please check its IMPORTANT" |mailx -s "`uname -n`
Loadtape script Error"   [email protected]
fi



Dave

On Tue, 31 Aug 2004 15:21:51 +0400, Albert Mamanov
<albert AT kostroma.mts DOT ru> wrote:
>   Hi All!
> 
>   How to move volumes from one slot to another?
> And How can i use mail slot to eject volume from library?
> 
> Thanks.
> 
> --
> Albert Mamanov                 mailto:albert AT kostroma.mts DOT ru
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> 
>

<Prev in Thread] Current Thread [Next in Thread>