Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2001 12:07:58 -0500
From:      devin-freebsdquestions@rintrah.org
To:        freebsd-questions@freebsd.org
Subject:   ide drive i/o halts every few seconds
Message-ID:  <20011211120758.A1331@tharmas.rintrah.org>

next in thread | raw e-mail | index | archive | help
I have a hard drive problem which I can't figure out how to pin down.
On the one hand, it seems like it's a bad hard drive, but on the other,
I don't have any indications of a bad drive other than this symptom:

When I burn a CD from an ISO image, I reliably get buffer underruns
when the ISO is stored on the /home directory (/dev/ad2s1e). The burner 
is a yamaha scsi, and I am able to burn ISO's stored on any other filesystem
just fine.

However, when I try to burn from /home, iostat shows the following disk
i/o, with these large 1 or 2 second periods when there is no disk i/o
on that drive at all (during a time when it should have a more or less
fixed rate read from ad2).

  [dsmith@tharmas]$ iostat -c 500
        tty             ad0              ad2              cd0             cpu
   tin tout  KB/t tps  MB/s   KB/t tps  MB/s   KB/t tps  MB/s  us ni sy in id
     0   29  0.00   0  0.00   0.00   0  0.00   0.00   0  0.00   0  0  0  0 99
     0   38  0.00   0  0.00  128.00   1  0.12   0.00   0  0.00   0  0  0  0100
     0   39  0.00   0  0.00  128.00   4  0.49   0.00   0  0.00   0  0  0  0100
     0   61  8.00   3  0.02  128.00   9  1.11   0.00   0  0.00   0  0  1  0 99
     0   61  0.00   0  0.00  128.00   5  0.62   0.00   0  0.00   0  0  1  0 99
->   0   61  0.00   0  0.00   0.00   0  0.00   0.00   0  0.00   0  0  0  0 99
->   0   61  0.00   0  0.00   0.00   0  0.00   0.00   0  0.00   0  0  0  0100
     0   82  0.00   0  0.00  127.33  12  1.48   0.00   0  0.00   0  0  1  0 99
     0   61  0.00   0  0.00  128.00   6  0.74   0.00   0  0.00   0  0  1  0 99
     0   61  0.00   0  0.00  128.00   9  1.11   0.00   0  0.00   0  0  2  0 98


1) What could be causing this? 
2) Is there a way to do a bad block scan of the HD from within FreeBSD?
3) Any other suggestions?

The ide controllers are both integrated onto the mobo (Tyan dual 440BX).
The scsi contoller is an adaptec 2906 pci card.

dmesg, mount, and df output are at the end of this message.

This is on 4.2-RELEASE.

Thanks in advance for any help.

--devin




Filesystem  512-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a     992222   159616   753230    17%    /
/dev/ad0s1f     396798    85520   279536    23%    /var
/dev/ad0s1h    3968958  1977666  1673776    54%    /tmp
/dev/ad0s1e    1984478  1644004   181716    90%    /usr
/dev/ad2s1e   38786024 22555972 13127172    63%    /home
procfs               8        8        0   100%    /proc

[dsmith@tharmas]$ mount
/dev/ad0s1a on / (ufs, local, soft-updates)
/dev/ad0s1f on /var (ufs, local, soft-updates)
/dev/ad0s1h on /tmp (ufs, local, soft-updates)
/dev/ad0s1e on /usr (ufs, local, soft-updates)
/dev/ad2s1e on /home (ufs, NFS exported, local, soft-updates)
procfs on /proc (procfs, local)


Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.2-RELEASE #0: Tue Dec 11 09:36:59 EST 2001
    dsmith@tharmas.rintrah.org:/home/src/sys/compile/THARMAS
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (367.50-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x665  Stepping = 5
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 67108864 (65536K bytes)
config> di psm0
config> di sn0
No such device: sn0
Invalid command or syntax.  Type `?' for help.
config> di lnc0
No such device: lnc0
Invalid command or syntax.  Type `?' for help.
config> di ie0
No such device: ie0
Invalid command or syntax.  Type `?' for help.
config> di fe0
No such device: fe0
Invalid command or syntax.  Type `?' for help.
config> di ed0
No such device: ed0
Invalid command or syntax.  Type `?' for help.
config> di cs0
No such device: cs0
Invalid command or syntax.  Type `?' for help.
config> di bt0
config> di aic0
config> di aha0
config> di adv0
config> q
avail memory = 61218816 (59784K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  0, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  1, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc03e8000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc03e809c.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xef80-0xef9f irq 19 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Timecounter "PIIX"  frequency 3579545 Hz
chip1: <Intel 82371AB Power management controller> port 0x440-0x44f at device 7.3 on pci0
pci0: <S3 ViRGE DX/GX graphics accelerator> at 16.0 irq 16
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xef40-0xef5f mem 0xfea00000-0xfeafffff,0xf65ff000-0xf65fffff irq 18 at device 18.0 on pci0
fxp0: Ethernet address 00:90:27:30:a1:6e
ahc0: <Adaptec 2910/15/20/30C SCSI adapter> port 0xe800-0xe8ff mem 0xfebef000-0xfebeffff irq 19 at device 19.0 on pci0
aic7850: Single Channel A, SCSI Id=7, 3/255 SCBs
de0: <Digital 21140A Fast Ethernet> port 0xec00-0xec7f mem 0xfebeef80-0xfebeefff irq 16 at device 20.0 on pci0
de0: Asante 21140A [10-100Mb/s] pass 2.2
de0: address 00:00:94:a1:6e:29
de0: enabling 10baseT port
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
SMP: AP CPU #1 Launched!
ad0: 6179MB <Maxtor 90648D3> [12556/16/63] at ata0-master UDMA33
ad2: 19541MB <Maxtor 52049U4> [39703/16/63] at ata1-master UDMA33
Waiting 15 seconds for SCSI devices to settle
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
cd0 at ahc0 bus 0 target 3 lun 0
cd0: <YAMAHA CRW8824S 1.00> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 15)
cd0: cd present [1 x 2048 byte records]
stray irq 7
stray irq 7
stray irq 7
stray irq 7
stray irq 7
too many stray irq 7's; not logging any more

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011211120758.A1331>