This is a multi-part message in MIME format.
------_=_NextPart_001_01C439E3.874BF98B
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I do the same thing with the off-site pool as Martin. In 4.5 it will =
automatically add tapes from SCRATCH when it needs to. Also I trained =
the 24X7 operators to eject the tapes and deal with the offsite storage =
company. They use NetBackup Administration Console from their desktops. =
It was a little painful at first but well worth it. They also add =
scratches and put tapes from offsite in an archive.
-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu =
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of Martin =
Rohrbach NONLILLY
Sent: Thursday, May 13, 2004 3:27 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] bpduplicate tape selection question
We have a seperate pool for the duplicated tapes as well but we're using =
a slightly simpler approach to identify the tapes to eject.=20
The DUPLICATION pool just grabs tapes from SCRATCH. That way you can =
tell after the duplication that all tapes that are assigned and in the =
DUPLICATION pool and not in the library have to be ejected.=20
And yes, we think as well that it's worth having an additional tape with =
the catalog on it.=20
Regards=20
----=20
Martin Rohrbach=20
Storage Projects Analyst=20
Eli Lilly and Company=20
+44-(0)1256-775811
"Konstantin 'Kastus' Shchuka" <kastus AT epocrates DOT com>=20
Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu=20
12/05/2004 20:32=20
=20
To: veritas-bu AT mailman.eng.auburn DOT edu=20
cc: =20
Subject: Re: [Veritas-bu] bpduplicate tape selection =
question
On Wed, May 12, 2004 at 12:12:21PM -0700, Ben Rockwood wrote:
> Hello.
>=20
> I'm working on building some offsite duplication scripts and=20
> methodologies. I'm hitting alittle hitch though. I can't see how to=20
> get bpduplicate to report which tape it selects for the duplication. =20
> Currently, I tell it to use a tape out of the duplication pool (I'm =
just=20
> using the default NB_Duplicate pool name) without specifying exactly=20
> which tape to use... the idea is that I don't need to update the=20
> duplication scripts daily/weekly with the tape id, I can just keep the =
> duplication pool full of tapes. =20
I'm using the same approach of keeping a pool of tapes.
> But once the dup is done I can't find a=20
> way of automating the discovery of which tape it used in order to =
eject=20
> it. I can visually scan the medialist and tell which one it used, but =
I=20
> wouldn't want to script that method because it is inherently error =
prone.=20
> Is there anyway for bpduplicate to output the tape it used? Or should =
I=20
> just invoke this thing manually.
I keep a copy of backup ids from bpduplicate command and then use a =
script
to find which tapes contain second copy of those backups.
bpduplicate is invoked as follows:
$BPDUPLICATE -dstunit $DSTUNIT -v -Bidfile $BIDLISTFILE -dp $POOL -L =
$BPDUPLOG
As bpduplicate deletes Bidfile, I create a second copy of $BIDLISTFILE
before executing bpduplicate.
After running bpduplicate I call
MEDIA=3D$(cat $BIDLISTFILESAVE | $MEDIALIST)
where MEDIALIST is the following script:
----------------------------------------------------------------
#!/usr/bin/perl
# find media ids where copies were written
#
while (<>) {
open BPMEDIALIST, "/usr/openv/netbackup/bin/admincmd/bpimagelist =
-l -bac
kupid $_ |";
while (<BPMEDIALIST>) {
split ;
$media{$_[8]} ++ if $_[0] eq 'FRAG' && $_[1] =3D=3D 2 ;
}
close BPMEDIALIST;
}
foreach $evsn ( sort keys %media ) {
print "$evsn ";
}
----------------------------------------------------------------
>=20
> A little followup question... when doing offsites is it =
worthwhile/wise=20
> to put a NB catalog backup on the offsite tape too?
I'm doing that. It takes an extra tape but in case you have to restore
everything from scratch, it helps.
Regards,
--=20
Konstantin 'Kastus' Shchuka
Unix System Administrator
ePocrates Inc.
tel 650.227.1786
fax 650.592.6995
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
------_=_NextPart_001_01C439E3.874BF98B
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D955174018-14052004>I do=20
the same thing with the off-site pool as Martin. In 4.5 it will=20
automatically add tapes from SCRATCH when it needs to. Also I =
trained the=20
24X7 operators to eject the tapes and deal with the offsite storage=20
company. They use NetBackup Administration Console from their=20
desktops. It was a little painful at first but well worth =
it. They=20
also add scratches and put tapes from offsite in an =
archive.</SPAN></FONT></DIV>
<BLOCKQUOTE>
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
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>Martin=20
Rohrbach NONLILLY<BR><B>Sent:</B> Thursday, May 13, 2004 3:27 =
AM<BR><B>To:</B>=20
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> Re:
[Veritas-bu]=20
bpduplicate tape selection question<BR><BR></FONT></DIV><BR><FONT=20
face=3Dsans-serif size=3D2>We have a seperate pool for the duplicated =
tapes as=20
well but we're using a slightly simpler approach to identify the tapes =
to=20
eject. </FONT><BR><BR><FONT face=3Dsans-serif size=3D2>The DUPLICATION =
pool just=20
grabs tapes from SCRATCH. That way you can tell after the duplication =
that all=20
tapes that are assigned and in the DUPLICATION pool and not in the =
library=20
have to be ejected.</FONT> <BR><BR><FONT face=3Dsans-serif =
size=3D2>And yes, we=20
think as well that it's worth having an additional tape with the =
catalog on=20
it.</FONT> <BR><BR><FONT face=3Dsans-serif size=3D2>Regards</FONT> =
<BR><BR><FONT=20
face=3Dsans-serif size=3D2>----</FONT> <BR><FONT face=3Dsans-serif =
size=3D2>Martin=20
Rohrbach</FONT> <BR><FONT face=3Dsans-serif size=3D2>Storage Projects=20
Analyst</FONT> <BR><FONT face=3Dsans-serif size=3D2>Eli Lilly and =
Company</FONT>=20
<BR><FONT face=3Dsans-serif =
size=3D2>+44-(0)1256-775811<BR></FONT><BR><BR><BR>
<TABLE width=3D"100%">
<TBODY>
<TR vAlign=3Dtop>
<TD>
<TD><FONT face=3Dsans-serif size=3D1><B>"Konstantin 'Kastus' =
Shchuka"=20
<kastus AT epocrates DOT com></B></FONT> <BR><FONT =
face=3Dsans-serif=20
size=3D1>Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu</FONT>
=
<P><FONT face=3Dsans-serif size=3D1>12/05/2004 20:32</FONT> </P>
<TD><FONT face=3DArial size=3D1> =
</FONT><BR><FONT=20
face=3Dsans-serif size=3D1> To: =
=20
veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT=20
face=3Dsans-serif size=3D1> cc: =
=20
</FONT> <BR><FONT face=3Dsans-serif size=3D1> =
=20
Subject: Re: =
[Veritas-bu]=20
bpduplicate tape selection=20
question</FONT></TR></TBODY></TABLE><BR><BR><BR><FONT size=3D2><TT>On =
Wed, May=20
12, 2004 at 12:12:21PM -0700, Ben Rockwood wrote:<BR>> =
Hello.<BR>>=20
<BR>> I'm working on building some offsite duplication scripts and =
<BR>>=20
methodologies. I'm hitting alittle hitch though. I can't =
see how=20
to <BR>> get bpduplicate to report which tape it selects for the=20
duplication. <BR>> Currently, I tell it to use a tape out of =
the=20
duplication pool (I'm just <BR>> using the default NB_Duplicate =
pool name)=20
without specifying exactly <BR>> which tape to use... the idea is =
that I=20
don't need to update the <BR>> duplication scripts daily/weekly =
with the=20
tape id, I can just keep the <BR>> duplication pool full of tapes.=20
<BR><BR>I'm using the same approach of keeping a pool of=20
tapes.<BR><BR>> But once the dup is done I can't find a <BR>> =
way of=20
automating the discovery of which tape it used in order to eject =
<BR>> it.=20
I can visually scan the medialist and tell which one it used, =
but I=20
<BR>> wouldn't want to script that method because it is inherently =
error=20
prone. <BR>> Is there anyway for bpduplicate to output the tape it =
used?=20
Or should I <BR>> just invoke this thing manually.<BR><BR>I =
keep a=20
copy of backup ids from bpduplicate command and then use a =
script<BR>to find=20
which tapes contain second copy of those backups.<BR><BR>bpduplicate =
is=20
invoked as follows:<BR><BR>$BPDUPLICATE -dstunit $DSTUNIT -v -Bidfile=20
$BIDLISTFILE -dp $POOL -L $BPDUPLOG<BR><BR>As bpduplicate deletes =
Bidfile, I=20
create a second copy of $BIDLISTFILE<BR>before executing=20
bpduplicate.<BR><BR>After running bpduplicate I =
call<BR><BR>MEDIA=3D$(cat=20
$BIDLISTFILESAVE | $MEDIALIST)<BR><BR>where MEDIALIST is the following =
=
script:<BR><BR>----------------------------------------------------------=
------<BR>#!/usr/bin/perl<BR>#=20
find media ids where copies were written<BR>#<BR>while (<>) =
{<BR> =20
open BPMEDIALIST,=20
"/usr/openv/netbackup/bin/admincmd/bpimagelist -l -bac<BR>kupid $_=20
|";<BR> while (<BPMEDIALIST>) =
{<BR> =20
split ;<BR> =
=20
$media{$_[8]} ++ if $_[0] eq =
'FRAG'=20
&& $_[1] =3D=3D 2 ;<BR> }<BR> =
=20
close BPMEDIALIST;<BR>}<BR>foreach $evsn ( sort keys =
%media )=20
{<BR> print "$evsn=20
=
";<BR>}<BR>--------------------------------------------------------------=
--<BR><BR><BR>>=20
<BR>> A little followup question... when doing offsites is it=20
worthwhile/wise <BR>> to put a NB catalog backup on the offsite =
tape=20
too?<BR><BR>I'm doing that. It takes an extra tape but in case you =
have to=20
restore<BR>everything from scratch, it helps.<BR><BR>Regards,<BR>--=20
<BR>Konstantin 'Kastus' Shchuka<BR>Unix System =
Administrator<BR>ePocrates=20
Inc.<BR>tel 650.227.1786<BR>fax=20
=
650.592.6995<BR>_______________________________________________<BR>Verita=
s-bu=20
maillist -=20
=
Veritas-bu AT mailman.eng.auburn DOT
edu<BR>http://mailman.eng.auburn.edu/=
mailman/listinfo/veritas-bu<BR></TT></FONT><BR></BLOCKQUOTE></BODY></HTML=
>
------_=_NextPart_001_01C439E3.874BF98B--
|