unexpected soft update inconsistency - cannot fix
Julian H. Stacey
jhs at berklix.com
Tue Jan 10 13:28:57 UTC 2012
Hi FS experts,
Any thoughts on this repeat failure of fsck ? Detail below.
There's nothing on the partition that I can't recreate, no backup needed.
So a (one off *) opportunity to fix fsck or test an enhanced fsck ?
(* partition is too big to copy so I only get one go at this)
Should I
- try fsdb.
- compile current/ fsck/ & try that
- or does anyone have new uncommited fsck code to compile & try ? ...
- some extra fsck in ports maybe ? (None in SEE ALSO of man fsck.)
uname -a
FreeBSD laph.js.berklix.net 8.2-RELEASE FreeBSD 8.2-RELEASE \
#0: Thu Feb 17 02:41:51 UTC 2011 \
root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
disklabel /dev/ad4s4
8 partitions:
# size offset fstype [fsize bsize bps/cpg] ...
g: 1269373152 69752832 4.2BSD 0 0 0
fsck -y /dev/ad4s4g
** /dev/ad4s4g
** Last Mounted on /usr1
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
***** FILE SYSTEM MARKED CLEAN *****
fsck -y /dev/ad4s4g
** /dev/ad4s4g
** Last Mounted on /usr1
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
***** FILE SYSTEM IS CLEAN *****
fsck_ufs -b 160 /dev/ad4s4g
Alternate super block location: 160
** /dev/ad4s4g
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
SUMMARY BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? [yn] SALVAGE? [yn] SALVAGE? [yn] y
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
UPDATE STANDARD SUPERBLOCK? [yn] y
***** FILE SYSTEM IS CLEAN *****
***** FILE SYSTEM WAS MODIFIED *****
fsck /dev/ad4s4g
** /dev/ad4s4g
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
***** FILE SYSTEM IS CLEAN *****
fsck_ufs -b 160 /dev/ad4s4g
Alternate super block location: 160
** /dev/ad4s4g
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
UPDATE STANDARD SUPERBLOCK? [yn] y
***** FILE SYSTEM IS CLEAN *****
***** FILE SYSTEM WAS MODIFIED *****
fsck_ufs -b 160 /dev/ad4s4g
Alternate super block location: 160
** /dev/ad4s4g
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
UPDATE STANDARD SUPERBLOCK? [yn] y
***** FILE SYSTEM IS CLEAN *****
***** FILE SYSTEM WAS MODIFIED *****
fsck_ufs /dev/ad4s4g
** /dev/ad4s4g
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
***** FILE SYSTEM IS CLEAN *****
To avoid inadvertent access I have changed fstab to
ufs ro,noauto
It's an internal drive on a notebook PC
http://berklix.com/~jhs/hardware/hp/pavilion/dm3-1155ea
that has had some overheating problems, (that I'm pursuing on a
seperate thread), but its not crashed in days, & busy running other
stuff, so probably no problem running fsck.
df /dev/ad4s4g
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad4s4g 614712362 252733132 312802242 45%
tunefs -p /dev/ad4s4g
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) enabled
tunefs: gjournal: (-J) disabled
tunefs: maximum blocks per file in a cylinder group: (-e) 2048
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)
dumpfs -m /dev/ad4s4g
newfs -O 2 -U -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g \
16384 -h 64 -m 8 -o time -s 1269373152 /dev/ad4s4g
dumpfs -f /dev/ad4s4g | wc -l
343954 343954 6261059
( I could upload that to my web if reqested. )
PS I wrote a trivial Makefile to test exit values, to prove fsck is failing
to assert appropriate value of non zero:
xxx:
fsck_ufs -y /dev/ad4s4g
@echo yes1
fsck_ufs -y /dev/ad4s4g
@echo yes2
Result:
fsck_ufs -y /dev/ad4s4g
** /dev/ad4s4g
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
***** FILE SYSTEM IS CLEAN *****
yes1
fsck_ufs -y /dev/ad4s4g
** /dev/ad4s4g
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
MISSING '..' I=825575 OWNER=mailnull MODE=40755
SIZE=512 MTIME=Dec 29 22:12 2011
DIR=?
UNEXPECTED SOFT UPDATE INCONSISTENCY
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS Makefile,v
UNEXPECTED SOFT UPDATE INCONSISTENCY
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1360879 files, 126366566 used, 180989615 free (1437463 frags, 22444019 blocks, 0.5% fragmentation)
***** FILE SYSTEM IS CLEAN *****
yes2
Cheers,
Julian
--
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
Reply below not above, cumulative like a play script, & indent with "> ".
Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
More information about the freebsd-fs
mailing list