Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Dec 1997 12:26:22 -0600 (CST)
From:      Jacques Vidrine <nectar@NECTAR.COM>
To:        Igor Timkin <ivt@gamma.ru>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: panic: blkfree: freeling free block/frag
Message-ID:  <Pine.BSF.3.96.971205122548.2870C-100000@kai.communique.net>
In-Reply-To: <199712051553.SAA00865@crocus.gamma.ru>

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

Is there a FreeBSD-INN list or something similar?  There oughter be.  I'd
subscribe.

Jacques Vidrine <n@nectar.com>

On Fri, 5 Dec 1997, Igor Timkin wrote:

> Every 4-8 days my news server (~10 full incoming feeds, ~50
> outgoing feeds) crash:
> panic: blkfree: freeing free block
> or
> panic: blkfree: freeing free frag
> 
> I have a P6-200 rinning on a ASUS P65UP5+C-P6ND (BIOS rev. 2.05),
> with 512M ECC of RAM (with David Greenman patch).
> news spool is 6x4G Barracuda (ST15150W) CCD across two 2940UW.
> /etc/ccd.conf:
> ccd0    65536   0       /dev/sd8a /dev/sd5a /dev/sd9a /dev/sd10a /dev/sd6a /dev/sd7a
> /etc/fstab:
> # Device	Mountpoint	FStype	Options			Dump	Pass#
> /dev/sd1b	none		swap	sw			0	0
> /dev/sd0a	/		ufs	rw			1	1
> /dev/sd0d	/tmp		ufs	rw,async		1	1
> /dev/sd0e	/usr		ufs	rw			1	2
> /dev/sd0f	/usr/local	ufs	rw			1	2
> /dev/sd1a	/usr/local/news	ufs	rw,noatime		1	2
> /dev/sd0g	/var		ufs	rw,userquota		1	2
> /dev/ccd0c	/var/spool/news	ufs	rw,async,noatime,noexec,nosuid 0 2
> /dev/sd4a	/var/ftp	ufs	rw,noatime,nosuid	1	2
> /dev/sd2e	/var/ftp/.1	ufs	rw,noatime,noexec,nosuid 1	2
> /dev/sd3a	/var/ftp/.3	ufs	rw,noatime,noexec,nosuid 1	2
> crocus:/home	/home		nfs	rw			0	0
> proc		/proc		procfs	rw			0	0
> 
> This server is also ftp server (ftp2.ru.freebsd.org).
> ftp disks are nfs exported.
> 
> Last crash (Dec 5, 13:15):
> 
> dev=0x1502, block=20372, fs=/var/spool/news
> panic: blkfree: freeing free frag
> syncing disk 
> (unfortunately at this point the system is freeze and I have
> make the hardware reset, so I don't have crash dump).
> 
> fsck -y:
> ** /dev/rccd0c
> ** Phase 1 - Check Blocks and Sizes
> INCORRECT BLOCK COUNT I=290409 (44 should be 0)
> CORRECT? yes
> 
> 15195768 DUP I=437869
> 15195769 DUP I=437869
> 15195770 DUP I=437869
> 15195771 DUP I=437869
> 15195772 DUP I=437869
> 15195773 DUP I=437869
> 15195774 DUP I=437869
> 15195775 DUP I=437869
> ** Phase 1b - Rescan For More DUPS
> 15195768 DUP I=346079
> 15195769 DUP I=346079
> 15195770 DUP I=346079
> 15195771 DUP I=346079
> 15195772 DUP I=346079
> 15195773 DUP I=346079
> 15195774 DUP I=346079
> 15195775 DUP I=346079
> ** Phase 2 - Check Pathnames
> DUP/BAD  I=346079 OWNER=news MODE=100664
> SIZE=166129 MTIME=Dec  4 11:57 1997
> FILE=/alt/binaries/pictures/erotica/facials/428492
> 
> REMOVE? yes
> 
> DUP/BAD  I=437869 OWNER=news MODE=100664
> SIZE=240773 MTIME=Dec  3 10:32 1997
> FILE=/alt/mag/playboy/362582
> 
> REMOVE? yes
> 
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> LINK COUNT FILE I=290409 OWNER=news MODE=100664
> SIZE=0 MTIME=Dec  5 13:15 1997  COUNT 0 SHOULD BE 1
> ADJUST? yes
> 
> DUP/BAD  I=346079 OWNER=news MODE=100664
> SIZE=166129 MTIME=Dec  4 11:57 1997
> CLEAR? yes
> 
> DUP/BAD  I=437869 OWNER=news MODE=100664
> SIZE=240773 MTIME=Dec  3 10:32 1997
> CLEAR? yes
> 
> ** Phase 5 - Check Cyl groups
> FREE BLK COUNT(S) WRONG IN SUPERBLOCK
> SALVAGE? yes
> 
> BLK(S) MISSING IN BIT MAPS
> SALVAGE? yes
> 
> SUMMARY INFORMATION BAD
> SALVAGE? yes
> 
> CLEAN FLAG NOT SET IN SUPERBLOCK
> FIX? yes
> 
> strings /kernel | grep ^___ | sed s/^___//:
> #
> # NEWS -- Generic machine with WD/AHx/NCR/BTx family disks
> #
> #	$Id: NEWS,v 1.46.2.6 1995/10/25 17:29:51 jkh Exp $
> #
> machine		"i386"
> cpu		"I586_CPU"
> cpu		"I686_CPU"
> ident		NEWS
> maxusers	256
> config		kernel	root on sd0 
> options         INCLUDE_CONFIG_FILE     # Include this file in kernel
> #options	"MAXMEM=(512*1024)"
> options		"DFLDSIZ=(160UL*1024*1024)"
> options		"MAXDSIZ=(256UL*1024*1024)"
> options		"NBUF=12288"
> #options	MATH_EMULATE		#Support for x87 emulation
> options		"COMPAT_43"		#Compatible with BSD 4.3
> ## options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
> options		UCONSOLE		#Allow users to grab the console
> #
> # These three options provide support for System V Interface
> # Definition-style interprocess communication, in the form of shared
> # memory, semaphores, and message queues, respectively.
> #
> options		SYSVSHM
> options		SYSVSEM
> options		SYSVMSG
> options		FFS			#Berkeley Fast Filesystem
> options		NFS			#Network Filesystem
> #options		MSDOSFS			#MSDOS Filesystem
> #options		"CD9660"		#ISO 9660 Filesystem
> #options		PROCFS			#Process filesystem
> #options		MFS			#Memory Filesystem
> options		QUOTA			#Enables disk quotas
> options		"CHILD_MAX=256"
> options		"OPEN_MAX=256"
> #options	DDB			#Enable the kernel debugger.
> options		KTRACE			#Enable the system call trace facility.
> options		INET			#InterNETworking
> #options	MROUTING		#Multicat routing
> #options	IPFIREWALL		#firewall
> #options	IPFIREWALL_VERBOSE	#print information about dropped packets
> #options	IPACCT			#ipaccounting
> #options	ARP_PROXYALL		#global proxy ARP
> options		"AUTO_EOI1"
> controller	isa0
> controller	pci0
> controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
> disk		fd0	at fdc0 drive 0
> #disk		fd1	at fdc0 drive 1
> #tape		ft0	at fdc0 drive 2
> #controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
> #disk		wd0	at wdc0 drive 0
> #disk		wd1	at wdc0 drive 1
> #controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
> #disk		wd2	at wdc1 drive 0
> #disk		wd3	at wdc1 drive 1
> #controller	ncr0
> options		AHC_TAGENABLE
> options		AHC_SCBPAGING_ENABLE
> options		AHC_ALLOW_MEMIO
> controller	ahc0
> #controller	bt0	at isa? port "IO_BT0" bio irq ? vector btintr
> #controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
> #controller	ahc1	at isa? bio irq ? vector ahcintr
> #controller	ahb0	at isa? bio irq ? vector ahbintr
> #controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
> #controller	aic0    at isa? port 0x340 bio irq 11 vector aicintr
> #controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
> #controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
> #controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr
> options		"SCSI_DELAY=3"		#Be pessimistic about Joe SCSI device
> controller	scbus0
> device		sd0
> #device		st0
> #device		cd0	#Only need one of these, the code dynamically grows
> #options		SCSIDEBUG
> #options		SCSI_REPORT_GEOMETRY
> #device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
> #device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
> #device		mcd1	at isa? port 0x340 bio irq 11 vector mcdintr
> #controller	matcd0	at isa? port ? bio
> #device		scd0	at isa? port 0x230 bio
> # syscons is the default console driver, resembling an SCO console
> device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
> device		npx0	at isa? port "IO_NPX" iosiz 0x0 flags 0x0 irq 13 vector npxintr
> device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
> device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
> #device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
> #device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr
> #device		lpt0	at isa? port? tty irq 7 vector lptintr
> #device		lpt1	at isa? port? tty
> #device		lpt2	at isa? port? tty
> # Order is important here due to intrusive probes, do *not* alphabetize
> # this list of network interfaces until the probes have been fixed.
> # Right now it appears that the ie0 must be probed before ep0. See
> # revision 1.20 of this file.
> #device de0
> device ed0 at isa? port 0x280 net irq  5 iomem 0xd8000 vector edintr
> #device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
> #device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
> #device ep0 at isa? port 0x300 net irq 10 vector epintr
> #device ix0 at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector ixintr
> #device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
> #device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
> #device lnc1 at isa? port 0x300 net irq 10 drq 0 vector lncintr
> #device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
> #device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
> pseudo-device	loop
> pseudo-device	ether
> #pseudo-device	sl	1
> # ijppp uses tun instead of ppp device
> #pseudo-device	ppp	1
> #pseudo-device	tun	1
> pseudo-device	bpfilter	2	#Berkeley packet filter
> pseudo-device	gzip			#Exec gzipped a.out's
> pseudo-device	log
> pseudo-device	pty	16
> pseudo-device	snp	2
> pseudo-device	vn
> pseudo-device	speaker
> pseudo-device	ccd	2		#Concatenated disk driver
> 
> 
> dmesg:
> Copyright (c) 1992-1997 FreeBSD Inc.
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> 	The Regents of the University of California.  All rights reserved.
> 
> FreeBSD 2.2.5-RELEASE #1: Wed Nov 26 01:52:14 MSK 1997
>     ivt@news.gamma.ru:/usr/src/sys/compile/NEWS
> CPU: Pentium Pro (199.43-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0x619  Stepping=9
>   Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,<b11>,MTRR,PGE,MCA,CMOV>
> real memory  = 536870912 (524288K bytes)
> avail memory = 522248192 (510008K bytes)
> Probing for devices on PCI bus 0:
> chip0 <Intel 82440FX (Natoma) PCI and memory controller> rev 2 on pci0:0
> chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:1:0
> chip2 <Intel 82371SB IDE interface> rev 0 on pci0:1:1
> ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 9 on pci0:9
> ahc0: aic7880 Wide Channel, SCSI Id=7, 16/255 SCBs
> ahc0 waiting for scsi devices to settle
> ahc0: target 1 Tagged Queuing Device
> (ahc0:1:0): "WDIGTL ENTERPRISE 1.80" type 0 fixed SCSI 2
> sd0(ahc0:1:0): Direct-Access 2077MB (4254819 512 byte sectors)
> Sending SDTR!!
> ahc0: target 2 Tagged Queuing Device
> (ahc0:2:0): "WDIGTL ENTERPRISE 1.61" type 0 fixed SCSI 2
> sd1(ahc0:2:0): Direct-Access 2077MB (4254819 512 byte sectors)
> ahc1 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 12 on pci0:10
> ahc1: aic7880 Wide Channel, SCSI Id=7, 16/255 SCBs
> ahc1 waiting for scsi devices to settle
> ahc1: target 0 Tagged Queuing Device
> (ahc1:0:0): "SEAGATE ST15150W 0020" type 0 fixed SCSI 2
> sd2(ahc1:0:0): Direct-Access 4095MB (8388315 512 byte sectors)
> ahc1:A:4: refuses WIDE negotiation.  Using 8bit transfers
> ahc1: target 4 Tagged Queuing Device
> (ahc1:4:0): "IBM DCAS-34330 S60B" type 0 fixed SCSI 2
> sd3(ahc1:4:0): Direct-Access 4134MB (8467200 512 byte sectors)
> ahc1: target 5 Tagged Queuing Device
> (ahc1:5:0): "SEAGATE ST15230N 0298" type 0 fixed SCSI 2
> sd4(ahc1:5:0): Direct-Access 4095MB (8386733 512 byte sectors)
> vga0 <VGA-compatible display device> rev 67 int a irq 10 on pci0:11
> ahc2 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 11 on pci0:12
> ahc2: aic7880 Wide Channel, SCSI Id=7, 16/255 SCBs
> ahc2 waiting for scsi devices to settle
> ahc2: target 11 Tagged Queuing Device
> (ahc2:11:0): "DEC RZ29B    (C) DEC 0014" type 0 fixed SCSI 2
> sd5(ahc2:11:0): Direct-Access 4091MB (8380080 512 byte sectors)
> ahc2: target 14 Tagged Queuing Device
> (ahc2:14:0): "SEAGATE ST15150W 0023" type 0 fixed SCSI 2
> sd6(ahc2:14:0): Direct-Access 4095MB (8388315 512 byte sectors)
> ahc2: target 15 Tagged Queuing Device
> (ahc2:15:0): "SEAGATE ST15150W 0023" type 0 fixed SCSI 2
> sd7(ahc2:15:0): Direct-Access 4095MB (8388315 512 byte sectors)
> ahc3 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 9 on pci0:13
> ahc3: aic7880 Wide Channel, SCSI Id=7, 16/255 SCBs
> ahc3 waiting for scsi devices to settle
> ahc3: target 10 Tagged Queuing Device
> (ahc3:10:0): "DEC RZ29B    (C) DEC 0014" type 0 fixed SCSI 2
> sd8(ahc3:10:0): Direct-Access 4091MB (8380080 512 byte sectors)
> ahc3: target 12 Tagged Queuing Device
> (ahc3:12:0): "SEAGATE ST15150W 0023" type 0 fixed SCSI 2
> sd9(ahc3:12:0): Direct-Access 4095MB (8388315 512 byte sectors)
> ahc3: target 13 Tagged Queuing Device
> (ahc3:13:0): "SEAGATE ST15150W 0023" type 0 fixed SCSI 2
> sd10(ahc3:13:0): Direct-Access 4095MB (8388315 512 byte sectors)
> Probing for devices on the ISA bus:
> sc0 at 0x60-0x6f irq 1 on motherboard
> sc0: VGA color <16 virtual consoles, flags=0x0>
> ed0 at 0x280-0x29f irq 5 maddr 0xd8000 msize 16384 on isa
> ed0: address 00:00:c0:a4:2e:61, type WD8013EPC (16 bit) 
> sio0 at 0x3f8-0x3ff irq 4 on isa
> sio0: type 16550A
> sio1 at 0x2f8-0x2ff irq 3 on isa
> sio1: type 16550A
> fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
> fdc0: FIFO enabled, 8 bytes threshold
> fd0: 1.44MB 3.5in
> npx0 on motherboard
> npx0: INT 16 interface
> ccd0-1: Concatenated disk drivers
> WARNING: / was not properly dismounted.
> 
> Any suggestion ?
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971205122548.2870C-100000>