Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 2002 14:54:40 GMT
From:      wiwi@progon.net
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/45373: softupdate / fs damaged after loss of power / CG 8: Bad Magic Number
Message-ID:  <200211171454.gAHEseEC067853@thor.progon.net>

next in thread | raw e-mail | index | archive | help

>Number:         45373
>Category:       kern
>Synopsis:       softupdate / fs damaged after loss of power / CG 8: Bad Magic Number
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 17 07:00:04 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     wiwi@progon.net
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
progon network engineering
>Environment:
System: FreeBSD heimdall.progon.net 4.7-STABLE FreeBSD 4.7-STABLE #4: Mon Nov 11 01:14:25 CET 2002 root@heimdall.progon.net:/usr/src/sys/compile/heimdall i386

>Description:
After a loss of power I often get the following error message when the system
restarts. The problem mostly happens on my logging slice (/var/log) but the
root slice was also stuck from this problem.

   /dev/ad0s1e: CG 8: BAD MAGIC NUMBER
   /dev/ad0s1e: UNEXPECTED SOFTUPDATE INCONSITENCY; RUN fsck MANUALLY

Some files *are* damaged after fsck, contents are lost (or are replaced by random data).

This happend to three indepent computer at our site, however all of these three PCs were Compaq Evo D51s/2.4Ghz.

heimdall# tunefs -p /dev/ad0s1e (/var/log)
tunefs: soft updates:  (-n)                                enabled
tunefs: maximum contiguous block count: (-a)               7
tunefs: rotational delay between contiguous blocks: (-d)   0 ms
tunefs: maximum blocks per file in a cylinder group: (-e)  4096
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

-

heimdall# tunefs -p /dev/ad0s1a (/)
tunefs: soft updates:  (-n)                                enabled
tunefs: maximum contiguous block count: (-a)               7
tunefs: rotational delay between contiguous blocks: (-d)   0 ms
tunefs: maximum blocks per file in a cylinder group: (-e)  4096
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

-

uname -a:

FreeBSD heimdall.progon.net 4.7-STABLE FreeBSD 4.7-STABLE #2: Mon Oct 21 12:02:42 GMT 2002     wiwi@heimdall.progon.net:/usr/src/sys
/compile/heimdall  i386

-

tail /log/messages:

