[comp.unix.sysv386] SCSI error -- medium changed in drive

lauren@vortex.COM (Lauren Weinstein) (11/27/90)

Greetings.  Has anyone else seen this message from the system under
ix2.0.2?

------
*** DEVICE ERROR: Medium has been changed in drive ***
*** Controller 1 (Adaptec AHA-1540 SCSI Host Adapter), DISK Drive 0,
    Absolute Sector # 43014 ***
------

This was for a 660MB disk on the 1540.  The disk had been running
fine up to this point (as long as certain I/O cards which the 1540
doesn't like weren't in the system, but that's a story for another
time) then this message popped up out of the blue last night.

My first thought was that a sector remapping had occurred, but the
grown list for the disk shows no changes.

Does this look familiar to anyone?  Thanks.

--Lauren--

minow@mountn.dec.com (Martin Minow) (11/28/90)

In article <66.UUL1.3#1@vortex.COM> lauren@vortex.COM (Lauren Weinstein)
writes:
>*** DEVICE ERROR: Medium has been changed in drive ***
...
>Does this look familiar to anyone?  Thanks.

Hi Lauren, long time no see.  There is a "medium changed" sense code
that the drive can return.  It really only is relevant to floppy and
cd-rom devices that are under operator control.  It is possible that
your drive/controller returns that when the processor executes a
mode select (that changes drive parameters), but that doesn't accord
with my understanding of SCSI-II.

If you can get a dump of the actual extended sense data block (from the
error log?), I could take a swing at interpreting it (the interpretation
should be in your drive's manual, or in the SCSI-II spec if your drive
supports the common command set).  For now, I'd treat it as a non-serious
glitch.

Martin Minow
minow@bolt.enet.dec.com

garyb@SSD.CSD.HARRIS.COM (Gary Barton) (11/28/90)

In article <66.UUL1.3#1@vortex.COM> lauren@vortex.COM (Lauren Weinstein) writes:

>*** DEVICE ERROR: Medium has been changed in drive ***

Most CCS disk drives use the same additional sense code to indicate a
device was reset or the media may have changed.  I suspect that
something caused the SCSI bus to be reset, which then generates a
check condition with this error code on the next access.  SCSI device
drivers generally expect to see this condition after they have forced
a device or bus reset, but if it occurs outside of their control, they
treat it like any other error.  It could be that device/bus reset was
attempted as part of some error recovery procedure by the disk (or
other) driver.  Device themselves will sometimes cause a bus reset.  I
have seen some disk drives (Fujitsu) with strappings that tell the
imbedded SCSI controller whether or not it should activate the SCSI
bus reset when the drive is powered on.  The SCSI reset line could in
theory be activated by plugging/unplugging a device from an operating
SCSI bus, or perhaps there could be some other cabling/termination
problem.

The point is, this is most likely the result of device or bus reset,
not a media changed condition.

--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Gary Barton                    | System Software Development      |
| Lead Engineer			 | Harris Computer Systems Division |
| garyb@hcx1.csd.ssd.harris.com  | 2101 W. Cypress Creek Rd.        |
| gbarton@ssd.harris.com         | Ft. Lauderdale. FL 33309         |
| uunet!hcx1!garyb               | (305) 974-1700                   |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

loc@tmsoft.UUCP (Leigh Clayton) (11/29/90)

      <lauren@vortex.COM (Lauren Weinstein) > asks about

     ------
     *** DEVICE ERROR: Medium has been changed in drive ***
     *** Controller 1 (Adaptec AHA-1540 SCSI Host Adapter), DISK Drive 0,
         Absolute Sector # 43014 ***
     ------

 I get this message frequently, as a result of spinning down/up (and maybe
changing) the Magneto-optical disk I use as Drive 1 (also 386/ix 2.0.2).

 It is apparantly caused by the drive telling the SCSI adapter that I've
changed the platter, in the hopes that the adapter will tell the driver and the
driver will refresh it's notions about what is spinning there. Of course
386/ix does *not* do this ... it just prints the message.

 I have no idea why your disk should be sending this SCSI signal, though. If
I had to guess, I'd guess that something like a power or logic transient was
causing your disk (or maybe the Adaptec card) to power down/up occasionally.

-----------------------------------------------------------
loc@tmsoft.UUCP   (Leigh Clayton)   uunet!mnetor!tmsoft!loc