Veritas-bu

[Veritas-bu] Getting info on media format prior to backup

2003-07-31 14:45:15
Subject: [Veritas-bu] Getting info on media format prior to backup
From: Fabbro.Andrew AT cnf DOT com (Fabbro, Andrew P)
Date: Thu, 31 Jul 2003 11:45:15 -0700
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_01C35793.E1F6FC98
Content-Type: text/plain

Maybe someone else will know of an automated way.
 
A hack way would be to write a script that:
 
- uses tpreq to load the tape (e.g., $path/tpreq -ev $mediaid -d dlt -p
$poolname -f $hdr_tmpfile)
- mt -f to rewind
- dd if=$hdr_tmpfile bs=1024 | od -cx
- use tcopy to get the block size info
- mt -f to rewind
- tpunmount ot unmount
 
("mt" and "dd" are Unix commands - I don't know the Windows equivalents).
 
 
-- 
 Drew Fabbro [fabbro.andrew AT cnf DOT com] 
 Unix Systems Group 
 Desk: 503-450-3374 
 Cell: 503-701-0369 

-----Original Message-----
From: MOYES-CLARK,SHANNON (HP-FtCollins,ex1) [mailto:shannonm AT hp DOT com] 
Sent: Thursday, July 31, 2003 11:08 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Getting info on media format prior to backup


Hi all, 
 
    So I have this problem where media that is tar format (overwrite of tar
NOT set), or write protected or from another backup product where Netback up
can not read the media.  Operators have loaded this media into the library
and then they get picked up in the backup and the backup with that tape
fails.  I want to be able to test the media as to whether or not a backup
will be able to write to that media, all other factors not withstanding.  On
other backup products I can ask the library to actually read the tape header
and tell me basic info so that I can chose to eject that tape and not let a
backup even try the media, or I can overwrite/erase that tape. 
 
How do I do these things from Net Backup 4.5 (I do not have vault).
 
Thanks,
 
Shannon

Shannon J. Moyes Clark
Software Engineer
Storage Software Division
Hewlett Packard Company
shannon.moyes-clark AT hp DOT com < <mailto:shannon.moyes-clark AT hp DOT com
<mailto:shannon.moyes-clark AT hp DOT com> >>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All of that legal stuff about the opinions expressed here being mine and not
those of HP.


------_=_NextPart_001_01C35793.E1F6FC98
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>Message</TITLE>

<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff size=2>Maybe 
someone else will know of an automated way.</FONT></SPAN></DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff size=2>A 
hack 
way would be to write a script that:</FONT></SPAN></DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff size=2>- 
uses 
tpreq to&nbsp;</FONT></SPAN><SPAN class=077394218-31072003><FONT face=Arial 
color=#0000ff size=2>load the tape (e.g., $path/tpreq -ev $mediaid -d dlt -p 
$poolname -f $hdr_tmpfile)</FONT></SPAN></DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff size=2>- mt 
-f to rewind</FONT></SPAN></DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff size=2>- dd 
if=$hdr_tmpfile bs=1024 | od -cx<BR></FONT></SPAN><SPAN 
class=077394218-31072003><FONT face=Arial color=#0000ff size=2>- use tcopy to 
get the block size info</FONT></SPAN></DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff size=2>- mt 
-f to rewind</FONT></SPAN></DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff size=2>- 
tpunmount ot unmount</FONT></SPAN></DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=077394218-31072003><FONT face=Arial color=#0000ff size=2>("mt" 
and "dd" are Unix commands - I don't know the Windows 
equivalents).</FONT></SPAN></DIV>
<DIV><FONT face="Courier New" size=2><SPAN 
class=077394218-31072003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>--</FONT> <BR><FONT face="Courier New" 
size=2>&nbsp;Drew Fabbro [fabbro.andrew AT cnf DOT com]</FONT> <BR><FONT 
face="Courier New" size=2>&nbsp;Unix Systems Group</FONT> <BR><FONT 
face="Courier New" size=2>&nbsp;Desk: 503-450-3374</FONT> <BR><FONT 
face="Courier New" size=2>&nbsp;Cell: 503-701-0369</FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  MOYES-CLARK,SHANNON (HP-FtCollins,ex1) [mailto:shannonm AT hp DOT com] 
  <BR><B>Sent:</B> Thursday, July 31, 2003 11:08 AM<BR><B>To:</B> 
  veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu] 
Getting info 
  on media format prior to backup<BR><BR></FONT></DIV>
  <DIV>
  <DIV><SPAN class=314335920-30072003><FONT face=Arial color=#0000ff size=2>Hi 
  all, </FONT></SPAN></DIV>
  <DIV><SPAN class=314335920-30072003><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=314335920-30072003><FONT face=Arial><FONT color=#0000ff 
  size=2>&nbsp;&nbsp;&nbsp; So I have this problem where media that is tar 
  format (overwrite of tar NOT set), or write protected or from another backup 
  product where Netback up can not read the media.&nbsp; Operators have loaded 
  this media into the library and then they get picked up in the backup and the 
  backup with that tape fails.&nbsp; I want to be able to test the media as to 
  whether or not a backup will be able to write to that media, all other 
factors 
  not withstanding.&nbsp; On other backup products I can ask the library to 
  actually read the tape header and tell me basic info so that I can chose to 
  eject that tape and not let a backup even try the media, or I can 
  overwrite/erase that tape.&nbsp;</FONT></FONT></SPAN></DIV>
  <DIV><SPAN class=314335920-30072003><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=314335920-30072003><FONT face=Arial color=#0000ff size=2>How 
  do I do these things from Net Backup 4.5 (I do not have 
  vault).</FONT></SPAN></DIV>
  <DIV><SPAN class=314335920-30072003><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=314335920-30072003><FONT face=Arial color=#0000ff 
  size=2>Thanks,</FONT></SPAN></DIV>
  <DIV><SPAN class=314335920-30072003><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=314335920-30072003><SPAN class=109400518-31072003><FONT 
  face=Arial color=#0000ff size=2>Shannon</FONT></SPAN></SPAN></DIV></DIV><!-- 
Converted from text/plain format -->
  <P><FONT size=2>Shannon J. Moyes Clark<BR>Software Engineer<BR>Storage 
  Software Division<BR>Hewlett Packard Company<BR>shannon.moyes-clark AT hp DOT 
com 
  &lt; &lt;<A 
  href="mailto:shannon.moyes-clark AT hp DOT com">mailto:shannon.moyes-clark AT 
hp DOT com</A>&gt;&gt;<BR>- 
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<BR>All of 
  that legal stuff about the opinions expressed here being mine and not those 
of 
  HP.</FONT></P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C35793.E1F6FC98--

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