fsck after recovery, journal seems to be wrong

Erich Dollansky erichsfreebsdlist at alogt.com
Thu Oct 9 05:23:33 UTC 2014


Hi,

my machine rebooted last night while doing a backup and formating a
device.

Ok, can happen, but the difference between an fsck useing the journal
and a full fsck without using the journal surprises me a bit.

While fsck with the journal showed no error, a full fsck came to this
result: 

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? [yn] y

SUMMARY INFORMATION BAD
SALVAGE? [yn] y

BLK(S) MISSING IN BIT MAPS
SALVAGE? [yn] y

uname -a says:

FreeBSD X220.alogt.com 10.1-RC1 FreeBSD 10.1-RC1 #8 r272672: Tue Oct  7
14:35:32 WITA 2014     erich at X220.alogt.com:/usr/obj/usr/src/sys/X220
amd64 

I did not realise any damage until just now when I found one file
missing. This made me doing the fsckes. 

At the end, I also found the missing file under a different name in the
proper directory. It could have been that the machine crashed while
kate was trying to save this file and left it with the extention
cppgh6857.new. It seems that nothing is missing from the file.

Erich

PS:

The full information:

[X220]/usr (root) > fsck -t
ufs /dev/label/H500GB2home.eli ** /dev/label/H500GB2home.eli

USE JOURNAL? [yn] y

** SU+J Recovering /dev/label/H500GB2home.eli
** Reading 33554432 byte journal from inode 27.






[X220]/usr (root) > fsck -t ufs /dev/label/H500GB2home.eli
** /dev/label/H500GB2home.eli

USE JOURNAL? [yn] y

** SU+J Recovering /dev/label/H500GB2home.eli
** Reading 33554432 byte journal from inode 27.



=======================

fsck -t ufs /dev/label/H500GB2home.eli
** /dev/label/H500GB2home.eli

USE JOURNAL? [yn] y

** SU+J Recovering /dev/label/H500GB2home.eli
** Reading 33554432 byte journal from inode 27.

RECOVER? [yn] y

** Building recovery table.
** Resolving unreferenced inode list.
** Processing journal entries.

***** FILE SYSTEM MARKED CLEAN *****
[X220]/usr (root) > fsck -t ufs /dev/label/H500GB2home.eli
** /dev/label/H500GB2home.eli

USE JOURNAL? [yn] n

** Skipping journal, falling through to full fsck

** Last Mounted on /usr/home
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? [yn] y

SUMMARY INFORMATION BAD
SALVAGE? [yn] y

BLK(S) MISSING IN BIT MAPS
SALVAGE? [yn] y

2799785 files, 87344020 used, 12632063 free (131743 frags, 1562540
blocks, 0.1% fragmentation)

***** FILE SYSTEM IS CLEAN *****

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



More information about the freebsd-stable mailing list