home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp / 12851 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  9.4 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!caen!sdd.hp.com!hp-col!fc.hp.com!rjn
  2. From: rjn@FC.HP.COM (Bob Niland)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: multiple tape files on 9144
  5. Message-ID: <BxMFv8.H48@fc.hp.com>
  6. Date: 12 Nov 92 21:04:20 GMT
  7. Article-I.D.: fc.BxMFv8.H48
  8. References: <JEFF.92Nov12091641@dsndata.uucp>
  9. Sender: news@fc.hp.com (news daemon)
  10. Reply-To: rjn@FC.HP.COM
  11. Distribution: comp
  12. Organization: Hewlett-Packard/WSY Ft.Collins,CO,USA
  13. Lines: 218
  14. X-Newsreader: TIN [version 1.1.8 PL6]
  15.  
  16. Jeff Minnig (jeff@dsndata.uucp) wrote:
  17.  
  18. > I have an application that needs to write multiple tape files to cs80
  19. > cartridge tapes on a 9144 tape drive.
  20.  
  21. Here's the discussion from the last time this question came up...
  22.  
  23. From fc.hp.com!hp-col!sdd.hp.com!wupost!uunet!gatech!ncar!ico!spatial!alek Thu Nov 12 13:59:45 1992
  24. Newsgroups: comp.sys.hp
  25. Path: fc.hp.com!hp-col!sdd.hp.com!wupost!uunet!gatech!ncar!ico!spatial!alek
  26. From: alek@spatial.com (Alek O. Komarnitsky)
  27. Subject: Can "mt" commands be using on 1/4" Cartrdige tape on HP400's w/HP-UX8.0?
  28. Message-ID: <1992Sep12.011714.11077@spatial.com>
  29. Originator: alek@spatial
  30. Sender: usenet@spatial.com
  31. Organization: Spatial Technology, Inc. (Boulder, Colorado)
  32. Date: Sat, 12 Sep 1992 01:17:14 GMT
  33. Lines: 23
  34.  
  35. Subject line pretty much says it all. A user here wants to put several tar 
  36. files as seperate "savesets" on a single tape. One can do this on DAT or 
  37. Sun 1/4" tape drives by using multiple tar commands and being sure to specify
  38. the no-rewind device. However, I have not been able to figure out what
  39. to use for the HP 1/4" tape drive connected via HP-IB (HP400 w/HP-UX8.0)
  40.  
  41. The tape drive works fine for all others sort of commands. Here's some
  42. output when I try to use the mt command: 
  43.    balu (ALEK) ls -l /dev/update.src
  44.    crw-rw-rw-   1 root     root       4 0x070200 Sep 11 13:12 /dev/update.src
  45.    balu (ALEK) mt -t /dev/update.src rew
  46.    rewind 1 failed: Invalid argument
  47.  
  48. The Installing Peripherals Manual is pretty sketchy here, but it appears that
  49. all the minor numbers are allready used for other stuff. In addition, there's
  50. an on-line man page for "mkdev", but it does not seem to exist in /etc/mkdev
  51. despite a full install from tape (?)
  52.  
  53. Help!
  54.  
  55. Alek Komarnitsky                                      303-449-0649
  56. Software Tools Manager, Spatial Technology, Inc.      2425 55th Street, Bldg A
  57. alek@spatial.com                                      Boulder, CO 80301-5704
  58.  
  59. From fc.hp.com!rjn Thu Nov 12 13:59:57 1992
  60. Newsgroups: comp.sys.hp
  61. Path: fc.hp.com!rjn
  62. From: rjn@FC.HP.COM (Bob Niland)
  63. Subject: Re: Can "mt" commands be using on 1/4" Cartrdige tape on HP400's w/HP-UX8.0?
  64. Sender: news@fc.hp.com (news daemon)
  65. Message-ID: <BuKqqt.KMH@fc.hp.com>
  66. Date: Mon, 14 Sep 1992 15:23:17 GMT
  67. Reply-To: rjn@FC.HP.COM
  68. References: <1992Sep12.011714.11077@spatial.com>
  69. Organization: Hewlett-Packard/WSY Ft.Collins,CO,USA
  70. X-Newsreader: Tin 1.1scd1 PL4
  71.  
  72. alek@spatial.com (Alek O. Komarnitsky) writes:
  73. : Subject line pretty much says it all. A user here wants to put several tar 
  74. : files as seperate "savesets" on a single tape. One can do this on DAT or 
  75. : Sun 1/4" tape drives by using multiple tar commands and being sure to specify
  76. : the no-rewind device. However, I have not been able to figure out what
  77. : to use for the HP 1/4" tape drive connected via HP-IB (HP400 w/HP-UX8.0)
  78.  
  79. The "mt" command does not work with the 9144A, 9145A, 35401A and similar
  80. HP-IB CS/80 tape drives because they are not treated like classical
  81. serial-access devices.  These drives are actually block-rewritable random-
  82. access devices - very slow disks you might say.
  83.  
  84. Any "append" operation that would work on a /dev/rdsk will work on these
  85. tape drives.   "mt" operation attempts often result in "not a typewriter",
  86. one of the less helpful Un*x error messages.
  87.  
  88. Regards,                                              Hewlett-Packard
  89. Bob Niland      Internet: rjn@FC.HP.COM               3404 East Harmony Road
  90.                 CompuServe:  71044,2124               Ft Collins CO 80525-9599
  91.  
  92. From fc.hp.com!hp-col!sdd.hp.com!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!madmax.uwaterloo.ca!gordon Thu Nov 12 14:00:05 1992
  93. Newsgroups: comp.sys.hp
  94. Path: fc.hp.com!hp-col!sdd.hp.com!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!madmax.uwaterloo.ca!gordon
  95. From: gordon@madmax.uwaterloo.ca (Gordon R. Strachan)
  96. Subject: Re: Can "mt" commands be using on 1/4" Cartrdige tape on HP400's w/HP-UX8.0?
  97. Message-ID: <BuKtyH.G25@watserv1.uwaterloo.ca>
  98. Sender: news@watserv1.uwaterloo.ca
  99. Organization: University of Waterloo
  100. References: <1992Sep12.011714.11077@spatial.com> <BuKqqt.KMH@fc.hp.com>
  101. Date: Mon, 14 Sep 1992 16:32:40 GMT
  102. Lines: 21
  103.  
  104. In article <BuKqqt.KMH@fc.hp.com> rjn@FC.HP.COM writes:
  105. >alek@spatial.com (Alek O. Komarnitsky) writes:
  106. >
  107. >The "mt" command does not work with the 9144A, 9145A, 35401A and similar
  108. >HP-IB CS/80 tape drives because they are not treated like classical
  109. >serial-access devices.  These drives are actually block-rewritable random-
  110. >access devices - very slow disks you might say.
  111. >
  112.  
  113. I always called them a tape drive with delusions of grandeur :-)
  114.  
  115. They are pretty slow (even for tape drives) but I will admit that they are
  116. reliable and I sure wish the DAT drives had its random read/write capabilities.
  117.  
  118. Gordon
  119. >
  120. >Regards,                                              Hewlett-Packard
  121. >Bob Niland      Internet: rjn@FC.HP.COM               3404 East Harmony Road
  122. >                CompuServe:  71044,2124               Ft Collins CO 80525-9599
  123.  
  124.  
  125.  
  126. From fc.hp.com!rjn Thu Nov 12 14:00:13 1992
  127. Newsgroups: comp.sys.hp
  128. Path: fc.hp.com!rjn
  129. From: rjn@FC.HP.COM (Bob Niland)
  130. Subject: Re: Can "mt" commands be using on 1/4" Cartrdige tape on HP400's w/HP-UX8.0?
  131. Sender: news@fc.hp.com (news daemon)
  132. Message-ID: <Bun39y.Cx0@fc.hp.com>
  133. Date: Tue, 15 Sep 1992 21:49:10 GMT
  134. Reply-To: rjn@FC.HP.COM
  135. References: <BuKqqt.KMH@fc.hp.com>
  136. Organization: Hewlett-Packard/WSY Ft.Collins,CO,USA
  137. X-Newsreader: Tin 1.1scd1 PL4
  138.  
  139. rjn@FC.HP.COM (Bob Niland) writes:
  140. > Any "append" operation that would work on a /dev/rdsk will work on these
  141. > tape drives.   "mt" operation attempts often result in "not a typewriter",
  142. > one of the less helpful Un*x error messages.
  143.  
  144. I put it that way because I couldn't immediately think of any simple
  145. ways to perform appended I/O on a raw direct-access device.  On further
  146. reflection, if I had the need to put multiple archives on a 1/4-inch 
  147. (16-track HC format) tape, I would pick one of:
  148.  
  149.               ***NOTE: These Operations are Very Slow***
  150.  
  151. 1. LIF filesystem
  152.   
  153.    ## Assuming a 600-foot tape....
  154.    #
  155.    # lifinit -v66977792 -nLIF_CT -d256 /dev/rct
  156.    # cd <wherever>
  157.    # find . -print -hidden | cpio -ocv | lifcp -b - /dev/rct:NAME1_CPIO
  158.    # cd <wherever>
  159.    # find . -print -hidden | cpio -ocv | lifcp -b - /dev/rct:NAME2_CPIO
  160.    # <etc>
  161.    # lifls -l /dev/rct
  162.  
  163.    This is apt to be much faster as lifinit only writes the "-d" space on
  164.    the medium, and LIF files are contiguous, but, LIF files are NOT
  165.    extensible after close.  If possible, create the cpio/tar file then lifcp
  166.    it as a separate operation.
  167.  
  168. 2. HFS file system  (***CAUTION: UNTESTED***)
  169.  
  170.    Edit /etc/disktab to include:
  171.    9144A_600ft:\
  172.            :no swap or boot:ns#1:nt#16:nc#4088:\
  173.            :s0#65408:b0#8192:f0#1024:\
  174.            :se#1024:rm#1:
  175.  
  176.    # /etc/newfs -L -n -v /dev/rct 9144A_600ft
  177.    # mkdir /tape_mount
  178.    # /etc/mount /dev/ct /tape_mount
  179.    # cd <wherever>
  180.    # find . -print -hidden | cpio -ocv > /tape_mount/name1.cpio
  181.    # cd <wherever>
  182.    # find . -print -hidden | cpio -ocv > /tape_mount/name2.cpio
  183.    # ls -l /tape_mount
  184.    # /etc/umount /dev/ct
  185.  
  186. Regards,                                              Hewlett-Packard
  187. Bob Niland      Internet: rjn@FC.HP.COM               3404 East Harmony Road
  188.                 CompuServe:  71044,2124               Ft Collins CO 80525-9599
  189.  
  190. This article represents only the opinion[s] of its author, and is not an
  191. official or unofficial position of, or statement by, the Hewlett-Packard
  192. Company.  The text is provided for informational purposes only.  It is
  193. supplied without warranty of any kind.
  194.  
  195. From fc.hp.com!rjn Thu Nov 12 14:00:20 1992
  196. Newsgroups: comp.sys.hp
  197. Path: fc.hp.com!rjn
  198. From: rjn@FC.HP.COM (Bob Niland)
  199. Subject: Re: Can "mt" commands be using on 1/4" Cartrdige tape on HP400's w/HP-UX8.0?
  200. Sender: news@fc.hp.com (news daemon)
  201. Message-ID: <BunDHr.Ep8@fc.hp.com>
  202. Date: Wed, 16 Sep 1992 01:29:50 GMT
  203. Reply-To: rjn@FC.HP.COM
  204. References: <Bun39y.Cx0@fc.hp.com>
  205. Organization: Hewlett-Packard/WSY Ft.Collins,CO,USA
  206. X-Newsreader: Tin 1.1scd1 PL4
  207.  
  208. rjn@FC.HP.COM (Bob Niland) writes:
  209.  
  210. : 2. HFS file system  (***CAUTION: UNTESTED***)
  211. :    Edit /etc/disktab to include:
  212. :    9144A_600ft:\
  213. :            :no swap or boot:ns#1:nt#16:nc#4088:\
  214. :            :s0#65408:b0#8192:f0#1024:\
  215. :            :se#1024:rm#1:
  216.  
  217. Now that I've done an informal (probably still suboptimal) test, the above
  218. disktab entry is clearly inefficient.   This one looks much faster.
  219.  
  220.         9144A_600ft:\
  221.                 :no swap or boot:ns#8:nt#16:nc#511:\
  222.                 :s0#65408:b0#8192:f0#1024:\
  223.                 :se#1024:rm#1:
  224.  
  225. Regards,                                              Hewlett-Packard
  226. Bob Niland      Internet: rjn@FC.HP.COM               3404 East Harmony Road
  227.                 CompuServe:  71044,2124               Ft Collins CO 80525-9599
  228.  
  229. This article represents only the opinion[s] of its author, and is not an
  230. official or unofficial position of, or statement by, the Hewlett-Packard
  231. Company.  The text is provided for informational purposes only.  It is
  232. supplied without warranty of any kind.
  233.