Veritas-bu

[Veritas-bu] Reading tar tapes from Netbackup

2002-02-21 12:33:50
Subject: [Veritas-bu] Reading tar tapes from Netbackup
From: dongfang.liao AT rogers DOT com (Dongfang Liao)
Date: Thu, 21 Feb 2002 12:33:50 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_0069_01C1BAD4.0412D260
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

RE: [Veritas-bu] Any tips on tuning Win2K NetBackup clients for better =
performance?Yeah. definitely you can. But you have to use GNU tar =
command, which is coming from the NetBackup, to read the tape.=20


First, figure out the fragment number and the block size needed.

Ex:

On your NetBackup Master, find out the position of the files that you =
are restoring.

# ./bpmedialist -mcontents -ev D0004
media id =3D D0004, allocated 09/21/99 14:19:, retention level =3D 1

File number 1
 Backup id =3D jeckle_0937941543
 Creation date =3D 09/21/99 14:19:
 Expiration date =3D 10/05/99 14:19:
 Retention level =3D 1
 Copy number =3D 1
 Fragment number =3D 1
 Block size (in bytes) =3D 32768

Then work the tape on the Solaris machine with GNU tar command ready. =
(You can copy this command from your Solaris Platform with NetBackup =
software installed. The directory is located in =
/usr/openv/netbackup/bin/ directory. ) :


home # mt -f /dev/rmt/1cbn rew (goes to beginning of tape)

home # mt -f /dev/rmt/1cbn stat (verify at beginning of tape)

Vendor 'QUANTUM ' Product 'DLT7000        ' tape drive:
  sense key(0x0)=3D No Additional Sense   residual=3D 0   retries=3D 0
  file no=3D 0   block no=3D 0
home # mt -f /dev/rmt/1cbn fsf (position to file #1)

home # mt -f /dev/rmt/1cbn stat (verify)
Vendor 'QUANTUM ' Product 'DLT7000        ' tape drive:
  sense key(0x0)=3D No Additional Sense   residual=3D 0   retries=3D 0
  file no=3D 1   block no=3D 0

home # mt -f /dev/rmt/1cbn fsr (position to record 1)

home # mt -f /dev/rmt/1cbn stat (verify)
Vendor 'QUANTUM ' Product 'DLT7000        ' tape drive:
  sense key(0x0)=3D No Additional Sense   residual=3D 0   retries=3D 0
  file no=3D 1   block no=3D 1


home # /usr/openv/netbackup/bin/tar -tvf /dev/rmt/1cbn (run tar command, =
if you don't have this command, copy from other solaris machine with =
NetBackup software installed.)
Blocksize =3D 2 records
Hmm, this doesn't look like a tar archive.
Skipping to next file header...

Since the tar command didn't work in the above scenario, run the stat =
command to see what file the
tape is positioned at:
home # mt -f /dev/rmt/1cbn stat
Vendor 'QUANTUM ' Product 'DLT7000        ' tape drive:
  sense key(0x0)=3D No Additional Sense   residual=3D 0   retries=3D 0
  file no=3D 1   block no=3D 2

home # /usr/openv/netbackup/bin/tar -tvf /dev/rmt/1cbn
Blocksize =3D 126 records
Hmm, this doesn't look like a tar archive.
Skipping to next file header...

drwxr-xr-x root/other  Jul 27 09:51 1999 /
drwxr-xr-x root/sys    Jul 27 07:36 1999 /etc/
drwxrwxr-x root/sys    Mar  8 14:27 1999 /etc/default/
-r--r--r-- root/sys  Oct 30 16:58 1996 /etc/default/sys-suspend
-r-xr-xr-x bin/bin    Mar  5 12:45 1999 /etc/default/cron
-r--r--r-- bin/bin    Mar  5 12:45 1999 /etc/default/fs
-r--r--r-- root/sys  Mar  5 12:45 1999 /etc/default/inetinit
-r--r--r-- root/sys  Mar  5 12:45 1999 /etc/default/kbd
-r--r--r-- root/sys   Mar  5 12:45 1999 /etc/default/passwd
-r--r--r-- root/sys  Mar  5 12:45 1999 /etc/default/tar

To get the information off of the tape execute:
/usr/openv/netbackup/bin/tar -xvf /dev/rmt/1cbn -b <BYTESIZE/512>

