From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 19 16:10:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7491F106566C for ; Sat, 19 Sep 2009 16:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 507238FC16 for ; Sat, 19 Sep 2009 16:10:01 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8JGA1ej049987 for ; Sat, 19 Sep 2009 16:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8JGA10M049986; Sat, 19 Sep 2009 16:10:01 GMT (envelope-from gnats) Resent-Date: Sat, 19 Sep 2009 16:10:01 GMT Resent-Message-Id: <200909191610.n8JGA10M049986@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Laabs Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE1AB1065679 for ; Sat, 19 Sep 2009 16:02:01 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id BBA588FC08 for ; Sat, 19 Sep 2009 16:02:01 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8JG21je065293 for ; Sat, 19 Sep 2009 16:02:01 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n8JG21aG065292; Sat, 19 Sep 2009 16:02:01 GMT (envelope-from nobody) Message-Id: <200909191602.n8JG21aG065292@www.freebsd.org> Date: Sat, 19 Sep 2009 16:02:01 GMT From: Martin Laabs To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/138967: HDD write error: g_vfs_done(): ... ]error = 1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Sep 2009 16:10:01 -0000 >Number: 138967 >Category: kern >Synopsis: HDD write error: g_vfs_done(): ... ]error = 1 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 19 16:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Martin Laabs >Release: 7.2-STABLE >Organization: - >Environment: FreeBSD pc.martinlaabs.de 7.2-STABLE FreeBSD 7.2-STABLE #1: Sat Aug 15 18:48:58 CEST 2009 martin@pc.martinlaabs.de:/usr/obj/usr/src/sys/GENERIC i386 >Description: Some times I get the following errors at dmesg and syslog: Sep 18 14:03:38 pc kernel: g_vfs_done():ufs/home[WRITE(offset=50879266816, length=131072)]error = 1 Sep 18 14:04:05 pc last message repeated 287 times Sep 18 14:07:43 pc kernel: g_vfs_done():ufs/home[WRITE(offset=50879283200, length=131072)]error = 1 Sep 18 14:08:06 pc last message repeated 216 tim They repeat endless until reboot. There the kernel gives up the buffers which leads to a dirty file system and maybe also data loss. However I don't belive the harddisk is broken because it is new and SMART reports no errors at all. I use the SATA adX device with gbde encryption. Here are some information about: (full dmesg is attached) atapci1: port 0xf80-0xf87,0xf00-0xf03,0 xe80-0xe87,0xe00-0xe03,0xdc00-0xdc0f mem 0xfbe76000-0xfbe77fff irq 23 at device 9.0 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.10 controller with 4 ports detected [...] ata4: on atapci1 ata4: [ITHREAD] [...] ad4: 476940MB at ata2-master SATA300 su:/home/martin$ geom bde list Geom name: label/home.bde Providers: 1. Name: label/home.bde Mediasize: 52060192768 (48G) Sectorsize: 512 Mode: r1w1e2 Consumers: 1. Name: label/home Mediasize: 53687090688 (50G) Sectorsize: 512 Mode: r2w2e3 [...] su:/home/martin$ tunefs -p /dev/label/home.bde tunefs: ACLs: (-a) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: gjournal: (-J) disabled tunefs: maximum blocks per file in a cylinder group: (-e) 2048 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) home su:/home/martin$ fdisk /dev/ad4 ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: [...] The data for partition 4 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 293587875, size 683180190 (333584 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 14/ sector 63 su:/home/martin$ bsdlabel /dev/ad4s4 # /dev/ad4s4: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 683180190 0 unused 0 0 # "raw" part, don't edit d: 104857600 0 4.2BSD 0 0 0 e: 62914560 104857600 4.2BSD 0 0 0 f: 515408030 167772160 4.2BSD 0 0 0 >How-To-Repeat: >Fix: Patch attached with submission follows: Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-STABLE #1: Sat Aug 15 18:48:58 CEST 2009 martin@pc.martinlaabs.de:/usr/obj/usr/src/sys/GENERIC module_register: module cpu/ichss already exists! Module cpu/ichss failed to register: 17 module_register: module uhub/uftdi already exists! Module uhub/uftdi failed to register: 17 module_register: module cpu/est already exists! Module cpu/est failed to register: 17 module_register: module cpu/p4tcc already exists! Module cpu/p4tcc failed to register: 17 module_register: module cpu/powernow already exists! Module cpu/powernow failed to register: 17 module_register: module cpu/smist already exists! Module cpu/smist failed to register: 17 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) II X2 240 Processor (2795.97-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x100f62 Stepping = 2 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x37ff TSC: P-state invariant Cores per package: 2 real memory = 2012938240 (1919 MB) avail memory = 1947013120 (1856 MB) ACPI APIC Table: <040909 APIC1950> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: <040909 RSDT1950> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of fefe1000, 1000 (3) failed acpi0: reservation of fee01000, ff000 (3) failed acpi0: reservation of fec00000, 1000 (3) failed acpi0: reservation of fee00000, 1000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) isab0: port 0x1f00-0x1fff at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) pci0: at device 1.3 (no driver attached) ohci0: mem 0xfbe7f000-0xfbe7ffff irq 22 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 6 ports with 6 removable, self powered ehci0: mem 0xfbe7ec00-0xfbe7ecff irq 23 at device 2.1 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb1: EHCI version 1.0 usb1: companion controller, 12 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: on usb1 uhub1: 6 ports with 6 removable, self powered ohci1: mem 0xfbe7d000-0xfbe7dfff irq 20 at device 4.0 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb2: OHCI version 1.0, legacy support usb2: SMM does not respond, resetting usb2: on ohci1 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 6 ports with 6 removable, self powered ehci1: mem 0xfbe7e800-0xfbe7e8ff irq 21 at device 4.1 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controller, 12 ports each: usb2 usb3: on ehci1 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered ugen0: on uhub3 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 6.0 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] hdac0: mem 0xfbe78000-0xfbe7bfff irq 22 at device 7.0 on pci0 hdac0: HDA Driver Revision: 20090624_0136 hdac0: [ITHREAD] pcib1: at device 8.0 on pci0 pci1: on pcib1 pcib2: at device 10.0 on pci1 pci2: on pcib2 asr0: mem 0xf6000000-0xf7ffffff irq 10 at device 10.1 on pci1 asr0: [GIANT-LOCKED] asr0: [ITHREAD] asr0: ADAPTEC 2100S FW Rev. 370F, 1 channel, 2000 CCBs, Protocol I2O atapci1: port 0xf80-0xf87,0xf00-0xf03,0xe80-0xe87,0xe00-0xe03,0xdc00-0xdc0f mem 0xfbe76000-0xfbe77fff irq 23 at device 9.0 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.10 controller with 4 ports detected ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] nfe0: port 0xd880-0xd887 mem 0xfbe7c000-0xfbe7cfff,0xfbe7e400-0xfbe7e4ff,0xfbe7e000-0xfbe7e00f irq 20 at device 10.0 on pci0 miibus0: on nfe0 rgephy0: PHY 3 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto nfe0: Ethernet address: 00:19:66:db:c0:ec nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] pcib3: at device 11.0 on pci0 pci3: on pcib3 pcib4: at device 12.0 on pci0 pci4: on pcib4 pcib5: at device 13.0 on pci0 pci5: on pcib5 pcib6: at device 14.0 on pci0 pci6: on pcib6 pcib7: at device 15.0 on pci0 pci7: on pcib7 pcib8: at device 16.0 on pci0 pci8: on pcib8 pcib9: at device 17.0 on pci0 pci9: on pcib9 vgapci0: mem 0xfa000000-0xfaffffff,0xe0000000-0xefffffff,0xf9000000-0xf9ffffff irq 21 at device 18.0 on pci0 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] acpi_button0: on acpi0 sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sio1: configured irq 4 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: configured irq 4 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0 sio1: type 16550A sio1: [FILTER] cpu0: on acpi0 cpu1: on acpi0 pmtimer0 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 ppbus0: [ITHREAD] lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: on uhub0 ums0: 3 buttons and Z dir. uhub4: on uhub2 uhub4: 4 ports with 4 removable, bus powered ugen1: on uhub4 ugen2: on uhub4 uhid0: on uhub2 Timecounters tick every 1.000 msec acd0: DVDR at ata0-master UDMA66 ad4: 476940MB at ata2-master SATA300 hdac0: HDA Codec #0: Realtek ALC662 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 (probe0:asr0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:asr0:0:0:0): CAM Status: SCSI Status Error (probe0:asr0:0:0:0): SCSI Status: Check Condition (probe0:asr0:0:0:0): UNIT ATTENTION asc:29,0 (probe0:asr0:0:0:0): Power on, reset, or bus device reset occurred (probe0:asr0:0:0:0): Retrying Command (per Sense Data) (probe0:asr0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:asr0:0:0:0): CAM Status: SCSI Status Error (probe0:asr0:0:0:0): SCSI Status: Check Condition (probe0:asr0:0:0:0): NOT READY asc:3a,0 (probe0:asr0:0:0:0): Medium not present (probe0:asr0:0:0:0): Unretryable error sa0 at asr0 bus 0 target 0 lun 0 sa0: Removable Sequential Access SCSI-3 device SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ufs/root WARNING: / was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted WARNING: /media was not properly dismounted WARNING: /home was not properly dismounted nfe0: link state changed to UP fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 linux_js: /dev/uhid0 (Logitech Logitech Extreme 3D) attached to /dev/input/js0 ad4: FAILURE - SMART status=51 error=4 ad4: FAILURE - SMART status=51 error=4 >Release-Note: >Audit-Trail: >Unformatted: