home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14498 < prev    next >
Encoding:
Text File  |  1993-01-04  |  4.4 KB  |  121 lines

  1. Newsgroups: comp.sys.hp,comp.sys.admin
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!iem!joe
  3. From: joe@iem.com (Joe Nemeth)
  4. Subject: Re: Convertion from 1/4 to DAT
  5. Message-ID: <C0CL2q.H9B@iem.com>
  6. Date: Mon, 4 Jan 1993 21:01:35 GMT
  7. References: <Dec31.181646.27937@yuma.ACNS.ColoState.EDU>
  8. Organization: IEM, Inc.
  9. X-Newsreader: Tin 1.1 PL4
  10. Lines: 109
  11.  
  12. dan@lamar.ColoState.EDU (Danilo Silva) writes:
  13. : We have some old sets of backup (in 1/4-inch cartridge tapes) that I 
  14. : would like to convert to DDS (DAT) tapes.
  15. : We need to do that for two main reasons: 
  16. : - We need to get rid of the cartridge autochanger.
  17. : - One DAT tape is much smaller and easier to store than sets of 8 
  18. : cartridge tapes.
  19. : Could somebody please give me a light on this problem? Please ...
  20. : THANKS in advance for any hints and have all a great 1993,
  21. : Dan Silva - dan@lamar.colostate.edu
  22. :             A description follows:
  23. : Hardware (HP9000-835, HP-UX 8.0):
  24. : ========
  25. : FROM:
  26. : ----
  27. : The old backups are store in sets of 8 cartridges. The device used was 
  28. : the HP 35401A ( 1/4-inch Cartridge Autochanger Tape Subsystem).
  29. : TO:
  30. : --
  31. : The new backups will be stored on DDS (DAT) tapes, and the device to 
  32. : be used is a HP 6400-1300s drive 
  33. : (1.3 GByte DAT drive).
  34. : Backup PROCEDURE:
  35. : ================
  36. : The following procedure was used with the cartridges for backup:
  37. : /etc/fbackup -I /usr/adm/fbackupfiles/system.log -0uf - -g 
  38. : /users/root/backups/systemgraph | compress | tcio -oV -S 8 -l 1 
  39. : /dev/rct/c5d0s2
  40. : The retrieval process is the following:
  41. : tcio -i -l 1 -n 8 /dev/rct/c5d0s2 | uncompress | frecover -xf - -i 
  42. : FILENAME(s)
  43. : PROPOSED SOLUTION (which did NOT work):
  44. : =================  ------------------
  45. : Extract the whole compressed backup and re-direct it to the DAT drive 
  46. : (/dev/rmt/0m):
  47. : tcio -i -l 1 -n 8 /dev/rct/c5d0s2 > /dev/rmt/0m
  48.  
  49. The problem is that on 9T and DDS media, there is some additional
  50. structure to the information that is not present in the stdout image
  51. you are producing and piping through tcio.  The fbackup image consists
  52. of 4 "files" on the DDS tape, delimited by file/set marks.  When you
  53. deliver the output of tcio directly to the DDS drive, you get a single
  54. monolithic file, and frecover can't handle it.
  55.  
  56. I played with this a little, with a small file set on an HP 340
  57. running HP-UX 8.0, and came up with the following possible workaround:
  58.  
  59. $ tcio -i -S 8 /dev/rct|/etc/frecover -V volhead -f -
  60. $ cat volhead
  61. ...
  62. Index Size:1061
  63. ...
  64. $ let "x=(1061+1023)/1024"
  65. $ let "y=3+$x"
  66. $ tcio -i -S 8 /dev/rct|dd of=/dev/rmt/0mn ibs=1k obs=8k skip=0 count=1
  67. $ tcio -i -S 8 /dev/rct|dd of=/dev/rmt/0mn ibs=1k obs=8k skip=1 count=2
  68. $ tcio -i -S 8 /dev/rct|dd of=/dev/rmt/0mn ibs=1k obs=8k skip=3 count=$x
  69. $ tcio -i -S 8 /dev/rct|dd of=/dev/rmt/0mn ibs=1k obs=8k skip=$y
  70.  
  71. You need to make sure that you use NO-REWIND mode on the DAT drive
  72. (0mn, not 0m), which is part of the minor number for the device file.
  73. Note that some computed values based on the index size (in bytes) are
  74. needed for skipping and counting properly for the "index" file, which
  75. is copied in line 3 above.  Your much larger backup will have a much
  76. larger index than my paltry 1061 bytes.
  77.  
  78. Omitting the count in line 4 will copy the remainder of the cartridge
  79. tape to the DDS, since tcio doesn't know when to stop.  This means
  80. that you will copy any garbage from the end of the cartridge to the
  81. DDS tape, but this doesn't appear to hurt anything.  If you only have
  82. a small bit of data on the last tape, you may want to specify a count
  83. that is big enough to contain everything on the tape, but small enough
  84. so it doesn't take all day.
  85.  
  86. I don't know exactly what the header information on second and
  87. subsequent cartridge tapes looks like, so you may have to play a
  88. little with these to find out exactly how you have to split them up:
  89. however, from my reading of the documentation, every fbackup tape in a
  90. set looks like every other tape, so you should be able to use the same
  91. method to copy each of your cartridge tapes.
  92.  
  93. Note that if you want to somehow splice your multiple 1/4" cartridges
  94. into a single DDS tape, you will have to do a lot more work, since you
  95. will probably need to strip the trailers and headers and worry about
  96. how to splice the data seamlessly, so frecover doesn't get confused.
  97. Unless someone posts a ready-made utility to do the job, I'd recommend
  98. that you just copy tape-for-tape.
  99.  
  100. Hope this helps a little.
  101.  
  102. --
  103. Joseph C. Nemeth    joe@iem.com
  104.