home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / ultrix / 6211 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.9 KB  |  66 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!cs.utexas.edu!torn!blaze.trentu.ca!blaze.trentu.ca!ccksb
  3. From: ccksb@blaze.trentu.ca (Ken Brown)
  4. Subject: Re: "mount device busy" error on tape drives
  5. Message-ID: <1992Aug13.125851.27830@trentu.ca>
  6. Keywords: tape, tz
  7. Sender: news@trentu.ca (USENET News System)
  8. Organization: Trent University
  9. References:  <1992Aug12.085647@usho93.hou281.chevron.com>
  10. Distribution: usa
  11. Date: Thu, 13 Aug 1992 12:58:51 GMT
  12. Lines: 52
  13.  
  14. We have a similar problem here.  We use gnutar to backup various file systems
  15. to the Exabyte and when completed the script isues an 'mt -f /dev/rmth1
  16. offline' to protect the tape.  Often we find that the last file was dumped to
  17. tape (as expected) but the device is busy, an 'mt -f /dev/rmth1 status'
  18. results in 'mount device busy'.  The tape drive will remain non-funtional
  19. until a shutdown - power off - reboot sequence.  So I'd be interested in
  20. possible explanatins / solutions as well as the writer(s) below...
  21.  
  22. In article <1992Aug12.085647@usho93.hou281.chevron.com>, hjgwi@usho93.hou281.chevron.com (Jay G. Williamson) writes:
  23. |> We have some software that dies sometimes while accessing some 8mm
  24. |> drives.  When this happens, the tape drives become unaccessable.
  25. |> Attempting to access it will return with "mount device busy". The
  26. |> only way to clear this up is to reboot the machine.  I would assume
  27. |> that there is some byte in the kernel that signifies that the tape
  28. |> drive is still busy but I do not know what it is or exactly how to
  29. |> access this value to change it.
  30. |> 
  31. |> In the system include file, /sys/io/scsi/mips/scsivar.h, there is a
  32. |> SZ_BUSY status byte.  It is not clear whether this is for a device
  33. |> or for the whole SCSI bus.  Even if this is the byte value to unset,
  34. |> it still looks like a challenge to find where in the structure to unset
  35. |> this.  Even more challenging (to me at least) is how to find where
  36. |> this structure starts within the kernel.  I can imagine the sudo code
  37. |> below but I still have alot of unknowns with no more ideas on how to
  38. |> get these unknowns.
  39. |> 
  40. |> open (/dev/kmem)
  41. |> addr of struct == OFFSET_TO_TAPE_STRUCT
  42. |> remove_busy_bits (struct->some_flag)
  43. |> 
  44. |> ** Is this possible ?
  45. |> ** Has this already been done by someone ?
  46. |> ** If it has not, can someone give me any help with the unknowns and
  47. |>     the technique to alter the flag ??
  48. |> 
  49. |> INFO:
  50. |>     DECstation 5100
  51. |>     Ultrix 4.2b
  52. |> 
  53. |> I will summarize if there is any interest.
  54. |> 
  55. |> Thanks in advance,
  56. |> -- 
  57. |> Jay Williamson         Office: 2301 Hayes Rd.      Phone: 713-596-3139
  58. |> UNIX Sys Admin         Houston, Tx                 hjgwi@hou281.chevron.com
  59. |> Chevron Info Tech.
  60.  
  61. -- 
  62. ====================================================================
  63. Ken Brown                                       voice: (705)748-1540
  64. Trent University Computer Services                fax: (705)748-1246
  65. Peterborough, Ontario, Canada K9J 7B      internet: kbrown@trentu.ca
  66.