Veritas-bu

[Veritas-bu] Expiring tapes

2004-02-23 13:27:06
Subject: [Veritas-bu] Expiring tapes
From: Josh.Goldfarb AT blackrock DOT com (Goldfarb, Josh)
Date: Mon, 23 Feb 2004 13:27:06 -0500
This is a multi-part message in MIME format.

------_=_NextPart_001_01C3FA3A.A465CE1A
Content-Type: text/plain;
        charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Ok here is my infamous script to handle what you need.  (or at least I
think infamous :-)  )
=20
If you guys have any additions or comments, please let me know
=20
thx
josh
=20
=20
=20
yes I know, Windows with MKS Toolkit :-)
=20
=20
#!/bin/ksh
# This script will unfreeze and deassign the volume pool for media
input.
#
print -n "Please input the tape you would like to unfreeze and Expire
Images: "
read TAPE
print -n "This will erase any reference to $TAPE from the Netbackup
catalogue. =20
It will become a blank tape, placed in the scratch pool. =20
Do you want to proceed? (y/n) "
read answer
#
if [ "$answer" =3D "y" -o "$answer" =3D "Y" ]; then
 echo '  '
 echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D continuing =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"
 echo '  '
 else
 echo "Exiting now..."
 exit 0
fi
#
print -n "$TAPE is in ";D:/VERITAS/Volmgr/bin/vmquery.exe -m $TAPE |
grep pool | awk '{print $1,$2,$3,$4}'
echo '   '
print "(Ignore any eror mesages regarding media id not being found in NB
media database and/or MM volume database - these are benign...)"
echo '   '
# Variable definitions from user input
#
POOL=3D`D:/VERITAS/Volmgr/bin/vmquery.exe -m $TAPE | grep pool | awk
'{print $4}' |awk -F"(" '{print $2}' | awk -F")" '{print $1}'`
MSERV=3D`D:/VERITAS/Netbackup/bin/admincmd/bpmedialist.exe -mlist -ev
$TAPE | grep Server | awk '{print $4}'`
#
echo '  '
print "Media server for $TAPE is $MSERV"
echo '   '
#
echo '  '
# Unfreezing/Deassigning Portion
echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Unfreezing tape now... =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"
D:/VERITAS/Netbackup/bin/admincmd/bpmedia.exe -unfreeze -ev $TAPE -h
$MSERV
echo '   '
echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Expiring Images... =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"
echo '  '
D:/veritas/netbackup/bin/admincmd/bpexpdate.exe -ev $TAPE -host $MSERV
-d 0 -justmedia -force
echo '  '
echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Sending tape to scratch =
pool... =3D=3D=3D=3D=3D"
echo '  '
D:/VERITAS/Volmgr/bin/vmchange.exe -rh $MSERV -p 2 -m $TAPE=20
echo '  '
echo '=3D=3D=3D=3D=3D=3D=3D Unfreezing/Deassigning/Moving is complete =
=3D=3D=3D=3D=3D=3D=3D=3D'
echo '   '
echo $MSERV
=20
=20

  _____ =20

From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Ashby,
Andrew
Sent: Monday, February 23, 2004 1:16 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Expiring tapes



NB4.5

=20

I have a select group of tapes that I cannot seem to expire or deassign.

=20

I have run "bpexpdate -m XXXXXX -d 0" and "VMQuery -deassignbyid XXXXXX
3 0 -force" on them successfully.

=20

I have also used "VMQUERY -deassignbyid XXXXXX 3 1 -force"

=20

However, when Netbackup goes to use them it freezes them saying they
have the Netbackup catalog data on them"

=20

If so, its not valid anymore so I'd like to clear them and get them back
in to rotation.

=20

What am I missing?   Checking guides now.

=20

Thanks


Andrew


------_=_NextPart_001_01C3FA3A.A465CE1A
Content-Type: text/html;
        charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40"; xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: =
"Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dblue link=3Dblue>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2>Ok here is my infamous script to handle what you need.&nbsp; =
(or at least=20
I think infamous :-)&nbsp; )</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2>If you guys have any additions or comments, please let me=20
know</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2>thx</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2>josh</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN =
class=3D665522418-23022004></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2>yes I know, Windows with MKS Toolkit :-)</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2>#!/bin/ksh<BR># This script will unfreeze and deassign the =
volume pool=20
for media input.<BR>#<BR>print -n "Please input the tape you would like =
to=20
unfreeze and Expire Images: "<BR>read TAPE<BR>print -n "This will erase =
any=20
reference to $TAPE from the Netbackup catalogue.&nbsp; <BR>It will =
become a=20
blank tape, placed in the scratch pool.&nbsp; <BR>Do you want to =
proceed? (y/n)=20
"<BR>read answer<BR>#<BR>if [ "$answer" =3D "y" -o "$answer" =3D "Y" ];=20
then<BR>&nbsp;echo '&nbsp; '<BR>&nbsp;echo =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D continuing=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"<BR>&nbsp;echo '&nbsp; =
'<BR>&nbsp;else<BR>&nbsp;echo "Exiting=20
now..."<BR>&nbsp;exit 0<BR>fi<BR>#<BR>print -n "$TAPE is in=20
";D:/VERITAS/Volmgr/bin/vmquery.exe -m $TAPE | grep pool | awk '{print=20
$1,$2,$3,$4}'<BR>echo '&nbsp;&nbsp; '<BR>print "(Ignore any eror mesages =

regarding media id not being found in NB media database and/or MM volume =

database - these are benign...)"<BR>echo '&nbsp;&nbsp; '<BR># Variable=20
definitions from user =
input<BR>#<BR>POOL=3D`D:/VERITAS/Volmgr/bin/vmquery.exe -m=20
$TAPE | grep pool | awk '{print $4}' |awk -F"(" '{print $2}' | awk -F")" =
'{print=20
$1}'`<BR>MSERV=3D`D:/VERITAS/Netbackup/bin/admincmd/bpmedialist.exe =
-mlist -ev=20
$TAPE | grep Server | awk '{print $4}'`<BR>#<BR>echo '&nbsp; '<BR>print =
"Media=20
server for $TAPE is $MSERV"<BR>echo '&nbsp;&nbsp; '<BR>#<BR>echo '&nbsp; =
'<BR>#=20
Unfreezing/Deassigning Portion<BR>echo =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Unfreezing tape now...=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"<BR>D:/VERITAS/Netbackup/bin/admincmd/b=
pmedia.exe -unfreeze -ev=20
$TAPE -h $MSERV<BR>echo '&nbsp;&nbsp; '<BR>echo =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Expiring Images...=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"<BR>echo '&nbsp;=20
'<BR>D:/veritas/netbackup/bin/admincmd/bpexpdate.exe -ev $TAPE -host =
$MSERV -d 0=20
-justmedia -force<BR>echo '&nbsp; '<BR>echo =
"=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Sending tape to=20
scratch pool... =3D=3D=3D=3D=3D"<BR>echo '&nbsp; =
'<BR>D:/VERITAS/Volmgr/bin/vmchange.exe=20
-rh $MSERV -p 2 -m $TAPE <BR>echo '&nbsp; '<BR>echo =
'=3D=3D=3D=3D=3D=3D=3D=20
Unfreezing/Deassigning/Moving is complete =
=3D=3D=3D=3D=3D=3D=3D=3D'<BR>echo '&nbsp;&nbsp;=20
'<BR>echo $MSERV</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D665522418-23022004><FONT =
face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> =
veritas-bu-admin AT mailman.eng.auburn DOT edu=20
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <B>On Behalf Of =
</B>Ashby,=20
Andrew<BR><B>Sent:</B> Monday, February 23, 2004 1:16 PM<BR><B>To:</B>=20
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu] =
Expiring=20
tapes<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">NB4.5<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have a =
select group=20
of tapes that I cannot seem to expire or =
deassign.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have run =
&#8220;bpexpdate=20
&#8211;m XXXXXX &#8211;d 0&#8221; and &#8220;VMQuery &#8211;deassignbyid =
XXXXXX 3 0 &#8211;force&#8221; on them=20
successfully.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have also =
used=20
&#8220;VMQUERY &#8211;deassignbyid XXXXXX 3 1 =
&#8211;force&#8221;<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">However, when =
Netbackup=20
goes to use them it freezes them saying they have the Netbackup catalog =
data on=20
them&#8221;<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">If so, its =
not valid=20
anymore so I&#8217;d like to clear them and get them back in to=20
rotation.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">What am I=20
missing?&nbsp;&nbsp; Checking guides now.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Thanks<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><BR>Andrew<o:p></o:p></SPAN></FONT></P></DIV></BODY></HTML>

------_=_NextPart_001_01C3FA3A.A465CE1A--

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