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_01C21CC6.A94A5B00
Content-Type: text/plain
Sorry for the multiple submit...
-----Original Message-----
From: Donaldson, Mark [mailto:Mark.Donaldson AT experianems DOT com]
Sent: Tuesday, June 25, 2002 8:03 PM
To: 'Veritas-bu AT mailman.eng.auburn DOT edu'
Cc: 'Darren Dunham '; 'Stone, Michelle'
Subject: RE: [Veritas-bu] tapes expiring
Field 20, I thought was image expiration date not tape expiration (aging)
date. Testing proves it out:
Find an expendable tape. Output is tape number, type, pool, expiration
(field 20) and status.
$ sudo vmquery -a -w | awk '$1==0000269 {print $1,$3, $12,$20,$28}'
000269 DLT Main 06/10/2002 0
Expire the images on that tape...
$ sudo bpexpdate -ev 000269 -d 0 -force
Query again...
$ sudo vmquery -a -w | awk '$1==0000269 {print $1,$3, $12,$20,$28}'
000269 DLT Main 00/00/0000 0
After I expired the tape, $20 became 00/00/0000
I don't know why you have 00/00/0000 on assigned tapes, it's not supposed to
be that way.
Do a vmquery on a tape that bpmedialist says is assigned by the vmquery
command has field 20 as 00/00/0000 and post the results - You also might do
one that is both assigned in both commands and unassigned in both commands
for comparison.
-Mark
-----Original Message-----
From: Darren Dunham [ mailto:ddunham AT taos DOT com <mailto:ddunham AT taos
DOT com> ]
Sent: Tuesday, June 25, 2002 5:52 PM
To: 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!
I think that's normal. That's the date to toss the volume in the trash.
> 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.
But it also checks whether it is assigned (field 28), yes? So it won't
run on assigned tapes. Do you have thousands of unassigned tapes?
> You can get active expiration data on active volumes using bpmedialist.
But
> that won't give you squat on expired volumes.
I think you mean it doesn't give you anything on expired images
(different from 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.
> # 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}' `
Just run this command and see what the output is...
vmquery -a -w | awk '$3 !~ /CLN/ && 20 == "00/00/0000" && $28 == 0 {print
$1}' | wc
What do you get? That should only show unassigned tapes (including
those in the scratch pool).
--
Darren Dunham ddunham AT taos DOT com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu>
------_=_NextPart_001_01C21CC6.A94A5B00
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></HEAD>
<BODY>
<DIV><SPAN class=479300404-26062002><FONT face=Arial color=#0000ff size=2>Sorry
for the multiple submit...</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> Donaldson, Mark
[mailto:Mark.Donaldson AT experianems DOT com]<BR><B>Sent:</B> Tuesday, June
25, 2002
8:03 PM<BR><B>To:</B> 'Veritas-bu AT mailman.eng.auburn DOT
edu'<BR><B>Cc:</B>
'Darren Dunham '; 'Stone, Michelle'<BR><B>Subject:</B> RE: [Veritas-bu] tapes
expiring<BR><BR></FONT></DIV>
<P><FONT size=2>Field 20, I thought was image expiration date not tape
expiration (aging) date. Testing proves it out:</FONT> </P>
<P><FONT size=2>Find an expendable tape. Output is tape number, type,
pool, expiration (field 20) and status.</FONT> <BR><FONT size=2>$ sudo
vmquery
-a -w | awk '$1==0000269 {print $1,$3, $12,$20,$28}'</FONT> <BR><FONT
size=2>000269 DLT Main 06/10/2002 0</FONT> </P>
<P><FONT size=2>Expire the images on that tape...</FONT> <BR><FONT size=2>$
sudo bpexpdate -ev 000269 -d 0 -force</FONT> </P>
<P><FONT size=2>Query again...</FONT> <BR><FONT size=2>$ sudo vmquery -a -w |
awk '$1==0000269 {print $1,$3, $12,$20,$28}'</FONT> <BR><FONT size=2>000269
DLT Main 00/00/0000 0</FONT> </P>
<P><FONT size=2>After I expired the tape, $20 became 00/00/0000</FONT> </P>
<P><FONT size=2>I don't know why you have 00/00/0000 on assigned tapes, it's
not supposed to be that way.</FONT> </P>
<P><FONT size=2>Do a vmquery on a tape that bpmedialist says is assigned by
the vmquery command has field 20 as 00/00/0000 and post the results - You
also
might do one that is both assigned in both commands and unassigned in both
commands for comparison.</FONT></P>
<P><FONT size=2>-Mark</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
Darren Dunham [<A
href="mailto:ddunham AT taos DOT com">mailto:ddunham AT taos DOT
com</A>]</FONT> <BR><FONT
size=2>Sent: Tuesday, June 25, 2002 5:52 PM</FONT> <BR><FONT size=2>To:
Veritas-bu AT mailman.eng.auburn DOT edu</FONT> <BR><FONT size=2>Subject: Re:
[Veritas-bu] tapes expiring</FONT> </P><BR>
<P><FONT size=2>> Hey Mark and everyone else....</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> </FONT><BR><FONT size=2>> We've
got the same problem here. I did a little poking around and
vmquery</FONT> <BR><FONT size=2>> returns an expiration date (field 20) of
00/00/000 for EVERY volume! </FONT></P>
<P><FONT size=2>I think that's normal. That's the date to toss the
volume in the trash.</FONT> </P>
<P><FONT size=2>> It's</FONT> <BR><FONT size=2>> not a problem with
your
script except that you are running vmchange on every</FONT> <BR><FONT
size=2>> tape whether it is active or not. I don't think that it will hurt
the active</FONT> <BR><FONT size=2>> tapes but it will waste machine
cycles. Since we have thousands of tapes,</FONT> <BR><FONT size=2>> I'm
not
sure that I want to do this. </FONT></P>
<P><FONT size=2>But it also checks whether it is assigned (field 28),
yes? So it won't</FONT> <BR><FONT size=2>run on assigned tapes.
Do
you have thousands of unassigned tapes?</FONT> </P>
<P><FONT size=2>> You can get active expiration data on active volumes
using bpmedialist. But</FONT> <BR><FONT size=2>> that won't give you
squat on expired volumes.</FONT> </P>
<P><FONT size=2>I think you mean it doesn't give you anything on expired
images</FONT> <BR><FONT size=2>(different from expired volumes).</FONT> </P>
<P><FONT size=2>> So, can anyone tell me where I can easily get expiration
data for my tapes?</FONT> <BR><FONT size=2>> This pool thing has killed us
twice in a major way.</FONT> </P>
<P><FONT size=2>> # Note: vmquery col 1 is tape number
</FONT><BR><FONT size=2>>
#
col 3 is tape type </FONT><BR><FONT size=2>>
#
col 12 is poolname </FONT><BR><FONT size=2>>
#
col 20 is "assigned" date </FONT><BR><FONT size=2>> </FONT><BR><FONT
size=2>> tapelist=`vmquery -a -w | awk '$3 !~ /CLN/ && \
</FONT><BR><FONT
size=2>>
$20 == "00/00/0000" && \ </FONT><BR><FONT
size=2>>
$12 != "'$SPname'" && \ </FONT><BR><FONT
size=2>>
$28 == 0 {print $1}' ` </FONT></P><BR>
<P><FONT size=2>Just run this command and see what the output is...</FONT>
</P>
<P><FONT size=2>vmquery -a -w | awk '$3 !~ /CLN/ && 20 ==
"00/00/0000" && $28 == 0 {print $1}' | wc</FONT> </P>
<P><FONT size=2>What do you get? That should only show unassigned tapes
(including</FONT> <BR><FONT size=2>those in the scratch pool).</FONT> </P>
<P><FONT size=2>-- </FONT><BR><FONT size=2>Darren
Dunham
ddunham AT taos DOT com</FONT> <BR><FONT size=2>Unix System
Administrator
Taos - The SysAdmin Company</FONT> <BR><FONT size=2>Got some Dr
Pepper?
San Francisco, CA bay area</FONT> <BR><FONT
size=2> < This line left
intentionally blank to confuse you. ></FONT> <BR><FONT
size=2>_______________________________________________</FONT> <BR><FONT
size=2>Veritas-bu maillist -
Veritas-bu AT mailman.eng.auburn DOT edu</FONT> <BR><FONT size=2><A
href="http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"
target=_blank>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</A></FONT>
</P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C21CC6.A94A5B00--
|