In this example <BYTESIZE/512> is 32768 / 512, which equals 64.

  ----- Original Message -----=20
  From: Diaz, Gustavo=20
  To: veritas-bu AT mailman.eng.auburn DOT edu=20
  Sent: Thursday, February 21, 2002 11:30 AM
  Subject: [Veritas-bu] Reading tar tapes from Netbackup


  This may be a dumb question but, management is asking me if there is =
any way to read a tar tape created on a SUN box through Netbackup. We =
are running Netbackup Datacenter 3.4.1 on a WIN2K box with a STKL180 =
library with 4DLT8000 drives. They want to be able to read DLT tapes =
sent from customers through Netbackup and dump the contents to a =
directory.

  TIA=20
  Gus Diaz

------=_NextPart_000_0069_01C1BAD4.0412D260
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><TITLE>RE: [Veritas-bu] Any tips on tuning Win2K NetBackup =
clients for better performance?</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Lucida Console" size=3D2>Yeah. definitely&nbsp;you =
can. But you=20
have to use GNU tar command, which is coming from the NetBackup, to read =
the=20
tape. </FONT></DIV>
<DIV><FONT face=3D"Lucida Console" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Lucida Console" size=3D2>&nbsp;</DIV>
<DIV>First, figure out the fragment number and the block size =
needed.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ex:</DIV>
<DIV>&nbsp;</DIV>
<DIV>On your NetBackup Master, find out the position of the files that =
you are=20
restoring.</DIV>
<DIV>&nbsp;</DIV>
<DIV># ./bpmedialist -mcontents -ev D0004<BR>media id =3D D0004, =
allocated=20
09/21/99 14:19:, retention level =3D 1</DIV>
<DIV>&nbsp;</DIV>
<DIV>File number 1<BR>&nbsp;Backup id =3D =
jeckle_0937941543<BR>&nbsp;Creation date=20
=3D 09/21/99 14:19:<BR>&nbsp;Expiration date =3D 10/05/99 =
14:19:<BR>&nbsp;Retention=20
level =3D 1<BR>&nbsp;Copy number =3D 1<BR>&nbsp;Fragment number =3D =
1<BR>&nbsp;Block=20
size (in bytes) =3D 32768</DIV>
<DIV>&nbsp;</DIV>
<DIV>Then work the tape on the Solaris machine with GNU tar command =
ready. (You=20
can copy this command from your Solaris Platform with NetBackup software =

installed. The directory is located in /usr/openv/netbackup/bin/ =
directory. )=20
:</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>home # mt -f /dev/rmt/1cbn rew (goes to beginning of =
tape)</DIV>
<DIV>&nbsp;</DIV>
<DIV>home # mt -f /dev/rmt/1cbn stat (verify at beginning of tape)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Vendor 'QUANTUM ' Product=20
'DLT7000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' tape =
drive:<BR>&nbsp; sense=20
key(0x0)=3D No Additional Sense&nbsp;&nbsp; residual=3D 0&nbsp;&nbsp; =
retries=3D=20
0<BR>&nbsp; file no=3D 0&nbsp;&nbsp; block no=3D 0</DIV>
<DIV>home # mt -f /dev/rmt/1cbn fsf (position to file #1)</DIV>
<DIV>&nbsp;</DIV>
<DIV>home # mt -f /dev/rmt/1cbn stat (verify)<BR>Vendor 'QUANTUM ' =
Product=20
'DLT7000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' tape =
drive:<BR>&nbsp; sense=20
key(0x0)=3D No Additional Sense&nbsp;&nbsp; residual=3D 0&nbsp;&nbsp; =
retries=3D=20
0<BR>&nbsp; file no=3D 1&nbsp;&nbsp; block no=3D 0</DIV>
<DIV>&nbsp;</DIV>
<DIV>home # mt -f /dev/rmt/1cbn fsr (position to record 1)</DIV>
<DIV>&nbsp;</DIV>
<DIV>home # mt -f /dev/rmt/1cbn stat (verify)<BR>Vendor 'QUANTUM ' =
Product=20
'DLT7000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' tape =
drive:<BR>&nbsp; sense=20
key(0x0)=3D No Additional Sense&nbsp;&nbsp; residual=3D 0&nbsp;&nbsp; =
retries=3D=20
0<BR>&nbsp; file no=3D 1&nbsp;&nbsp; block no=3D 1</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>home # /usr/openv/netbackup/bin/tar -tvf /dev/rmt/1cbn (run tar =

