TAPE 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Channel attached Tape device driver
  2. -----------------------------WARNING-----------------------------------------
  3. This driver is considered to be EXPERIMENTAL. Do NOT use it in
  4. production environments. Feel free to test it and report problems back to us.
  5. -----------------------------------------------------------------------------
  6. The LINUX for zSeries tape device driver manages channel attached tape drives
  7. which are compatible to IBM 3480 or IBM 3490 magnetic tape subsystems. This
  8. includes various models of these devices (for example the 3490E).
  9. Tape driver features
  10. The device driver supports a maximum of 128 tape devices.
  11. No official LINUX device major number is assigned to the zSeries tape device
  12. driver. It allocates major numbers dynamically and reports them on system
  13. startup.
  14. Typically it will get major number 254 for both the character device front-end
  15. and the block device front-end.
  16. The tape device driver needs no kernel parameters. All supported devices
  17. present are detected on driver initialization at system startup or module load.
  18. The devices detected are ordered by their subchannel numbers. The device with
  19. the lowest subchannel number becomes device 0, the next one will be device 1
  20. and so on.
  21. Tape character device front-end
  22. The usual way to read or write to the tape device is through the character
  23. device front-end. The zSeries tape device driver provides two character devices
  24. for each physical device -- the first of these will rewind automatically when
  25. it is closed, the second will not rewind automatically.
  26. The character device nodes are named /dev/rtibm0 (rewinding) and /dev/ntibm0
  27. (non-rewinding) for the first device, /dev/rtibm1 and /dev/ntibm1 for the
  28. second, and so on.
  29. The character device front-end can be used as any other LINUX tape device. You
  30. can write to it and read from it using LINUX facilities such as GNU tar. The
  31. tool mt can be used to perform control operations, such as rewinding the tape
  32. or skipping a file.
  33. Most LINUX tape software should work with either tape character device.
  34. Tape block device front-end
  35. The tape device may also be accessed as a block device in read-only mode.
  36. This could be used for software installation in the same way as it is used with
  37. other operation systems on the zSeries platform (and most LINUX
  38. distributions are shipped on compact disk using ISO9660 filesystems).
  39. One block device node is provided for each physical device. These are named
  40. /dev/btibm0 for the first device, /dev/btibm1 for the second and so on.
  41. You should only use the ISO9660 filesystem on LINUX for zSeries tapes because
  42. the physical tape devices cannot perform fast seeks and the ISO9660 system is
  43. optimized for this situation.
  44. Tape block device example
  45. In this example a tape with an ISO9660 filesystem is created using the first
  46. tape device. ISO9660 filesystem support must be built into your system kernel
  47. for this.
  48. The mt command is used to issue tape commands and the mkisofs command to
  49. create an ISO9660 filesystem:
  50. - create a LINUX directory (somedir) with the contents of the filesystem
  51. mkdir somedir
  52. cp contents somedir
  53. - insert a tape
  54. - ensure the tape is at the beginning
  55. mt -f /dev/ntibm0 rewind
  56. - set the blocksize of the character driver. The blocksize 2048 bytes
  57. is commonly used on ISO9660 CD-Roms
  58. mt -f /dev/ntibm0 setblk 2048
  59. - write the filesystem to the character device driver
  60. mkisofs -o /dev/ntibm0 somedir
  61. - rewind the tape again
  62. mt -f /dev/ntibm0 rewind
  63. - Now you can mount your new filesystem as a block device:
  64. mount -t iso9660 -o ro,block=2048 /dev/btibm0 /mnt
  65. TODO List
  66. - Driver has to be stabilized still
  67. BUGS
  68. This driver is considered BETA, which means some weaknesses may still
  69. be in it.
  70. If an error occurs which cannot be handled by the code you will get a
  71. sense-data dump.In that case please do the following:
  72. 1. set the tape driver debug level to maximum:
  73. echo 6 >/proc/s390dbf/tape/level
  74. 2. re-perform the actions which produced the bug. (Hopefully the bug will
  75. reappear.)
  76. 3. get a snapshot from the debug-feature:
  77. cat /proc/s390dbf/tape/hex_ascii >somefile
  78. 4. Now put the snapshot together with a detailed description of the situation
  79. that led to the bug:
  80. - Which tool did you use?
  81. - Which hardware do you have?
  82. - Was your tape unit online?
  83. - Is it a shared tape unit?
  84. 5. Send an email with your bug report to:
  85. mailto:Linux390@de.ibm.com