Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 21:49:07 +0200
From:      Jesper Skriver <jesper@FreeBSD.org>
To:        stable@FreeBSD.org
Subject:   4.3-STABLE kernel panic, ufs_dirbad: bad dir
Message-ID:  <20010711214907.A8043@skriver.dk>

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

--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

After it came up, I had to do a manuel fsck, where it said:

# fsck -y /data
** /dev/vinum/raid01
** Last Mounted on /data
** Phase 1 - Check Blocks and Sizes


PARTIALLY ALLOCATED INODE I=3D6527511
CLEAR? yes

** Phase 2 - Check Pathnames
DIRECTORY CORRUPTED  I=3D663289  OWNER=3Dmie MODE=3D40755
SIZE=3D15360 MTIME=3DJul 11 20:31 2001=20
DIR=3D/rrd/kd4nxx4

SALVAGE? yes

** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=3D663509  OWNER=3Dmie MODE=3D100644
SIZE=3D1739860 MTIME=3DJul 11 18:25 2001=20
RECONNECT? yes

UNREF FILE  I=3D663510  OWNER=3Dmie MODE=3D100644
SIZE=3D1739860 MTIME=3DJul 11 18:25 2001=20
RECONNECT? yes

UNREF FILE  I=3D663511  OWNER=3Dmie MODE=3D100644
SIZE=3D1739860 MTIME=3DJul 11 18:25 2001=20
RECONNECT? yes

UNREF FILE  I=3D663512  OWNER=3Dmie MODE=3D100644
SIZE=3D1739860 MTIME=3DJul 11 18:25 2001=20
RECONNECT? yes

UNREF FILE  I=3D663513  OWNER=3Dmie MODE=3D100644
SIZE=3D1739860 MTIME=3DJul 11 18:25 2001=20
RECONNECT? yes

UNREF FILE  I=3D663514  OWNER=3Dmie MODE=3D100644
SIZE=3D1739860 MTIME=3DJul 11 18:25 2001=20
RECONNECT? yes

UNREF FILE  I=3D663515  OWNER=3Dmie MODE=3D100644
SIZE=3D1739860 MTIME=3DJul 11 18:25 2001=20
RECONNECT? yes

** Phase 5 - Check Cyl groups
69161 files, 25737423 used, 2928406 free (398 frags, 732002 blocks, 0.0% fr=
agmentation)

***** FILE SYSTEM MARKED CLEAN *****

***** FILE SYSTEM WAS MODIFIED *****

kernel dump available on request, a backtrace gives:

(kgdb) bt
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:472
#1  0xc015a0db in boot (howto=3D256) at /usr/src/sys/kern/kern_shutdown.c:3=
12
#2  0xc015a471 in panic (fmt=3D0xc0258a27 "ufs_dirbad: bad dir") at /usr/sr=
c/sys/kern/kern_shutdown.c:559
#3  0xc01f88b2 in ufs_dirbad (ip=3D0xc20fba00, offset=3D12400, how=3D0xc025=
89d0 "mangled entry") at /usr/src/sys/ufs/ufs/ufs_lookup.c:595
#4  0xc01f80d0 in ufs_lookup (ap=3D0xd8c3eda8) at /usr/src/sys/ufs/ufs/ufs_=
lookup.c:248
#5  0xc01fcf71 in ufs_vnoperate (ap=3D0xd8c3eda8) at /usr/src/sys/ufs/ufs/u=
fs_vnops.c:2373
#6  0xc018208e in vfs_cache_lookup (ap=3D0xd8c3ee00) at vnode_if.h:77
#7  0xc01fcf71 in ufs_vnoperate (ap=3D0xd8c3ee00) at /usr/src/sys/ufs/ufs/u=
fs_vnops.c:2373
#8  0xc0184f61 in lookup (ndp=3D0xd8c3ee84) at vnode_if.h:52
#9  0xc0184a8f in namei (ndp=3D0xd8c3ee84) at /usr/src/sys/kern/vfs_lookup.=
c:153
#10 0xc018a4b1 in stat (p=3D0xd8d3c380, uap=3D0xd8c3ef80) at /usr/src/sys/k=
ern/vfs_syscalls.c:1754
#11 0xc022d441 in syscall2 (frame=3D{tf_fs =3D 47, tf_es =3D 47, tf_ds =3D =
47, tf_edi =3D -1077936752, tf_esi =3D 136817344, tf_ebp =3D -1077937076,
      tf_isp =3D -658247724, tf_ebx =3D 672130380, tf_edx =3D 672136996, tf=
_ecx =3D 0, tf_eax =3D 188, tf_trapno =3D 0, tf_err =3D 2, tf_eip =3D 67263=
1864,
      tf_cs =3D 31, tf_eflags =3D 643, tf_esp =3D -1077937136, tf_ss =3D 47=
}) at /usr/src/sys/i386/i386/trap.c:1150
#12 0xc0221885 in Xint0x80_syscall ()
#13 0x2808cbe3 in ?? ()
#14 0x2807e16e in ?? ()
#15 0x280e9acc in ?? ()
#16 0x8048e91 in ?? ()
#17 0x8048d7d in ?? ()

This is on a very full filesystem without softupdates, and
'minfree' set to 0% (in order to live until more disks arrive).

$ tunefs -p /data
tunefs: soft updates:  (-n)                                disabled
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: minimum percentage of free space: (-m)             0%
tunefs: optimization preference: (-o)                      time
tunefs: should optimize for space with minfree < 8%

Any ideas ?

/Jesper

--=20
Jesper Skriver, jesper(at)skriver(dot)dk  -  CCIE #5456
Work:    Network manager   @ AS3292 (Tele Danmark DataNetworks)
Private: FreeBSD committer @ AS2109 (A much smaller network ;-)

One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them.

--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7TK2zIqvw7PlWHDERAuaoAKCHGvKOAnbjC7zLcFVD0W6WKMU3QQCfeIi1
unyb9ud8/FaEGmF9sAnGats=
=dT0G
-----END PGP SIGNATURE-----

--RnlQjJ0d97Da+TV1--

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




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