fsck hanging
Chris Torek
torek at elf.ee.lbl.gov
Mon Mar 4 09:51:40 AEST 1991
In article <45009 at ut-emx.uucp> jwe at che.utexas.edu (John W. Eaton) writes:
>I'm running Ultrix 3.1 on a Vaxstation 3200 and have run into a
>problem with a new Hitachi DK515C disk and CMD-220/TM controller.
>
>The installation of the controller and the disk seemed to go smoothly.
`Seemed' is the key word.
>I can create filesystems on the disk with newfs, mount them, and even
>read and write files. Unfortunately, when I try to run fsck on any
>partition, it almost always hangs after displaying the pass 1 message.
>When it hangs, I can't kill it and ps displays something like
>
> 1313 p0 D 00:00 fsck /dev/rra2a ...
>
>What could cause fsck to hang, and what makes this (or any) process
>impossible to kill?
The process is sound asleep in the kernel, waiting for some event
to happen which is certain to happen very soon (e.g., the disk controller
interrupts, saying it has completed its I/O request), but which has
never happened and probably never will, since Something Is Broken.
There is not enough information here to tell what it is that is broken.
>I set up the kernel configuration file so that ra2 is drive 0 for the
>CMD controller. At boot time, a message is displayed to the console
>which indicates that somewhere, something thinks ra2 is an RA82 disk.
The MSCP protocol defines a `drive type' field (actually two such
fields, but one appears to be unreliable) in which the names of the
controller and drive are encoded in little 5-bit fields with a trailing
7-bit number. Since some drivers refuse to work at all with drives
they do not recognise, CMD and Emulex and anyone else who make an MSCP
controller substitute their favourite drive names for whatever it is
you really have. Your controller is lying, in other words.
Fortunately, MSCP defines a `size' field giving the size of the drive
in sectors (as well as geometry fields giving the layout), so it is
possible to work around (or ignore) the lie. You should be able to
put a partition table on the drive that differs from the usual RA82
table, and which uses all (and only) the sectors that actually exist.
--
In-Real-Life: Chris Torek, Lawrence Berkeley Lab EE div (+1 415 486 5427)
Berkeley, CA Domain: torek at ee.lbl.gov
More information about the Comp.unix.ultrix
mailing list