Subject: Weird file system problem within i386-current
To: None <current-users@netbsd.org>
From: Tom Ivar Helbekkmo <tih@catch.no>
List: current-users
Date: 08/14/2002 13:24:37
I've got something here that I don't understand at all... The system
was installed back in October, using the then latest release (1.5.2,
was it?), and upgraded to -current in November. Everything was fine,
until I "re-currented" it in July. Then, one single, weird problem
showed up:
This system boots its kernel from a small sd0a partition, but has its
file systems on auto-configured RAIDframe file systems. This still
works, except that -current can't mount /dev/sd0a anymore! I have to
keep the old kernel around as /netbsd.keep, just to boot from it when I
want to update the kernel on sd0a. :-)
14 argus:~# ls -l /netbsd*
-rwxr-xr-x 1 root wheel 5996749 Jul 11 09:35 /netbsd
-rwxr-xr-x 1 root wheel 5493515 Nov 9 2001 /netbsd.keep
15 argus:~# grep sd0a /etc/fstab
/dev/sd0a /0 ffs rw,noauto 0 0
16 argus:~# fsck -f /dev/rsd0a
** /dev/rsd0a
** File system is already clean
** Last Mounted on /0
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
5 files, 34088 used, 30986 free (10 frags, 3872 blocks, 0.0% fragmentation)
17 argus:~# mount /0
mount_ffs: /dev/sd0a on /0: incorrect super block
18 argus:~# disklabel sd0
[...]
8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 69209 63 4.2BSD 512 4096 8 # (Cyl. 0*- 29*)
c: 35524377 63 unused 0 0 # (Cyl. 0*- 15103*)
d: 35548320 0 unused 0 0 # (Cyl. 0 - 15114*)
e: 262208 69272 RAID # (Cyl. 29*- 140*)
f: 2097216 331480 RAID # (Cyl. 140*- 1032*)
g: 33095744 2428696 RAID # (Cyl. 1032*- 15103*)
19 argus:~# dumpfs sd0a
file system: /dev/rsd0a
endian little-endian
magic 11954 time Thu Jul 11 09:50:11 2002
id [ 0 0 ]
cylgrp dynamic inodes 4.4BSD fslevel 3 softdep disabled
nbfree 3872 ndir 1 nifree 16377 nffree 10
ncg 4 ncyl 30 size 69299 blocks 65074
bsize 4096 shift 12 mask 0xfffff000
fsize 512 shift 9 mask 0xfffffe00
frag 8 shift 3 fsbtodb 0
cpg 8 bpg 2352 fpg 18816 ipg 4096
minfree 5% optim time maxcontig 16 maxbpg 1024
rotdelay 0ms rps 60
ntrak 6 nsect 392 npsect 392 spc 2352
symlinklen 60 trackskew 0 interleave 1 contigsumsize 16
maxfilesize 0x000004010040bfff
nindir 1024 inopb 32 nspf 1
avgfilesize 16384 avgfpdir 64
sblkno 32 cblkno 48 iblkno 56 dblkno 1080
sbsize 2048 cgsize 3584 offset 392 mask 0xfffffff8
csaddr 1080 cssize 512 shift 8 mask 0xffffff00
cgrotor 1 fmod 0 ronly 0 clean 0x01
blocks available in each of 1 rotational positions
[...]
20 argus:~# fsdb -n -f /dev/rsd0a
** /dev/rsd0a (NO WRITE)
** File system is already clean
Editing file system `/dev/rsd0a'
Last Mounted on /0
current inode: directory
I=2 MODE=40755 SIZE=512
MTIME=Jul 11 08:24:01 2002 [157213000 nsec]
CTIME=Jul 11 08:24:01 2002 [157213000 nsec]
ATIME=Jul 11 09:50:25 2002 [670000000 nsec]
OWNER=root GRP=wheel LINKCNT=2 FLAGS=0x0 BLKCNT=0x1 GEN=0x0
fsdb (inum: 2)> ls
slot 0 ino 2 reclen 12: directory, `.'
slot 1 ino 2 reclen 12: directory, `..'
slot 2 ino 4 reclen 16: regular, `boot'
slot 3 ino 3 reclen 20: regular, `netbsd.old'
slot 4 ino 6 reclen 16: regular, `netbsd'
slot 5 ino 5 reclen 436: regular, `gennetbsd'
fsdb (inum: 2)> quit
21 argus:~#
-tih
--
Tom Ivar Helbekkmo, Senior System Administrator, Catch Communications
www.catch.no Phone: +47-22092958 Mob: +47-93013940 Fax: +47-22092901