Nov 11 08:56:59 heimdall Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Nov 11 08:56:59 heimdall        The Regents of the University of California. All rights reserved.
Nov 11 08:56:59 heimdall FreeBSD 4.7-STABLE #2: Mon Oct 21 12:02:42 GMT 2002
Nov 11 08:56:59 heimdall wiwi@heimdall.progon.net:/usr/src/sys/compile/heimdall
Nov 11 08:56:59 heimdall Timecounter "i8254"  frequency 1193182 Hz
Nov 11 08:56:59 heimdall CPU: Pentium 4 (2392.04-MHz 686-class CPU)
Nov 11 08:56:59 heimdall Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
Nov 11 08:56:59 heimdall Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACP
I,MMX,FXSR,SSE,SSE2,SS,<b28>,ACC>
Nov 11 08:56:59 heimdall real memory  = 260046848 (253952K bytes)
Nov 11 08:56:59 heimdall avail memory = 249626624 (243776K bytes)
Nov 11 08:56:59 heimdall Preloaded elf kernel "kernel" at 0xc035b000.
Nov 11 08:56:59 heimdall Pentium Pro MTRR support enabled
Nov 11 08:56:59 heimdall md0: Malloc disk
Nov 11 08:56:59 heimdall Using $PIR table, 10 entries at 0xc00ecef0
Nov 11 08:56:59 heimdall npx0: <math processor> on motherboard
Nov 11 08:56:59 heimdall npx0: INT 16 interface
Nov 11 08:56:59 heimdall pcib0: <Host to PCI bridge> on motherboard
Nov 11 08:56:59 heimdall pci0: <PCI bus> on pcib0
Nov 11 08:56:59 heimdall pci0: <Intel model 2562 VGA-compatible display device> at 2.0 irq 5
Nov 11 08:56:59 heimdall uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x2440-0x245f irq 5 at device 29.0 on pci0
Nov 11 08:56:59 heimdall usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
Nov 11 08:56:59 heimdall usb0: USB revision 1.0
Nov 11 08:56:59 heimdall uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
Nov 11 08:56:59 heimdall uhub0: 2 ports with 2 removable, self powered
Nov 11 08:56:59 heimdall uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0x2460-0x247f irq 11 at device 29.1 on pci0
Nov 11 08:56:59 heimdall usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
Nov 11 08:56:59 heimdall usb1: USB revision 1.0
Nov 11 08:56:59 heimdall uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
Nov 11 08:56:59 heimdall uhub1: 2 ports with 2 removable, self powered
Nov 11 08:56:59 heimdall pci0: <USB controller> at 29.7 irq 5
Nov 11 08:56:59 heimdall pcib1: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0
Nov 11 08:56:59 heimdall pci5: <PCI bus> on pcib1
Nov 11 08:56:59 heimdall fxp0: <Intel Pro/100 Ethernet> port 0x1000-0x103f mem 0xfc500000-0xfc500fff irq 10 at device 8.0 on pci5
Nov 11 08:56:59 heimdall fxp0: Ethernet address 00:08:02:a8:92:fa
Nov 11 08:56:59 heimdall inphy0: <i82562EM 10/100 media interface> on miibus0
Nov 11 08:56:59 heimdall inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Nov 11 08:56:59 heimdall isab0: <PCI to ISA bridge (vendor=8086 device=24c0)> at device 31.0 on pci0
Nov 11 08:56:59 heimdall isa0: <ISA bus> on isab0
Nov 11 08:56:59 heimdall atapci0: <Intel ICH4 ATA100 controller> port 0x24a0-0x24af,0x24c4-0x24c7,0x24b8-0x24bf,0x24c0-0x24c3,0x24b0
-0x24b7 irq 10 at device 31.1 on pci0
Nov 11 08:56:59 heimdall ata0: at 0x1f0 irq 14 on atapci0
Nov 11 08:56:59 heimdall ata1: at 0x170 irq 15 on atapci0
Nov 11 08:56:59 heimdall pci0: <unknown card> (vendor=0x8086, dev=0x24c5) at 31.5 irq 5
Nov 11 08:56:59 heimdall fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
Nov 11 08:56:59 heimdall fdc0: FIFO enabled, 8 bytes threshold
Nov 11 08:56:59 heimdall fd0: <1440-KB 3.5" drive> on fdc0 drive 0
Nov 11 08:56:59 heimdall atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
Nov 11 08:56:59 heimdall atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
Nov 11 08:56:59 heimdall kbd0 at atkbd0
Nov 11 08:56:59 heimdall psm0: <PS/2 Mouse> irq 12 on atkbdc0
Nov 11 08:56:59 heimdall psm0: model IntelliMouse, device ID 3
Nov 11 08:56:59 heimdall vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Nov 11 08:56:59 heimdall sc0: <System console> at flags 0x100 on isa0
Nov 11 08:56:59 heimdall sc0: VGA <16 virtual consoles, flags=0x300>
Nov 11 08:56:59 heimdall sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
Nov 11 08:56:59 heimdall sio0: type 16550A
Nov 11 08:56:59 heimdall sio1 at port 0x2f8-0x2ff irq 3 on isa0
Nov 11 08:56:59 heimdall sio1: type 16550A
Nov 11 08:56:59 heimdall ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
Nov 11 08:56:59 heimdall ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
Nov 11 08:56:59 heimdall ppc0: FIFO with 16/16/13 bytes threshold
Nov 11 08:56:59 heimdall ppi0: <Parallel I/O> on ppbus0
Nov 11 08:56:59 heimdall lpt0: <Printer> on ppbus0
Nov 11 08:56:59 heimdall lpt0: Interrupt-driven port
Nov 11 08:56:59 heimdall IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to accept, logging
limited to 999 packets/entry by default
Nov 11 08:56:59 heimdall IPv6 packet filtering initialized, default to accept, logging limited to 999 packets/entry
Nov 11 08:56:59 heimdall IPsec: Initialized Security Association Processing.
Nov 11 08:56:59 heimdall ad0: 38166MB <ST340016A> [77545/16/63] at ata0-master UDMA100
Nov 11 08:56:59 heimdall acd0: DVD-ROM <COMPAQ DVD-ROM GDR8160B> at ata1-master PIO4
Nov 11 08:56:59 heimdall Mounting root from ufs:/dev/ad0s1a
Nov 11 08:56:59 heimdall VESA: v3.0, 8000k memory, flags:0x1, mode table:0xc13702a0 (1000040)
Nov 11 08:56:59 heimdall VESA: Brookdale-G Graphics Chip Accelerated VGA BIOS
Nov 11 08:56:59 heimdall WARNING: pseudo-random number generator used for IPsec processing
Nov 11 08:56:59 heimdall squid[134]: Configuring Sibling pb.us.ircache.net/3128/3130
Nov 11 08:56:59 heimdall squid[134]: Configuring Sibling sj.us.ircache.net/3128/3130
Nov 11 08:57:46 heimdall su: wiwi to root on /dev/ttyp0
Nov 11 08:57:48 heimdall ntpd[138]: kernel time discipline status change 2041
Nov 11 09:13:14 heimdall squid[134]: Detected DEAD Sibling: sj.us.ircache.net/3128/3130
Nov 11 09:13:15 heimdall squid[134]: Detected REVIVED Sibling: sj.us.ircache.net/3128/3130
>How-To-Repeat:

>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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