From fpscha@centinelli.sminter.com.ar Thu Mar  4 04:42:13 1999
Return-Path: <fpscha@centinelli.sminter.com.ar>
Received: from centinelli.sminter.com.ar (centinelli.sminter.com.ar [200.10.100.165])
	by hub.freebsd.org (Postfix) with ESMTP id 4B8AA14A0B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Mar 1999 04:41:48 -0800 (PST)
	(envelope-from fpscha@centinelli.sminter.com.ar)
Received: (from root@localhost)
	by centinelli.sminter.com.ar (8.8.8/8.8.8) id JAA28272;
	Thu, 4 Mar 1999 09:42:27 -0300 (ART)
	(envelope-from fpscha)
Message-Id: <199903041242.JAA28272@centinelli.sminter.com.ar>
Date: Thu, 4 Mar 1999 09:42:27 -0300 (ART)
From: fpscha@sminter.com.ar
Sender: fpscha@centinelli.sminter.com.ar
Reply-To: fpscha@sminter.com.ar
To: FreeBSD-gnats-submit@freebsd.org
Subject: 2.2.7 hangs when trying to write on defective HD with no messages
X-Send-Pr-Version: 3.2

>Number:         10387
>Category:       kern
>Synopsis:       2.2.7 hangs when trying to write on defective HD with no messages
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar  4 04:50:00 PST 1999
>Closed-Date:    Sat Aug 21 21:39:47 PDT 1999
>Last-Modified:  Sat Aug 21 21:41:23 PDT 1999
>Originator:     Fernando Schapachnik
>Release:        FreeBSD 2.2.7-RELEASE i386
>Organization:
VIA Net Works Argentina SA
>Environment:


Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.

FreeBSD 2.2.7-RELEASE #0: Tue Dec 22 09:33:13 ART 1998
    root@centinelli.sminter.com.ar:/usr/src/sys/compile/NKERNEL
CPU: Pentium II (quarter-micron) (267.27-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x650  Stepping=0
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,<b16>,<b17>,MMX,<b24>>
real memory  = 134217728 (131072K bytes)
avail memory = 128724992 (125708K bytes)
Probing for devices on PCI bus 0:
chip0 <generic PCI bridge (vendor=8086 device=7180 subclass=0)> rev 3 on pci0:0:0
chip1 <generic PCI bridge (vendor=8086 device=7181 subclass=4)> rev 3 on pci0:1:0
chip2 <Intel 82371AB PCI-ISA bridge> rev 2 on pci0:4:0
chip3 <Intel 82371AB IDE interface> rev 1 on pci0:4:1
chip4 <Intel 82371AB USB interface> rev 1 int d irq 9 on pci0:4:2
chip5 <Intel 82371AB Power management controller> rev 2 on pci0:4:3
xl0 <3Com 3c905B Fast Etherlink XL 10/100BaseTX> rev 36 int a irq 10 on pci0:9:0
xl0: Ethernet address: 00:10:4b:74:78:c3
vga0 <VGA-compatible display device> rev 227 int a irq ?? on pci0:10:0
Probing for devices on PCI bus 1:
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 not found at 0x280
fe0 not found at 0x300
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
lpt1 not found at 0xffffffff
mse0 not found at 0x23c
psm0 not found at 0x60
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <ST34321A>
wd0: 4103MB (8404830 sectors), 8894 cyls, 15 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <  34X CD-ROM/VER 1.D1>, removable, accel, dma, iordy
wcd0: 343/3781Kb/sec, 128Kb cache, audio play, 255 volume levels, ejectable tray
wcd0: no disc inside, unlocked
wdc1 not found at 0x170
sb0 at 0x220 irq 5 drq 1 on isa
sb0: <SoundBlaster 16 4.13>
sbxvi0 at 0x0 drq 5 on isa
sbxvi0: <SoundBlaster 16 4.13>
sbmidi0 at 0x330 on isa
 <SoundBlaster MPU-401>
opl0 at 0x388 on isa
opl0: <Yamaha OPL-3 FM>
npx0 flags 0x1 on motherboard
npx0: INT 16 interface
WARNING: / was not properly dismounted.
xl0: autoneg complete, link status good (half-duplex, 10Mbps)

Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0s1a     98479    17069    73532    19%    /
/dev/wd0s1f    992751   189024   724307    21%    /home
/dev/wd0s1g    496367        8   456650     0%    /tmp
/dev/wd0s1h   1229125   330775   800020    29%    /usr
/dev/wd0s1e    992751     4435   908896     0%    /var
procfs              4        4        0   100%    /proc
>Description:
(Maybe it should go i386, as it is about IDE, I'm not sure...)

The IDE disk is defective. The system completely freezes with no messages anywhere when trying to write in defective part of disk. Not only the system doesn't recover by itself, but it is needed to reset in order to make it work again.

>How-To-Repeat:

	Make a big download on /home partition.

>Fix:
	
	N/A


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Sat Aug 21 21:39:47 PDT 1999 
State-Changed-Why:  
This has been fixed in FreeBSD-current (and -stable??).  I don't expect 
it to be merged all the way back to 2.2-stable.  However, you may be 
able to distill the necessary incantations and test them and submit 
them for inclusion.  I don't believe it would be a worthwhile exercise, 
however, since a HD failure is generally (hopefully) a one (or few-) 
time occurrence. 
>Unformatted:
