Veritas-bu

[Veritas-bu] Recovering a whole tape via cmd line.

2003-02-26 19:29:05
Subject: [Veritas-bu] Recovering a whole tape via cmd line.
From: curtis-lists AT thestoragegroup DOT com (W. Curtis Preston)
Date: Wed, 26 Feb 2003 16:29:05 -0800
This is a multi-part message in MIME format.

------=_NextPart_000_0385_01C2DDB4.2E6FB600
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Your mileage will vary on using tar to read images that span tapes. ;)

-----Original Message-----
From: Andrew Wilkin [mailto:Andrew.Wilkin AT ditm.nsw.gov DOT au]=20
Sent: Wednesday, February 26, 2003 2:44 PM
To: 'W. Curtis Preston'
Subject: RE: [Veritas-bu] Recovering a whole tape via cmd line.


Hi Curtis,
=20
Thanks for you reply, I have a HPUX 11.00, so having access to the =
'tape'
utilities is no problem.
=20
I have just run an 'Images on Tape" report and the first Image is =
actually a
'spanned' image from a previous tape (I'll use NetBackup to extract this
file!!). But the process I'm thinking of using to extract the data is :-
=20
1. mt -t <tape-mnt> fsf 2                                     #  Skip =
the
spanned Image and header
2. /usr/openv/netbackup/bin/tar -xvf <tape-mnt>    #  Extract the Image =
data
3. mt -t <tape-mnt> fsf                                        #  Skip =
the
header
4. /usr/openv/netbackup/bin/tar -xvf <tape-mnt>     #  Extract the Image
data
=20
Repeating steps 3. & 4 until all Images extracted. The final Image may =
also
span to the following tape so I'll use NetBackup to extract it also.
=20
Would the process above work?
=20
Thanks
=20
Regards=20

Andrew Wilkin=20
Computer Systems Analyst=20

Department of Information Technology & Management=20
Land & Property Information - New South Wales=20

Panorama Ave=20
BATHURST, NSW, 2795, AUSTRALIA=20

Ph: (02) 6332 8397=20
Fx: (02) 6332 8457=20
E-mail: Andrew.Wilkin AT ditm.nsw.gov DOT au=20
WEB: www.lpi.nsw.gov.au <http://www.lpi.nsw.gov.au/> =20

-----Original Message-----
From: W. Curtis Preston [mailto:curtis AT thestoragegroup DOT com]
Sent: Thursday, 27 February 2003 9:05 AM
To: 'jerome bauwens'; 'Andrew Wilkin'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Recovering a whole tape via cmd line.


Two caveats:
1. You can't do this if you've multiplexed the tape, or if you have =
chosen a
fragment size of anything other than 0.
2. You can't do this on Windows unless you have the MKS toolkit
(http://www.mkssoftware.com/products/tk/ds_tksa.asp)
    (That's the only way _I_ know of to get the MT command on Windows, =
and
you have to download the ASPI drivers for your SCSI card.)

-----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 jerome =
bauwens
Sent: Wednesday, February 26, 2003 5:43 AM
To: Andrew Wilkin; veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Recovering a whole tape via cmd line.


Hi,
=20
You can do it but you need to position yourself on the right record on =
the
tape because one out of two record is a NetBackup header. You will also =
have
some troubles resolving links if you are not restoring on the original
location.
=20
mt -f /dev/rmt/4cb rewind=20

[zeus]:/transferts/hetre_tar >mt -f /dev/rmt/4cbn fsf=20

[zeus]:/transferts/hetre_tar >mt -f /dev/rmt/4cbn fsr=20

[zeus]:/transferts/hetre_tar >mt -f /dev/rmt/4cbn stat=20

Quantum DLT8000 tape drive:

sense key(0x0)=3D No Additional Sense residual=3D 0 retries=3D 0

file no=3D 1 block no=3D 1

[zeus]:/transferts/hetre_tar>/usr/openv/netbackup/bin/tar -xvf =
/dev/rmt/4cbn

.

[zeus]:/transferts/hetre_tar >mt -f /dev/rmt/4cb rewind=20

[zeus]:/transferts/hetre_tar >mt -f /dev/rmt/4cbn fsf 3=20

[zeus]:/transferts/hetre_tar >mt -f /dev/rmt/4cbn fsr

[zeus]:/transferts/hetre_tar>/usr/openv/netbackup/bin/tar -xvf =
/dev/rmt/4cbn

=20

Hope this helps

Jerome

----- Original Message -----=20
From: Andrew Wilkin <mailto:Andrew.Wilkin AT ditm.nsw.gov DOT au> =20
To: 'veritas-bu AT mailman.eng.auburn DOT edu'=20
Sent: Wednesday, February 26, 2003 6:35 AM
Subject: [Veritas-bu] Recovering a whole tape via cmd line.


Hi,=20

Is there a "quick" way of extracting/recoverying the content of a =
NetBackup
tape withou having to identify the directoryies/files that make up =
images on
the Tape.

I have tracked the data and know what tape it is on but I seem to have =
to
identify it all to recovery it through the gui.

Because Netbackup is using 'gnutar', can I use a gnutar cmd to extract =
'all'
of the backup images on the tape.=20

Thanks.=20

Regards=20

Andrew Wilkin
Computer Systems Analyst=20

Department of Information Technology & Management
Land & Property Information - New South Wales=20

Panorama Ave
BATHURST, NSW, 2795, AUSTRALIA=20

Ph: (02) 6332 8397
Fx: (02) 6332 8457
E-mail: Andrew.Wilkin AT ditm.nsw.gov DOT au
WEB: www.lpi.nsw.gov.au <http://www.lpi.nsw.gov.au>=20




***************************************************************
This message is intended for the addressee named and=20
may contain confidential information. If you are not the=20
intended recipient, please delete it and notify the sender.=20
Views expressed in this message are those of the=20
individual sender, and are not necessarily the views of the
Department of Information Technology & Management.

This email message has been swept by MIMEsweeper=20
for the presence of computer viruses.
***************************************************************



------=_NextPart_000_0385_01C2DDB4.2E6FB600
Content-Type: text/html;
        charset="us-ascii"
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=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D460282800-27022003><FONT face=3DArial color=3D#0000ff =
size=3D2>Your=20
mileage will vary on using tar to read images that span tapes.=20
;)</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
Andrew Wilkin=20
  [mailto:Andrew.Wilkin AT ditm.nsw.gov DOT au] <BR><B>Sent:</B> Wednesday, =
February=20
  26, 2003 2:44 PM<BR><B>To:</B> 'W. Curtis Preston'<BR><B>Subject:</B> =
RE:=20
  [Veritas-bu] Recovering a whole tape via cmd =
line.<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D160253322-26022003>Hi=20
  Curtis,</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003>Thanks for you reply, I have a HPUX 11.00, =
so having=20
  access to the 'tape' utilities is no problem.</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D160253322-26022003>I=20
  have just run an 'Images on Tape" report and the first Image is =
actually a=20
  'spanned' image from a previous tape (I'll use NetBackup to extract =
this=20
  file!!). But the process I'm thinking of using to extract the data is=20
  :-</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D160253322-26022003>1.=20
  mt -t &lt;tape-mnt&gt; fsf=20
  =
2&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  #&nbsp; Skip the spanned Image and header</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D160253322-26022003>2.=20
  /usr/openv/netbackup/bin/tar -xvf &lt;tape-mnt&gt;&nbsp;&nbsp;&nbsp; =
#&nbsp;=20
  Extract the Image data</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D160253322-26022003>3.=20
  mt -t &lt;tape-mnt&gt;=20
  =
fsf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&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
  #&nbsp; Skip the header</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D160253322-26022003>4.=20
  /usr/openv/netbackup/bin/tar -xvf =
&lt;tape-mnt&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
  #&nbsp; Extract the Image data</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003>Repeating steps 3. &amp; 4 until all Images =

  extracted. The final Image may also span to the following tape so I'll =
use=20
  NetBackup to extract it also.</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003>Would the process above =
work?</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003>Thanks</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D160253322-26022003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D160253322-26022003>
  <P><FONT face=3DArial size=3D2>Regards</FONT> </P>
  <P><FONT face=3DArial color=3D#000080 size=3D2>Andrew Wilkin</FONT> =
<BR><FONT=20
  face=3DArial size=3D2>Computer Systems Analyst</FONT> </P>
  <P><FONT face=3DArial size=3D2>Department of Information Technology =
&amp;=20
  Management</FONT> <BR><FONT face=3DArial size=3D2>Land &amp; Property =
Information=20
  - New South Wales</FONT> </P>
  <P><FONT face=3DArial size=3D2>Panorama Ave</FONT> <BR><FONT =
