home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TAPETEST.ZIP / TAPETEST.TXT < prev   
Encoding:
Text File  |  1992-01-02  |  16.2 KB  |  375 lines

  1. The tapetest.com is an interactive utility for exercising the 3server
  2. tape drive unit. It will work - returning valid status after each 
  3. command completion - as long as the CME board and its SCSI host adapter
  4. function properly.
  5.  
  6. The user interface is either from the remote console (boot on sw #4) or
  7. from the RS232 terminal (boot from sw #3), although the remote console
  8. interface is rather clumsy.
  9.  
  10. Individual SCSI commands are available to the user. This combines with 
  11. the unmodified command completion error status from the controller turn
  12. hardware troubleshooting into a straight forward process.
  13.  
  14. There are 3 different types of error flags; they are:
  15. (1) SCSI interface error.
  16. This resulted from a command abort that is usually caused by the bus or
  17. controller-host interface problems.
  18.  
  19. - SCSI interface error: no controller response.
  20. Causes: bad controller, wrong controller ID, bad SCSI cable, BUSY line
  21.         signal on SCSI pin 36 is stuck high.
  22.  
  23. - SCSI interface error: can not select controller, no bus-free-phase. 
  24. Causes: BUSY (pin 36) and/or SELECT (pin 44) on SCSI bus are stuck low,
  25.         RESET (pin 40) is stuck low, or bad SCSI flat cable.
  26.  
  27. - SCSI interface error: controller is busy executing another command.
  28. Causes: A command issued while the controller is positioning the tape to
  29.         beginning of media following reset or cartridge insertion. 
  30.  
  31. - SCSI interface error: unknown command.
  32. Causes: Bad copy of the program or bad CME board.
  33.  
  34. - COMMAND ERROR: CHECK CONDITION RETURNED AFTER REQUEST SENSE.
  35. Causes: Bad CME, bad controller, bad SCSI flat cable.
  36.  
  37. (2) Command error.
  38. These are error codes returned within the sense bytes. 
  39. This is usually a sign of trouble either in the tape drive or the tape 
  40. cartridge. See detail of request sense command for a list of sense key 
  41. error codes.
  42. A peculiar command error: check condition returned after request sense
  43. is not an error code from the sense bytes; it is a code returned by the
  44. host SCSI software driver. It usually caused by a catastrophic failure
  45. either in the tape drive or the controller.
  46.  
  47. (3) System error.
  48. These are write or read buffer compare error. 
  49. Write buffer compare error is caused by a problem in the CME board; 
  50. each data record in the write buffer is verified before it is written 
  51. to the tape.
  52. Isolation of read buffer compare error can only be done by component
  53. substitution (ie. flat cables, tape cartridge, tape drive, controller, 
  54. or the CME) and tape drive write/read head cleaning. Use a minimum 90%
  55. isopropyl alcohol to clean the head.
  56.  
  57.  
  58. Command list: (* = non SCSI command)
  59. (a) Select controller model (ADSI Python or ADAPTEC). (*) 
  60.  
  61. (b) Select controller address asignment (0-7). (*)
  62.  
  63. (c) Reset SCSI bus. 
  64. This is equivalent to power on reset.
  65.  
  66. (d) Test unit ready. 
  67. This can be used to check if the drive is powered-on with a non write 
  68. protected cartridge inserted and ready for operation.
  69.  
  70. (e) Set parameter/mode select. 
  71. This command allows the host to configure the controller to the attached 
  72. tape drive and set specific parameters related to write and read 
  73. operation. This command must be issued ONCE in between EACH reset and 
  74. write or read operations. The functional check command (q) will do this 
  75. automatically.
  76.  
  77. (f) Erase tape.
  78.  
  79. (g) Retension tape.
  80.  
  81. (h) Rewind to beginning of tape.
  82.  
  83. (i) Set write/read pattern. 
  84. A repeated hex word pattern will be used for writing and verifying. 
  85. If there is no input or an illegal input, a default a5a5 hex pattern 
  86. will be used instead.
  87.  
  88. (j) Write. 
  89. Up to 1000 record writes can be specified even though 480 records is 
  90. usually enough to fill up a 60 mb tape cartridge. The controller has a 
  91. 512 byte write/read buffer block. the 3server uses a 128kb record size in 
  92. every write/read operation; this amounts to 256 blocks written or read for 
  93. each record. Writing is normally done from beginning of tape, after 
  94. rewinding or erasing. It can also begin from the current tape position if 
  95. the previous command left the tape at position for the write; this can be
  96. accomplished by a previous write, write file mark, or space to end of
  97. recorded media command. Otherwise the write command will get an "illegal
  98. request" (5) sense key.
  99.  
  100. (k) Write file mark. 
  101. A block of special pattern is written onto the current position. This 
  102. command has the same write requirement as shown in write command above.
  103.  
  104. (l) Read. 
  105. Up to 1000 record reads can be specified.
  106. Reading is normally done from beginning of tape, after rewinding or
  107. retension.It can also begin from the current tape position if the 
  108. previous command left the tape at position for the read; this can be
  109. accomplished by a previous read. Otherwise the read command will get 
  110. an "illegal request" (5) sense key.
  111.  
  112. (m) Read/verify. 
  113. Similar to read command except that each record read is compared against 
  114. the pattern set in command (i).
  115.  
  116. (n) Space to the end of recorded media. 
  117. The tape will be left in the position to append data to the last block 
  118. written.
  119.  
  120. (o) Request sense.
  121. Whenever a non busy SCSI controller receives a command, after completing
  122. the command execution it may return an ok status in which case the host
  123. can issue a subsequent command, or it may return a check status in which
  124. case the host must issue a request sense command. 
  125. This command returns to the host information regarding a check status
  126. condition, tape access retries, controller buffer status, and tape 
  127. status. Sense information will be valid for the last check status sent
  128. to the host; sense data will be cleared when the controller receives
  129. a subsequent command. A check condition returned after request sense 
  130. command is illegal; this is a sign of either CME or controller defect.
  131.  
  132. The adaptec controller will return 16 bytes of sense information; for 
  133. the ADSI controller, only the first 14 bytes are valid.
  134. The return bytes on the screen are shown as follows:
  135. Byte # 00 01 02 03 04
  136.        05 06 07 08 09
  137.        0A 0B 0C 0D 0E 0F
  138. They are displayed in hex code.
  139.  
  140. The format of the sense bytes are shown below. The most important
  141. information that you usually need are at bytes 02, 08, and 09.
  142.  
  143.                              BIT                      
  144.  
  145. Byte     7     6     5     4     3     2     1     0
  146.       |-----+-----+-----+-----+-----+-----+-----+-----|
  147.   00  |VALID|  1  |  1  |  1  |  0  |  0  |  0  |  0  |
  148.       |-----+-----+-----+-----+-----+-----+-----+-----|
  149.   01  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |
  150.       |-----+-----+-----+-----+-----+-----+-----+-----|
  151.   02  | FM  | EOM |  0  |  0  |      SENSE KEY        |
  152.       |-----+-----+-----+-----+-----+-----+-----+-----|
  153.   03  | (MSB)                                         |
  154.       |-   -+-   -+-   -+-   -+-   -+-   -+-   -+-   -|
  155.   04  |                                               |
  156.       |-   -+-   -+-   - BLOCK COUNT -   -+-   -+-   -|
  157.   05  |                                               |
  158.       |-   -+-   -+-   -+-   -+-   -+-   -+-   -+-   -|
  159.   06  |                                        (LSB)  |
  160.       |-----+-----+-----+-----+-----+-----+-----+-----|
  161.   07  | # OF ADDITIONAL BYTES (08h ADAPTEC, 06h ADSI) |
  162.       |-----+-----+-----+-----+-----+-----+-----+-----|
  163.   08  |  0  | CNI |  0  | WRP | EOM | UDA | BNL | FIL |
  164.       |-----+-----+-----+-----+-----+-----+-----+-----|
  165.   09  |  0  |  0  | NDA |  0  | BOM |  0  |  0  | POR |
  166.       |-----+-----+-----+-----+-----+-----+-----+-----|
  167.   0A  | (MSB)                                         |
  168.       |-   -+-   -+ DATA RETRIES COUNTER -+-   -+-   -|
  169.   0B  |                                         (LSB) |
  170.       |-----+-----+-----+-----+-----+-----+-----+-----|
  171.   0C  | (MSB)                                         |
  172.       |-   -+-   -+-  UNDERRUN COUNTER   -+-   -+-   -|
  173.   0D  |                                         (LSB) |
  174.       |-----+-----+-----+-----+-----+-----+-----+-----|
  175.   0E  |   CURRENT TRACK POSITION OF WRITE/READ HEAD   | adaptec only.
  176.       |-----+-----+-----+-----+-----+-----+-----+-----|
  177.   0F  |              BLOCKS TO GO COUNT               | adaptec only.
  178.       |-----+-----+-----+-----+-----+-----+-----+-----|
  179.  
  180. Note: A block = 512 bytes of data.
  181.  
  182. VALID (bit 7, byte 00): This bit set indicates that the information
  183.         contained in the BLOCK COUNT bytes (03-06) is valid.
  184.  
  185. FM (bit 7, byte 02): This bit will be set to indicate that the last 
  186.         block processed was a file mark. Read and space command will
  187.         terminate on a file mark.
  188.  
  189. EOM (bit 6, byte 02): This bit will be set when the end of physical
  190.         tape warning is encountered while accessing the last track
  191.         of the tape.
  192.  
  193. SENSE KEY (bits 0-3, byte 02): The sense key contains the error code
  194.         (if any) that caused the last check status. A detail of
  195.         possible error codes are listed separately below.
  196.  
  197. BLOCK COUNT (bytes 03-06): The block count contains the number of
  198.         512-byte-blocks not processed (written to tape) from current
  199.         command. This number is valid only if the VALID bit is set.
  200.  
  201. The following information, contained in bytes 08 through 0f, provides
  202. additional error, controller state, and drive state data.
  203.  
  204. CNI (bit 6, byte 08): This bit set indicates the tape cartridge is
  205.         not inserted.
  206.  
  207. WRP (bit 4, byte 08): This bit set indicates the inserted cartridge
  208.         is write protected, inhibiting tape writes.
  209.  
  210. EOM (bit 3, byte 08): This bit set indicates the end of physical tape
  211.         warning has been detected. It's identical to bit 6, byte 02.
  212.  
  213. UDA (bit 2, byte 08): This bit set indicates a block can not be 
  214.         successfully read or written. The controller will retry a read 
  215.         or write up to 16 times per block.
  216.  
  217. BNL (bit 1, byte 08): This bit set indicates the block that the 
  218.         controller is attempting to access, block # N, can not be found.
  219.         This will be reported when blocks N+1 and N+2 are found but 
  220.         block N is not after 16 attempts. This error may occur during
  221.         any tape access and when locating the last block on the tape
  222.         for appending.
  223.  
  224. FIL (bit 0, byte 08): This bit set indicates that a file mark has been
  225.         encountered. It is identical to bit 7, byte 02.
  226.  
  227. NDA (bit 5, byte 09): This bit set indicates that a span of erased tape
  228.         has been encountered.
  229.  
  230. BOM (bit 3, byte 09): This bit set indicates that the tape is positioned
  231.         at the physical beginning of the media.
  232.  
  233. POR (bit 0, byte 09): This bit set indicates that a power-on or SCSI bus
  234.         reset has occured. The sense key, Unit Attention (06) is always
  235.         reported with this bit.
  236.  
  237. DATA RETRIES COUNTER (bytes 0A-0B): The data retries counter contains
  238.         the number of blocks rewritten due to errors during write 
  239.         operation. During a read operation, this counter contains the
  240.         number of soft and hard errors, causing tape reposition,
  241.         encountered.
  242.  
  243. UNDERRUN COUNTER (bytes 0C-0D): It contains the number of times a normal
  244.         streaming operation was interrupted because of an underrun or
  245.         overrun of data in the controller buffer.
  246.  
  247. CURRENT TRACK (byte 0E): This is relevant for the Adaptec controller 
  248.         only. It contains the track number (0-8) that the write/read 
  249.         heads are currently positioned over.
  250.  
  251. BLOCKS TO GO COUNT (byte 0F): This is relevant for Adaptec controller
  252.         only. It contains the number of 512-byte-blocks that have not 
  253.         been written to the tape.
  254.  
  255. SENSE KEYS.
  256. The sense key returned in the unit sense information, indicates the
  257. error state causing the last check status.
  258.       Sense key:           Error:
  259.           0             No Sense 
  260.           1             Recovered Error
  261.           2             Device Not Ready
  262.           3             Media Error
  263.           4             Hardware Error
  264.           5             Illegal Request
  265.           6             Unit Attention
  266.           7             Data Protect
  267.           8             Blank Check
  268.           9             * = "not used"
  269.           A             *
  270.           B             Aborted Command
  271.           C             *
  272.           D             Volume Overflow
  273.           E             *
  274.           F             *
  275.  
  276. No Sense (0): No sense information available. The last command was
  277.         executed succesfully. File mark or EOM may have been 
  278.         encountered, the appropriate sense bits will be set.
  279.  
  280. Recoverable Error (1): The last tape access was successful after 
  281.         retries (within 16 times).
  282.  
  283. Not Ready (2): The tape drive can not be accessed. This can be caused
  284.         by no cartridge inserted, no power applied to tape drive, or
  285.         a faulty flat cable connecting the controller and the drive.
  286.  
  287. Media Error (3): The last tape access was unsuccessful. This is likely
  288.         because of a flaw in the media.
  289.  
  290. Hardware Error (4): The controller detected an unrecoverable data error.
  291.         This is generally caused by the lack of capstan tach pulses from 
  292.         the tape drive or a faulty flat cable connecting the controller
  293.         and the drive.
  294.  
  295. Illegal Request (5): Illegal parameter was passed with the last command.
  296.  
  297. Unit Attention (6): The tape cartridge has been changed (removed and
  298.         reinserted) or a reset has occured since the last command.
  299.         This will be returned in response to the first command received.
  300.         The first command will result in a check status and NOT be
  301.         executed. If this sense key is a result of a device reset, power
  302.         on or SCSI bus, the POR bit will also be set.
  303.  
  304. Data Protect (7): A write was tried onto a tape that is write protected.
  305.  
  306. Blank Check (8): The end of recorded media was detected during a read.
  307.         The host tried to read beyond the last recorded block number.
  308.  
  309. Aborted Command (9): The controller aborted the command at the request 
  310.         of the host or because of a hardware failure such as a cartridge
  311.         pull while a read or write was in progress.
  312.  
  313. Volume Overflow (D): The physical end of media is detected before all
  314.         data blocks specified are written onto the tape.
  315.  
  316. (p) Write and read verify loop.
  317. These are loops (up to 1000 times) of: tape retension, write (up to 1000
  318. records), tape retension, and read/verify. This command is useful for
  319. runing in the tape unit. The accumulated soft errors displayed on each
  320. pass of write/read are good indications of the condition of the write
  321. /read heads and/or the tape media.
  322.  
  323. (q) Functional check.
  324. In this test a sequence of the following commands are issued:
  325. - Reset SCSI bus.
  326. - Command completion interrupt test.
  327. - Test unit ready.
  328. - Set parameter/mode select.
  329. - Erase tape.
  330. - Write 80 records (= 10mb).
  331. - Rewind.
  332. - Read and verify 80 records.
  333. - Rewind.
  334. - Space to end of recording.
  335. - Rewind.
  336.  
  337. (r) Write read soft errors check.
  338. In this test a sequence of the following commands are issued:
  339. - Retention tape.
  340. - Write 20 mb in streaming.
  341. - Display write soft errors and pass/fail criteria.
  342. - Retention tape.
  343. - Read 20 mb in streaming.
  344. - Display read soft errors and pass/fail criteria.
  345. - Rewind.
  346.  
  347. (s) Server (host adapter) interrupt line check.
  348. In this test, 80 test unit ready commands are issued with the 
  349. interrupt line path to the server CPU being enabled. When the 
  350. controller completes executing each command, it interrupts the CPU.
  351. Each time a command is issued a dash (-) is printed in the screen,
  352. and each time the controller interrupts the CPU a star (*) is
  353. printed in the screen. 
  354.  
  355. (t) Display sense byte buffer.
  356. This is useful for looking at the status of the tape system when an
  357. error just occur.
  358.  
  359. Note:
  360. - In the SCSI implementation, the first command issued after reset or 
  361. cartridge replacement is not executed and the error sense 6 is returned
  362. by the controller. The tapetest.com preserves this condition in write
  363. and read type commands; in other words the first write or read command 
  364. issued will get error sense 6. But the rest of the commands will just
  365. be retried once automatically making it transparent to the user.    
  366.  
  367. - Whenever the SCSI bus is reset, command (e) set parameter/mode select
  368. must be issued at least ONCE before write or read command can be issued. 
  369.  
  370. - Whenever a SCSI interface error occurs, the sense bytes buffer becomes
  371. meaningless
  372.  
  373.  
  374. ----------------------------END--------------------------------------
  375.