Veritas-bu

[Veritas-bu] Reading tar tapes from Netbackup

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

------=_NextPart_000_009D_01C1BAD5.103C1D20
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?sorry, I got the other way round regarding this. lol!

may be you can try to import the tape first. But I don't think it will =
work. Netbackup only see GNU tar format tape.
  ----- Original Message -----=20
  From: Dongfang Liao=20
  To: Diaz, Gustavo ; veritas-bu AT mailman.eng.auburn DOT edu=20
  Sent: Thursday, February 21, 2002 12:33 PM
  Subject: Re: [Veritas-bu] Reading tar tapes from Netbackup


  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_009D_01C1BAD5.103C1D20
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><FONT face=3D"Lucida Console" size=3D2>sorry, I =
got the other=20
way round&nbsp;regarding this. lol!</FONT>
<DIV><FONT face=3D"Lucida Console" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Lucida Console" size=3D2>may be you can try to import =
the tape=20
first. But I don't think it will work. Netbackup only see GNU tar format =

tape.</FONT></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=3Ddongfang.liao AT rogers DOT com=20
  href=3D"mailto:dongfang.liao AT rogers DOT com">Dongfang Liao</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dgdiaz AT hprmail DOT com=20
  href=3D"mailto:gdiaz AT hprmail DOT com">Diaz, Gustavo</A> ; <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 12:33=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Veritas-bu] =
Reading tar=20
  tapes from Netbackup</DIV>
  <DIV><BR></DIV>
  <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=20
  date =3D 09/21/99 14:19:<BR>&nbsp;Expiration date =3D 10/05/99=20
  14:19:<BR>&nbsp;Retention level =3D 1<BR>&nbsp;Copy number =3D =
1<BR>&nbsp;Fragment=20
  number =3D 1<BR>&nbsp;Block size (in bytes) =3D 32768</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Then work the tape on the Solaris machine with GNU tar command =
ready.=20
  (You can copy this command from your Solaris Platform with NetBackup =
software=20
  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;=20
  sense key(0x0)=3D No Additional Sense&nbsp;&nbsp; residual=3D =
0&nbsp;&nbsp;=20
  retries=3D 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;=20
  sense key(0x0)=3D No Additional Sense&nbsp;&nbsp; residual=3D =
0&nbsp;&nbsp;=20
  retries=3D 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;=20
  sense key(0x0)=3D No Additional Sense&nbsp;&nbsp; residual=3D =
0&nbsp;&nbsp;=20
  retries=3D 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=20
  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 =

  /dev/rmt/1cbn stat<BR>Vendor 'QUANTUM ' Product=20
  'DLT7000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' tape =
drive:<BR>&nbsp;=20
  sense key(0x0)=3D No Additional Sense&nbsp;&nbsp; residual=3D =
0&nbsp;&nbsp;=20
  retries=3D 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=20
  /etc/default/cron<BR>-r--r--r-- bin/bin&nbsp;&nbsp;&nbsp; Mar&nbsp; 5 =
12:45=20
  1999 /etc/default/fs<BR>-r--r--r-- root/sys&nbsp; Mar&nbsp; 5 12:45 =
1999=20
  /etc/default/inetinit<BR>-r--r--r-- root/sys&nbsp; Mar&nbsp; 5 12:45 =
1999=20
  /etc/default/kbd<BR>-r--r--r-- root/sys&nbsp;&nbsp; Mar&nbsp; 5 12:45 =
1999=20
  /etc/default/passwd<BR>-r--r--r-- root/sys&nbsp; Mar&nbsp; 5 12:45 =
1999=20
  /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 =

  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=20
    size=3D2>This may be a dumb question but, management is asking me if =
there is=20
    any way to read a tar tape created on&nbsp;a SUN box through =
Netbackup. We=20
    are running Netbackup Datacenter 3.4.1 on a WIN2K box with a STKL180 =
library=20
    with 4DLT8000 drives. They want to be able to read DLT tapes sent =
from=20
    customers through Netbackup and dump the contents to a=20
    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=20
    size=3D2>TIA </FONT></SPAN></DIV>
    <DIV><SPAN class=3D223182616-21022002><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>Gus =
Diaz</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_009D_01C1BAD5.103C1D20--


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