Strange case of filesystem corruption?

Mikhail Teterin mi+mx at aldan.algebra.com
Tue Sep 6 08:46:57 PDT 2005


> Do you have back logs to when bgfsck was running, btw?

Yes, indeed. And there is stuff in them... The machine crashed
on July 21st at 00:20 (/var is troublesome fs):

Jul 21 00:20:37 blue kernel: WARNING: /var was not properly dismounted
Jul 21 00:20:37 blue kernel: /var: mount pending error: blocks 28 files 2
Jul 21 00:29:05 blue kernel: root at blue.virtual-estates.net:/var/obj/var/src/sys/SILVER
Jul 21 00:29:05 blue kernel: WARNING: /var was not properly dismounted
Jul 21 00:29:05 blue kernel: /var: mount pending error: blocks 28 files 2
Jul 21 00:32:21 blue fsck: /dev/da0s1d: UNREF FILE I=11559  OWNER=root MODE=100400
Jul 21 00:32:21 blue fsck: /dev/da0s1d: SIZE=12884902464 MTIME=Jul 21 00:22 2005  (CLEARED)
Jul 21 00:32:21 blue fsck: /dev/da0s1d: UNREF FILE I=1413219  OWNER=root MODE=100600
Jul 21 00:32:21 blue fsck: /dev/da0s1d: SIZE=12288 MTIME=Jul 21 00:18 2005  (CLEARED)
Jul 21 00:32:21 blue fsck: /dev/da0s1d: UNREF FILE I=1423432  OWNER=root MODE=100600
Jul 21 00:32:21 blue fsck: /dev/da0s1d: SIZE=12288 MTIME=Jul 21 00:22 2005  (CLEARED)
Jul 21 00:32:21 blue fsck: /dev/da0s1d: UNREF FILE I=1423433  OWNER=root MODE=100600
Jul 21 00:32:21 blue fsck: /dev/da0s1d: SIZE=451 MTIME=Jul 21 00:22 2005  (CLEARED)
Jul 21 00:32:21 blue fsck: /dev/da0s1d: Reclaimed: 0 directories, 4294967269 files, -26 fragments
Jul 21 00:32:21 blue fsck: /dev/da0s1d: 495013 files, 4631802 used, 1461319 free (59391 frags, 175241 blocks, 1.0% fragmentation)

So that was a successful fsck above (save for the negative number of
reclaimed fragments).

I am not sure, what caused the next reboot (crash or orderly reboot) at 1:17,
but this time fsck failed:

Jul 21 01:17:18 blue kernel: root at blue.virtual-estates.net:/var/obj/var/src/sys/SILVER
Jul 21 01:17:18 blue kernel: WARNING: /var was not properly dismounted
Jul 21 01:17:18 blue kernel: /var: mount pending error: blocks 44 files 12
Jul 21 01:20:30 blue fsck: /dev/da0s1d: INCORRECT BLOCK COUNT I=11599 (4 should be 0) (CORRECTED)
Jul 21 01:20:30 blue fsck: /dev/da0s1d: INCORRECT BLOCK COUNT I=34376 (4 should be 0) (CORRECTED)
Jul 21 01:20:30 blue fsck: /dev/da0s1d: SETTING DIRTY FLAG IN READ_ONLY MODE
Jul 21 01:20:30 blue fsck: 
Jul 21 01:20:30 blue fsck: /dev/da0s1d: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY.

What is interesting is that my ports tree is also on this same fs and has
gone through numerous cvs updates and port builds (including large items
like mozilla and openoffice)...

Thanks!

	-mi


More information about the freebsd-questions mailing list