home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12390 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  3.8 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!fido!zola!zuni!anchor!olson
  2. From: olson@anchor.esd.sgi.com (Dave Olson)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Problem reading a tar file on exabyte
  5. Message-ID: <ohrdrt0@zuni.esd.sgi.com>
  6. Date: 14 Aug 92 02:05:42 GMT
  7. References: <1992Aug13.181143.3629@morgan.ucs.mun.ca>
  8. Sender: news@zuni.esd.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.  Mountain View, CA
  10. Lines: 75
  11.  
  12. In <1992Aug13.181143.3629@morgan.ucs.mun.ca> agouldng@morgan.ucs.mun.ca (Allan Goulding) writes:
  13. | I am having a problem reading a tar file on an exabyte tape. 
  14. | Specifically, the error is:
  15. |    tar: tape read error: Not enough space
  16.  
  17. Tar encountered a FM without finding its internal end-of-archive
  18. record.  Most likely the tape was created with one blocking
  19. factor, and read with another that wasn't an even divisor of
  20. the original.
  21.  
  22. | There seems to be no mention of it in the tar man page. The message is
  23.  
  24. See 'man tps'.  tar can be used with dozens of devices, files, etc.,
  25. and couldn't possibly document them all.
  26.  
  27. | not intuitively obvious to me. Does tar look to see that I only have
  28. | 150MB free on disk and refuse to even extract one file? Why would a read
  29. | operation complain about lack of space (disk, buffers)?
  30.  
  31. It isn't DISK free space.  This seemed the best overall errno
  32. for the condition.
  33.  
  34. | The exabyte is an 8200 (252T) on an SGI 4D/360S running Irix 4.0.1.
  35. | We have received other tapes from the same source before and have never 
  36. | had a problem reading them. (but we were also running 3.3.3 at the time)
  37. | tar tvf seems to have no problem reading the tape. ie:
  38. | % mt -t /dev/exabnrnsv rewind
  39. | % tar tvf /dev/exabnrnsv
  40. | rw-r--r-- 2965/100 46719012 Jul 20 13:22 1992 taux2.cdf
  41. | rw-r--r-- 2965/100 46719016 Jul 20 16:21 1992 tauy2.cdf
  42. | rw-r--r-- 2965/100 46718996 Jul 13 17:30 1992 slp.cdf
  43. | rw-rw-rw- 2965/100 46718996 Jul 10 13:52 1992 sst.cdf
  44. | rw-r--r-- 2965/100 46719000 Jul  9 21:32 1992 sat.cdf
  45. | rw-r--r-- 2965/100 46719000 Jul 24 12:59 1992 sst-sat.cdf
  46. | rw-r--r-- 2965/100 46719004 Jul  9 16:11 1992 qs-qa.cdf
  47. | But when I try to extract using "tar xovf /dev/exabnrnsv", (/dev/exabnrnsv is
  48. | linked to /dev/mt/tps0d6nrnsv.) I get an error in syslog saying a blocksize
  49. |  mismatch:
  50. | NOTICE: SCSI tape #6 blocksize mismatch; blocksize on tape is 10240 bytes
  51. | and the "not enough space" message on the screen.
  52.  
  53. Ahh; this is somewhat different than above.  It is interesting that
  54. it happens though, as by default on SGI, tar uses a tape driver
  55. ioctl to determine the block size, and since you didn't specify
  56. the 'b' option (unless  you have an alias?), it should have gotten
  57. it correctly.  When using the variable block device, you have to
  58. specify a blocking factor (or let tar figure it out) that matches
  59. the one used when creating the tape.  It would be interesting to
  60. know what 'mt -t /dev/exabnrnsv blksiz' reports for that tape.
  61.  
  62. | So I naturally rewind the tape and try again with more arguments:
  63. | % tar xovbf 10240 /dev/exabnrnsv
  64. | The "not enough space" message is repeated on the screen but this time 
  65. | no blocksize error message appears in syslog.
  66. | Turning on some debugging (after rewinding again) yields:
  67. | % tar xovqqbf 10240 /dev/exabnrnsv
  68. | myio(read): wanted 5242880 bytes, got -1
  69. |         errno is 12: Not enough spacetar: tape read error: Not enough space
  70. | exiting myio, firsttape 1
  71. | exiting from done, n 2
  72. | I can read the tape with dd as a workaround but I would still like to know
  73. | why tar will not access the tape directly. Any help in this matter will
  74. | be most appreciated.
  75.  
  76. Since for some reason tar doesn't seem to be figuring out
  77. the block size correctly, try specifying it explictly (10240
  78. is wrong, that is 10240*512, you want 20).
  79. --
  80. Let no one tell me that silence gives consent,  |   Dave Olson
  81. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  82.     Maria Isabel Barreno                        |   olson@sgi.com
  83.