face=3DArial=20
  size=3D2>BATHURST, NSW, 2795, AUSTRALIA</FONT> </P>
  <P><FONT face=3DArial size=3D2>Ph: (02) 6332 8397</FONT> <BR><FONT =
face=3DArial=20
  size=3D2>Fx: (02) 6332 8457</FONT> <BR><FONT face=3DArial =
size=3D2>E-mail:=20
  Andrew.Wilkin AT ditm.nsw.gov DOT au</FONT> <BR><FONT face=3DArial =
size=3D2>WEB: <A=20
  href=3D"http://www.lpi.nsw.gov.au/";>www.lpi.nsw.gov.au</A></FONT>=20
  </P></SPAN></FONT></DIV>
  <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
    <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
    size=3D2>-----Original Message-----<BR><B>From:</B> W. Curtis =
Preston=20
    [mailto:curtis AT thestoragegroup DOT com]<BR><B>Sent:</B> Thursday, 27 =
February=20
    2003 9:05 AM<BR><B>To:</B> 'jerome bauwens'; 'Andrew Wilkin';=20
    veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE: =
[Veritas-bu]=20
    Recovering a whole tape via cmd line.<BR><BR></DIV></FONT>
    <DIV><SPAN class=3D179105217-26022003><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>Two caveats:</FONT></SPAN></DIV>
    <DIV><SPAN class=3D179105217-26022003><FONT face=3DArial =
color=3D#0000ff size=3D2>1.=20
    You can't do this if you've multiplexed the tape, or if you have =
chosen a=20
    fragment size of anything other than 0.</FONT></SPAN></DIV>
    <DIV><SPAN class=3D179105217-26022003><FONT face=3DArial =
color=3D#0000ff size=3D2>2.=20
    You can't do this on Windows unless you have the MKS toolkit (<A=20
    =
href=3D"http://www.mkssoftware.com/products/tk/ds_tksa.asp";>http://www.mk=
ssoftware.com/products/tk/ds_tksa.asp</A>)</FONT></SPAN></DIV>
    <DIV><SPAN class=3D179105217-26022003><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>&nbsp;&nbsp;&nbsp; (That's the only way _I_ know of to get =
the MT=20
    command on Windows, and you have to download the ASPI drivers for =
your SCSI=20
    card.)</FONT></SPAN></DIV>
    <BLOCKQUOTE dir=3Dltr=20
    style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff =
2px solid; MARGIN-RIGHT: 0px">
      <DIV></DIV>
      <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
      face=3DTahoma 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=20
      </B>jerome bauwens<BR><B>Sent:</B> Wednesday, February 26, 2003 =
5:43=20
      AM<BR><B>To:</B> Andrew Wilkin;=20
      veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> Re: =
[Veritas-bu]=20
      Recovering a whole tape via cmd line.<BR><BR></FONT></DIV>
      <DIV><FONT face=3DArial>Hi,</FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT face=3DArial>You can do it but you need to position =
yourself on=20
      the right record on the tape because one out of two record is a =
NetBackup=20
      header. You will also have some troubles resolving links if you =
are not=20
      restoring on the original location.</FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT face=3Dr_ansi size=3D2>
      <P>mt -f /dev/rmt/4cb rewind </P>
      <P>[zeus]:/transferts/hetre_tar &gt;mt -f /dev/rmt/4cbn fsf </P>
      <P>[zeus]:/transferts/hetre_tar &gt;mt -f /dev/rmt/4cbn fsr </P>
      <P>[zeus]:/transferts/hetre_tar &gt;mt -f /dev/rmt/4cbn stat </P>
      <P>Quantum DLT8000 tape drive:</P>
      <P>sense key(0x0)=3D No Additional Sense residual=3D 0 retries=3D =
0</P>
      <P>file no=3D 1 block no=3D 1</P></FONT><FONT face=3Dr_ansi =
size=3D1>
      <P>[zeus]:/transferts/hetre_tar&gt;/usr/openv/netbackup/bin/tar =
&#8211;xvf=20
      /dev/rmt/4cbn</P></FONT><FONT size=3D2>
      <P>&#8230;</P></FONT><FONT face=3Dr_ansi size=3D2>
      <P>[zeus]:/transferts/hetre_tar &gt;mt -f /dev/rmt/4cb rewind </P>
      <P>[zeus]:/transferts/hetre_tar &gt;mt -f /dev/rmt/4cbn fsf 3 </P>
      <P>[zeus]:/transferts/hetre_tar &gt;mt -f /dev/rmt/4cbn=20
      fsr</P></FONT><FONT face=3Dr_ansi size=3D1>
      <P>[zeus]:/transferts/hetre_tar&gt;/usr/openv/netbackup/bin/tar =
