tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: WAPBL panic at mount time



On Tue, May 12, 2009 at 05:04:21PM +0200, Manuel Bouyer wrote:
> On Tue, May 12, 2009 at 03:57:54PM +0200, Manuel Bouyer wrote:
> > Hi,
> > trying to mount a 3.5TB filesystem with -o log on 5.0_STABLE, I get:
> > raid2: WARNING: raid2: total sector size in disklabel (3050553088) != the 
> > size of raid (7345520384)                                                   
> >           
> > panic: kernel diagnostic assertion "bp->b_freelistindex == -1" failed: file 
> > "/dsk/l1/misc/bouyer/netbsd-5/src/sys/kern/vfs_bio.c", line 327             
> >         
> 
> As this is a large partition, I'm using the raw device (raid2d) and
> there's no partition table. I wonder what ffs_statvfs() will get in such a
> case. 

Here's what dumpfs says:
wapbl version 0x1       location 1      flags 0x0
wapbl loc0 7345520380   loc1 18446744069414584324       loc2 512        loc3 0

So it misinterpreted the paritition's size and though it had
space to add a log after the filesystem. It also miscomputed the
log size.

Clearing this bogus wapbl log, attaching this partition to a wedge
and mounting the wedge -o log properly created an in-filesystem log.
After that I could mount -o log the raw partition, and it's also properly
journaled.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index