Veritas-bu

[Veritas-bu] tapes expiring

2002-06-25 18:54:34
Subject: [Veritas-bu] tapes expiring
From: Michelle.Stone AT kla-tencor DOT com (Stone, Michelle)
Date: Tue, 25 Jun 2002 15:54:34 -0700
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.

--------------InterScan_NT_MIME_Boundary
Content-Type: multipart/alternative;
        boundary="----_=_NextPart_001_01C21C9B.463F5720"

------_=_NextPart_001_01C21C9B.463F5720
Content-Type: text/plain

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_01C21C9B.463F5720
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>RE: [Veritas-bu] tapes expiring</title>

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hey Mark and everyone 
else....</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>We've got the same problem
here.&nbsp; I did a little poking around and vmquery returns an expiration date
(field 20) of 00/00/000 for EVERY volume!&nbsp; 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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You can get active expiration data on
active volumes using bpmedialist.&nbsp; But that won't give you squat on
expired volumes.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So, can anyone tell me where I can easily
get expiration data for my tapes?&nbsp; This pool thing has killed us twice in
a major way.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Michelle</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;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:.5in'><font size=3 face="Times New 
Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Dave,</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>You can use the &quot;vmchange&quot; command to place
a deassigned tape into whatever pool you wish:</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>vmchange -p &lt;scratchpoolnum&gt; -m 
&lt;tapenum&gt;</span></font>
</p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>I've got a script that does this daily run by 
cron:</span></font>
</p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>#!/bin/sh</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>##Auto_ScratchPool</span></font> <br>
<font size=2><span style='font-size:10.0pt'>## This script is used to identify
all tapes in the robot which are available</span></font> <br>
<font size=2><span style='font-size:10.0pt'>## for use (all expired images) but
are not in the &quot;ScratchPool&quot; and change</span></font> <br>
<font size=2><span style='font-size:10.0pt'>## them to be in the
Scratchpool.&nbsp; This should increase tape availability for</span></font> <br>
<font size=2><span style='font-size:10.0pt'>## all Classes of 
backups.</span></font>
</p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>## Mark Donaldson - Nov 11, 1999</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/volmgr/bin:/usr/local/bin</span></font>
<br>
<font size=2><span 
style='font-size:10.0pt'>PATH=$PATH:/usr/openv/netbackup/bin/admincmd:/usr/openv/local</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>export PATH</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>#Get Scratchpool name</span></font> <br>
<font size=2><span style='font-size:10.0pt'>SPname=`vmpool -listscratch | tail
-1`</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>#Now lookup scratchpool pool number.</span></font> <br>
<font size=2><span style='font-size:10.0pt'>SPnum=`vmpool -listall | 
\</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>&nbsp;&nbsp; awk -F:
'$1==&quot;pool number&quot; {pn=$2}</span></font> <br>
<font size=2><span 
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$1==&quot;pool name&quot; &amp;&amp; $2~/^ *'$SPname'$/ {print 
pn}'`</span></font>
</p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'># Note: vmquery col&nbsp; 1 is tape 
number</span></font>
<br>
<font size=2><span 
style='font-size:10.0pt'>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
col&nbsp; 3 is tape type</span></font> <br>
<font size=2><span 
style='font-size:10.0pt'>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
col 12 is poolname</span></font> <br>
<font size=2><span 
style='font-size:10.0pt'>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
col 20 is &quot;assigned&quot; date</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>tapelist=`vmquery -a -w |&nbsp; awk '$3 !~ /CLN/
&amp;&amp; \</span></font> <br>
<font size=2><span 
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$20 == &quot;00/00/0000&quot; &amp;&amp; \</span></font> <br>
<font size=2><span 
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$12 != &quot;'$SPname'&quot; &amp;&amp; \</span></font> <br>
<font size=2><span 
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$28 == 0 {print $1}' `</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>for eachtape in $tapelist</span></font> <br>
<font size=2><span style='font-size:10.0pt'>do</span></font> <br>
<font size=2><span style='font-size:10.0pt'>&nbsp; #Tape available for
reassignment to scratchpool.</span></font> <br>
<font size=2><span style='font-size:10.0pt'>&nbsp; vmchange -p $SPnum -m
$eachtape</span></font> <br>
<font size=2><span style='font-size:10.0pt'>done</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>exit</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>-----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:10.0pt'>Sent: Monday, June 10, 2002 4:38 
AM</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>To: 'Veritas-Bu 
(E-mail)</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>Subject: [Veritas-bu] tapes
expiring</span></font> </p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New 
Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>If i take tapes which are assigned to a pool for eg
weekly_full , daily_inc&nbsp; out of my jukebox ( sun L1000, netbackup 3.2
running on solaris 8&nbsp; ) 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:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>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:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>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
&lt;tape&gt; -d 0&nbsp; 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:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Anyone any ideas ?</span></font> </p>

<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Dave</span></font> </p>

</div>

</body>

</html>

------_=_NextPart_001_01C21C9B.463F5720--

--------------InterScan_NT_MIME_Boundary--