4.11-RC3: SCSI+UFS+softupdates corruption (write cache DISABLED!)

Matthias Andree
Wed, 19 Jan 2005 07:08:16 -0000

Matthias Andree <matthias.andree@gmx.de> writes:

> so apparently, three (checkouts.cvs:., . and ..) or four files (perhaps
> the # file) have disappeared. I'm not sure if fsck will revive them, I
> want to avoid destroying data useful for debugging.

OK, I dd'd the whole partition to an SLR tape and ran fsck for
interactive repairs.

| ** /dev/da0s1g
| ** Last Mounted on /usr
| ** Phase 1 - Check Blocks and Sizes
| ** Phase 2 - Check Pathnames
| DIRECTORY CORRUPTED  I=175105  OWNER=root MODE=40755
| SIZE=512 MTIME=Jan 18 15:14 2005
| DIR=?
|
| UNEXPECTED SOFT UPDATE INCONSISTENCY
|
| SALVAGE? [yn] y
|
| MISSING '.'  I=175105  OWNER=root MODE=40755
| SIZE=512 MTIME=Jan 18 15:14 2005
| DIR=?
|
| UNEXPECTED SOFT UPDATE INCONSISTENCY
|
| FIX? [yn] y
|
| MISSING '..'  I=175105  OWNER=root MODE=40755
| SIZE=512 MTIME=Jan 18 15:14 2005
| DIR=/sup/ports-all
|
| UNEXPECTED SOFT UPDATE INCONSISTENCY
|
| FIX? [yn] y
|
| ** Phase 3 - Check Connectivity
| ** Phase 4 - Check Reference Counts
| UNREF FILE  I=176801  OWNER=root MODE=100644
| SIZE=14098161 MTIME=Jan 18 15:14 2005
| RECONNECT? [yn] y
|
| NO lost+found DIRECTORY
| CREATE? [yn] y
|
| UNREF FILE  I=179558  OWNER=root MODE=100644
| SIZE=8327913 MTIME=Mar 20 03:11 2004
| RECONNECT? [yn] y
|
| ** 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
|
| 243085 files, 1465923 used, 274252 free (102444 frags, 21476 blocks, 5.9%
fragmentation)
|
| ***** FILE SYSTEM MARKED CLEAN *****
|
| ***** FILE SYSTEM WAS MODIFIED *****

Turns out the missing two files ended up in lost+found.

Is this a failure mode that is allowed to happen for softupdates?

--
Matthias Andree