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