&#8211;xvf=20
      /dev/rmt/4cbn</P>
      <P><FONT face=3DArial size=3D2></FONT>&nbsp;</P>
      <P><FONT face=3DArial size=3D2>Hope this helps</FONT></P>
      <P>Jerome</P></FONT></DIV>
      <BLOCKQUOTE=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=3DAndrew.Wilkin AT ditm.nsw.gov DOT au=20
        href=3D"mailto:Andrew.Wilkin AT ditm.nsw.gov DOT au">Andrew Wilkin</A> =
</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'">'[email protected]=
ng.auburn.edu'</A>=20
        </DIV>
        <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, February =
26, 2003=20
        6:35 AM</DIV>
        <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Veritas-bu] =
Recovering a=20
        whole tape via cmd line.</DIV>
        <DIV><BR></DIV>
        <P><FONT face=3DArial size=3D2>Hi,</FONT> </P>
        <P><FONT face=3DArial size=3D2>Is there a "quick" way of=20
        extracting/recoverying the content of a NetBackup tape withou =
having to=20
        identify the directoryies/files that make up images on the=20
        Tape.</FONT></P>
        <P><FONT face=3DArial size=3D2>I have tracked the data and know =
what tape it=20
        is on but I seem to have to identify it all to recovery it =
through the=20
        gui.</FONT></P>
        <P><FONT face=3DArial size=3D2>Because Netbackup is using =
'gnutar', can I=20
        use a gnutar cmd to extract 'all' of the backup images on the =
tape.=20
        </FONT></P>
        <P><FONT face=3DArial size=3D2>Thanks.</FONT> </P>
        <P><FONT face=3DArial size=3D2>Regards</FONT><FONT face=3DArial> =
</FONT></P>
        <P><FONT face=3DArial color=3D#000080 size=3D2>Andrew =
Wilkin</FONT><FONT=20
        face=3DArial><BR></FONT><FONT face=3DArial size=3D2>Computer =
Systems=20
        Analyst</FONT><FONT face=3DArial> </FONT></P>
        <P><FONT face=3DArial size=3D2>Department of Information =
Technology &amp;=20
        Management</FONT><FONT face=3DArial><BR></FONT><FONT =
face=3DArial=20
        size=3D2>Land &amp; Property Information - New South =
Wales</FONT><FONT=20
        face=3DArial> </FONT></P>
        <P><FONT face=3DArial size=3D2>Panorama Ave</FONT><FONT=20
        face=3DArial><BR></FONT><FONT face=3DArial size=3D2>BATHURST, =
NSW, 2795,=20
        AUSTRALIA</FONT><FONT face=3DArial> </FONT></P>
        <P><FONT face=3DArial size=3D2>Ph: (02) 6332 8397</FONT><FONT=20
        face=3DArial><BR></FONT><FONT face=3DArial size=3D2>Fx: (02) =
6332=20
        8457</FONT><FONT face=3DArial><BR></FONT><FONT face=3DArial =
size=3D2>E-mail:=20
        Andrew.Wilkin AT ditm.nsw.gov DOT au</FONT><FONT =
face=3DArial><BR></FONT><FONT=20
        face=3DArial size=3D2>WEB:<U></U></FONT><U> <FONT face=3DArial =
color=3D#0000ff=20
        size=3D2>www.lpi.nsw.gov.au &lt;<A =
href=3D"http://www.lpi.nsw.gov.au"=20
        =
target=3D_blank>http://www.lpi.nsw.gov.au</A>&gt;</FONT></U><FONT=20
        face=3DArial> </FONT></P><BR><CODE><FONT=20
        =
size=3D3><BR><BR>********************************************************=
*******<BR>This=20
        message is intended for the addressee named and <BR>may contain=20
        confidential information. If you are not the <BR>intended =
recipient,=20
        please delete it and notify the sender. <BR>Views expressed in =
this=20
        message are those of the <BR>individual sender, and are not =
necessarily=20
        the views of the<BR>Department of Information Technology &amp;=20
        Management.<BR><BR>This email message has been swept by =
MIMEsweeper=20
        <BR>for the presence of computer=20
        =
viruses.<BR>*************************************************************=
**<BR></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT></CODE><=
/BODY></HTML>

------=_NextPart_000_0385_01C2DDB4.2E6FB600--


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