command, if you don't have this command, copy from other solaris machine =
with=20
NetBackup software installed.)<BR>Blocksize =3D 2 records<BR>Hmm, this =
doesn't=20
look like a tar archive.<BR>Skipping to next file header...</DIV>
<DIV>&nbsp;</DIV>
<DIV>Since the tar command didn't work in the above scenario, run the =
stat=20
command to see what file the<BR>tape is positioned at:<BR>home # mt -f=20
/dev/rmt/1cbn stat<BR>Vendor 'QUANTUM ' Product=20
'DLT7000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' tape =
drive:<BR>&nbsp; sense=20
key(0x0)=3D No Additional Sense&nbsp;&nbsp; residual=3D 0&nbsp;&nbsp; =
retries=3D=20
0<BR>&nbsp; file no=3D 1&nbsp;&nbsp; block no=3D 2</DIV>
<DIV>&nbsp;</DIV>
<DIV>home # /usr/openv/netbackup/bin/tar -tvf /dev/rmt/1cbn<BR>Blocksize =
=3D 126=20
records<BR>Hmm, this doesn't look like a tar archive.<BR>Skipping to =
next file=20
header...</DIV>
<DIV>&nbsp;</DIV>
<DIV>drwxr-xr-x root/other&nbsp; Jul 27 09:51 1999 /<BR>drwxr-xr-x=20
root/sys&nbsp;&nbsp;&nbsp; Jul 27 07:36 1999 /etc/<BR>drwxrwxr-x=20
root/sys&nbsp;&nbsp;&nbsp; Mar&nbsp; 8 14:27 1999 =
/etc/default/<BR>-r--r--r--=20
root/sys&nbsp; Oct 30 16:58 1996 /etc/default/sys-suspend<BR>-r-xr-xr-x=20
bin/bin&nbsp;&nbsp;&nbsp; Mar&nbsp; 5 12:45 1999 =
/etc/default/cron<BR>-r--r--r--=20
bin/bin&nbsp;&nbsp;&nbsp; Mar&nbsp; 5 12:45 1999 =
/etc/default/fs<BR>-r--r--r--=20
root/sys&nbsp; Mar&nbsp; 5 12:45 1999 =
/etc/default/inetinit<BR>-r--r--r--=20
root/sys&nbsp; Mar&nbsp; 5 12:45 1999 /etc/default/kbd<BR>-r--r--r--=20
root/sys&nbsp;&nbsp; Mar&nbsp; 5 12:45 1999 =
/etc/default/passwd<BR>-r--r--r--=20
root/sys&nbsp; Mar&nbsp; 5 12:45 1999 /etc/default/tar</DIV>
<DIV>&nbsp;</DIV>
<DIV>To get the information off of the tape=20
execute:<BR>/usr/openv/netbackup/bin/tar -xvf /dev/rmt/1cbn -b=20
&lt;BYTESIZE/512&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>In this example &lt;BYTESIZE/512&gt; is 32768 / 512, which equals=20
64.</FONT></DIV>
<DIV><FONT face=3D"Lucida Console" size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dgdiaz AT hprmail DOT com href=3D"mailto:gdiaz AT hprmail DOT 
com">Diaz, =
Gustavo</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  title=3Dveritas-bu AT mailman.eng.auburn DOT edu=20
  =
href=3D"mailto:veritas-bu AT mailman.eng.auburn DOT edu">veritas-bu AT mailman 
DOT eng.=
auburn.edu</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, February 21, =
2002 11:30=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Veritas-bu] Reading =
tar tapes=20
  from Netbackup</DIV>
  <DIV><FONT face=3D"Lucida Console" size=3D2></FONT><BR></DIV>
  <DIV><SPAN class=3D223182616-21022002><FONT face=3DArial =
color=3D#0000ff size=3D2>This=20
  may be a dumb question but, management is asking me if there is any =
way to=20
  read a tar tape created on&nbsp;a SUN box through Netbackup. We are =
running=20
  Netbackup Datacenter 3.4.1 on a WIN2K box with a STKL180 library with =
4DLT8000=20
  drives. They want to be able to read DLT tapes sent from customers =
through=20
  Netbackup and dump the contents to a directory.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D223182616-21022002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D223182616-21022002><FONT face=3DArial =
color=3D#0000ff size=3D2>TIA=20
  </FONT></SPAN></DIV>
  <DIV><SPAN class=3D223182616-21022002><FONT face=3DArial =
color=3D#0000ff size=3D2>Gus=20
  Diaz</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0069_01C1BAD4.0412D260--


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