Subject: bin/25819: rc.d/fixsb fails badly on at least one system
To: None <gnats-bugs@gnats.NetBSD.org>
From: David Brownlee <abs@purplei.com>
List: netbsd-bugs
Date: 06/04/2004 17:55:11
>Number: 25819
>Category: bin
>Synopsis: rc.d/fixsb fails badly on at least one system
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 04 16:56:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: David Brownlee
>Release: NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD tll.i.purplei.com 2.0_BETA NetBSD 2.0_BETA (_X86_) #0: Mon May 24 17:38:12 BST 2004 abs@forsaken:/var/obj/i386/files/netbsd/2.0/sys/arch/i386/compile/_X86_ i386
Architecture: i386
Machine: i386
>Description:
Upgraded a system from 1.6 to 2.0_BETA, filesystems were newfsed
to UFS2.
Upon bootup the system drops into singleuser with the message:
Checking for botched superblock upgrades:
Repairing partition /dev/rraid1a
Alternate super block location: 16
/dev/rraid1a: CONVERTING TO NEW SUPERBLOCK LAYOUT
PARTIALLY ALLOCATED INODE I=6
/dev/rraid1a: UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY.
Automatic file system check failed; help!
To clarify - filesystem was created under 2.0_BETA kernel and userland
# dumpfs /dev/rraid1a | head -20
file system: /dev/rraid1a
endian little-endian
location 65536 (-b 128)
magic 19540119 (UFS2) time Fri Jun 4 17:52:47 2004
superblock location 65536 id [ 40b4ab0f 2740851c ]
cylgrp dynamic inodes FFSv2 sblock FFSv2 fslevel 5
nbfree 76296 ndir 89612 nifree 423315 nffree 2354
ncg 26 size 4864000 blocks 4788887
bsize 32768 shift 15 mask 0xffff8000
fsize 4096 shift 12 mask 0xfffff000
frag 8 shift 3 fsbtodb 3
bpg 23385 fpg 187080 ipg 45952
minfree 5% optim time maxcontig 2 maxbpg 4096
symlinklen 120 contigsumsize 2
maxfilesize 0x000800800805ffff
nindir 4096 inopb 128
avgfilesize 16384 avgfpdir 64
sblkno 24 cblkno 32 iblkno 40 dblkno 2912
sbsize 4096 cgsize 32768
csaddr 2912 cssize 4096
# disklabel raid1|tail
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 38912000 0 4.2BSD 4096 32768 56008 # (Cyl. 0 - 37999)
b: 2048000 38912000 swap # (Cyl. 38000 - 39999)
c: 120102016 0 unused 0 0 # (Cyl. 0 - 117287*)
d: 120102016 0 unused 0 0 # (Cyl. 0 - 117287*)
e: 79142016 40960000 4.2BSD 4096 32768 55584 # (Cyl. 40000 - 117287*)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: