[Veritas-bu] tapes expiring
2002-06-25 19:00:02
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C21C9C.09A48CD0
Content-Type: text/plain
What version of NB do you have? David and I found a difference between v3.2
& 3.4 that we had to correct. version might be important.
-M
-----Original Message-----
From: Stone, Michelle [mailto:Michelle.Stone AT kla-tencor DOT com]
Sent: Tuesday, June 25, 2002 4:55 PM
To: 'Donaldson, Mark'; 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: RE: [Veritas-bu] tapes expiring
Hey Mark and everyone else....
We've got the same problem here. I did a little poking around and vmquery
returns an expiration date (field 20) of 00/00/000 for EVERY volume! It's
not a problem with your script except that you are running vmchange on every
tape whether it is active or not. I don't think that it will hurt the active
tapes but it will waste machine cycles. Since we have thousands of tapes,
I'm not sure that I want to do this.
You can get active expiration data on active volumes using bpmedialist. But
that won't give you squat on expired volumes.
So, can anyone tell me where I can easily get expiration data for my tapes?
This pool thing has killed us twice in a major way.
Thanks
Michelle
-----Original Message-----
From: Donaldson, Mark [mailto:Mark.Donaldson AT experianems DOT com]
Sent: Monday, June 10, 2002 8:45 AM
To: 'dave.markham AT icl DOT net'; 'Veritas-Bu (E-mail)
Subject: RE: [Veritas-bu] tapes expiring
Dave,
You can use the "vmchange" command to place a deassigned tape into whatever
pool you wish:
vmchange -p <scratchpoolnum> -m <tapenum>
I've got a script that does this daily run by cron:
#!/bin/sh
##Auto_ScratchPool
## This script is used to identify all tapes in the robot which are
available
## for use (all expired images) but are not in the "ScratchPool" and change
## them to be in the Scratchpool. This should increase tape availability
for
## all Classes of backups.
## Mark Donaldson - Nov 11, 1999
PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/volmgr/bin:/usr/local/bin
PATH=$PATH:/usr/openv/netbackup/bin/admincmd:/usr/openv/local
export PATH
#Get Scratchpool name
SPname=`vmpool -listscratch | tail -1`
#Now lookup scratchpool pool number.
SPnum=`vmpool -listall | \
awk -F: '$1=="pool number" {pn=$2}
$1=="pool name" && $2~/^ *'$SPname'$/ {print pn}'`
# Note: vmquery col 1 is tape number
# col 3 is tape type
# col 12 is poolname
# col 20 is "assigned" date
tapelist=`vmquery -a -w | awk '$3 !~ /CLN/ && \
$20 == "00/00/0000" && \
$12 != "'$SPname'" && \
$28 == 0 {print $1}' `
for eachtape in $tapelist
do
#Tape available for reassignment to scratchpool.
vmchange -p $SPnum -m $eachtape
done
exit
-----Original Message-----From: David Markham [ mailto:dave.markham AT icl DOT
net
<mailto:dave.markham AT icl DOT net> ]
Sent: Monday, June 10, 2002 4:38 AM
To: 'Veritas-Bu (E-mail)
Subject: [Veritas-bu] tapes expiring
If i take tapes which are assigned to a pool for eg weekly_full , daily_inc
out of my jukebox ( sun L1000, netbackup 3.2 running on solaris 8 ) and do
not put them back in until the retention period is over, they then are read
in and are still assigned to the pool they were in before. Although they can
be written to by schedules using that pool now that the retention period is
over.
Thing is, how do i make tapes which come into the jukebox that are known
about from other pools but have gone past their retention period move into
the scratch pool.
I have a barcode rule so any new tapes which come in automatically go into
the scratch pool, but these are tapes which have been used before. currently
I have to expire each one with bpexpdate -ev <tape> -d 0 then delete them
from the gui, then run vmupdate -x -rn 0 -rt tld -rh `uname -n` -vh `uname
-n` -use_barcode_rules to get them into the scratch pool.
Anyone any ideas ?
Dave
------_=_NextPart_001_01C21C9C.09A48CD0
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>RE: [Veritas-bu] tapes expiring</TITLE>
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE>@font-face {
font-family: Tahoma;
}
@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"
}
SPAN.EmailStyle18 {
COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV><SPAN class=784365822-25062002><FONT face=Arial color=#0000ff size=2>What
version of NB do you have? David and I found a difference between v3.2
& 3.4 that we had to correct. version might be
important.</FONT></SPAN></DIV>
<DIV><SPAN class=784365822-25062002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=784365822-25062002><FONT face=Arial color=#0000ff
size=2>-M</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Stone, Michelle
[mailto:Michelle.Stone AT kla-tencor DOT com]<BR><B>Sent:</B> Tuesday, June
25, 2002
4:55 PM<BR><B>To:</B> 'Donaldson, Mark';
'veritas-bu AT mailman.eng.auburn DOT edu'<BR><B>Subject:</B> RE:
[Veritas-bu] tapes
expiring<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hey Mark and
everyone
else....</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY:
Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">We've got the same
problem here. I did a little poking around and vmquery returns an
expiration date (field 20) of 00/00/000 for EVERY volume! It's not a
problem with your script except that you are running vmchange on every tape
whether it is active or not. I don't think that it will hurt the active tapes
but it will waste machine cycles. Since we have thousands of tapes, I'm not
sure that I want to do this. </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY:
Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">You can get active
expiration data on active volumes using bpmedialist. But that won't
give
you squat on expired volumes.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY:
Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">So, can anyone tell
me where I can easily get expiration data for my tapes? This pool thing
has killed us twice in a major way.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY:
Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY:
Arial">Thanks</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY:
Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY:
Arial">Michelle</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY:
Arial"></SPAN></FONT> </P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Tahoma size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original
Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B>
Donaldson,
Mark [mailto:Mark.Donaldson AT experianems DOT com] <BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, June 10, 2002 8:45
AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B>
'dave.markham AT icl DOT net'; 'Veritas-Bu (E-mail)<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Veritas-bu] tapes
expiring</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">Dave,</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">You can use the "vmchange" command to place a
deassigned tape into whatever pool you wish:</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">vmchange -p <scratchpoolnum> -m
<tapenum></SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">I've got a script that does this daily run by
cron:</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">#!/bin/sh</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">##Auto_ScratchPool</SPAN></FONT> <BR><FONT
size=2><SPAN style="FONT-SIZE: 10pt">## This script is used to identify all
tapes in the robot which are available</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt">## for use (all expired images) but are not in the
"ScratchPool" and change</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt">## them to be in the Scratchpool. This should
increase tape availability for</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt">## all Classes of backups.</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">## Mark Donaldson - Nov 11, 1999</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE:
10pt">PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/volmgr/bin:/usr/local/bin</SPAN></FONT>
<BR><FONT size=2><SPAN
style="FONT-SIZE:
10pt">PATH=$PATH:/usr/openv/netbackup/bin/admincmd:/usr/openv/local</SPAN></FONT>
<BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">export PATH</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">#Get Scratchpool name</SPAN></FONT> <BR><FONT
size=2><SPAN style="FONT-SIZE: 10pt">SPname=`vmpool -listscratch | tail
-1`</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">#Now lookup scratchpool pool number.</SPAN></FONT>
<BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">SPnum=`vmpool -listall |
\</SPAN></FONT> <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">
awk -F: '$1=="pool number" {pn=$2}</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE:
10pt">
$1=="pool name" && $2~/^ *'$SPname'$/ {print pn}'`</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt"># Note: vmquery col 1 is tape
number</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE:
10pt">#
col 3 is tape type</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE:
10pt">#
col 12 is poolname</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE:
10pt">#
col 20 is "assigned" date</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">tapelist=`vmquery -a -w | awk '$3 !~ /CLN/
&& \</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE:
10pt">
$20 == "00/00/0000" && \</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE:
10pt">
$12 != "'$SPname'" && \</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE:
10pt">
$28 == 0 {print $1}' `</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">for eachtape in $tapelist</SPAN></FONT> <BR><FONT
size=2><SPAN style="FONT-SIZE: 10pt">do</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt"> #Tape available for reassignment to
scratchpool.</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt"> vmchange -p $SPnum -m $eachtape</SPAN></FONT>
<BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">done</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">exit</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">-----Original Message-----From: David Markham [<A
href="mailto:dave.markham AT icl DOT net">mailto:dave.markham AT icl DOT
net</A>]</SPAN></FONT>
<BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">Sent: Monday, June 10, 2002
4:38 AM</SPAN></FONT> <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">To:
'Veritas-Bu (E-mail)</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt">Subject: [Veritas-bu] tapes expiring</SPAN></FONT>
</P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">If i take tapes which are assigned to a pool for eg
weekly_full , daily_inc out of my jukebox ( sun L1000, netbackup 3.2
running on solaris 8 ) and do not put them back in until the retention
period is over, they then are read in and are still assigned to the pool they
were in before. Although they can be written to by schedules using that pool
now that the retention period is over.</SPAN></FONT></P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">Thing is, how do i make tapes which come into the
jukebox that are known about from other pools but have gone past their
retention period move into the scratch pool.</SPAN></FONT></P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">I have a barcode rule so any new tapes which come in
automatically go into the scratch pool, but these are tapes which have been
used before. currently I have to expire each one with bpexpdate -ev
<tape> -d 0 then delete them from the gui, then run vmupdate -x
-rn 0 -rt tld -rh `uname -n` -vh `uname -n` -use_barcode_rules to get them
into the scratch pool.</SPAN></FONT></P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">Anyone any ideas ?</SPAN></FONT> </P>
<P style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">Dave</SPAN></FONT>
</P></DIV></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C21C9C.09A48CD0--
|
|
|