Date: Tue, 11 Dec 2001 01:21:34 -0500 From: Kenneth Culver <culverk@yumyumyum.org> To: "Mark Hughes" <mh_lists@digitalspy.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: Softupdates & fsck Message-ID: <20011211062108.7298137B417@hub.freebsd.org> In-Reply-To: <019301c1820a$1b07e2b0$0200a8c0@mark2> References: <019301c1820a$1b07e2b0$0200a8c0@mark2>
next in thread | previous in thread | raw e-mail | index | archive | help
The purpose of Softupdates is not to avoid running fsck, it's so that the data on the drive is in a state that fsck can recover reliably while still providing a good performance increase. Ken On Tuesday 11 December 2001 01:07 am, you wrote: > Guys, > > We've got softupdates enabled for all the filesystems, aside from /, on a > web server. Recently a power outage at our ISP (due to a blow fuse or some > such event) caused the power to our server to be cut completely for a brief > period, obviously without warning or a graceful shutdown. > > Now, when we brought it back up, the filesystem was in a little bit of a > mess, and we had to go into single user mode and use fsck to fix a number > of errors (log below). I was somewhat suprised at this, as I was under the > impression that softupdates whole purpose, aside from speed increases, was > to never leave the file system in a state where it would need an fsck if > the power was cut or the system crashed.... > > Was I wrong in this assumption? Or is something strange going on... > > Any ideas as to what has happened gratefully received. > > mount details: > /dev/ad0s1a on / (ufs, local) > /dev/ad0s1h on /home (ufs, local, soft-updates) > /dev/ad0s1g on /usr (ufs, local, soft-updates) > /dev/ad0s1f on /var (ufs, local, soft-updates) > /dev/ad0s1e on /var/tmp (ufs, local, soft-updates) > procfs on /proc (procfs, local) > > fsck output from the crash recovery: > ** /dev/ad0s1a > ** Last Mounted on / > > ** Root file system > > ** Phase 1 - Check Blocks and Sizes > > ad0s1a: hard error reading fsbn 656735 of 328304-328415 (ad0s1 bn 656735; > cn 40 tn 224 sn 23) status=59 error=40 > > > > CANNOT READ: BLK 328304 > > CONTINUE? [yn] y > > > > THE FOLLOWING DISK SECTORS COULD NOT BE READ: > > ** Phase 2 - Check Pathnames > > ** Phase 3 - Check Connectivity > > ** Phase 4 - Check Reference Counts > > LINK COUNT FILE I=31257 OWNER=root MODE=100644 > > SIZE=199 MTIME=Dec 6 12:31 2001 COUNT 2 SHOULD BE 1 > > ADJUST? [yn] y > > > > UNREF FILE I=31260 OWNER=root MODE=100644 > > SIZE=0 MTIME=Dec 6 12:31 2001 > > CLEAR? [yn] y > > > > ** Phase 5 - Check Cyl groups > > BLK(S) MISSING IN BIT MAPS > > SALVAGE? [yn] y > > > > 1378 files, 39481 used, 456630 free (438 frags, 57024 blocks, 0.1% > fragmentation) > > > > ***** FILE SYSTEM MARKED CLEAN ***** > > > > ***** FILE SYSTEM WAS MODIFIED ***** > > ** /dev/ad0s1h > > ** Last Mounted on /home > > ** Phase 1 - Check Blocks and Sizes > > ** Phase 2 - Check Pathnames > > ** Phase 3 - Check Connectivity > > ** Phase 4 - Check Reference Counts > > UNREF FILE I=3166465 OWNER=nobody MODE=100644 > > SIZE=1295 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > NO lost+found DIRECTORY > > CREATE? [yn] y > > > > UNREF FILE I=3166466 OWNER=nobody MODE=100644 > > SIZE=1318 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166467 OWNER=nobody MODE=100644 > > SIZE=1345 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166468 OWNER=nobody MODE=100644 > > SIZE=1363 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166469 OWNER=nobody MODE=100644 > > SIZE=1315 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166470 OWNER=nobody MODE=100644 > > SIZE=1335 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166471 OWNER=nobody MODE=100644 > > SIZE=1329 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166472 OWNER=nobody MODE=100644 > > SIZE=1337 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166473 OWNER=nobody MODE=100644 > > SIZE=1376 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166474 OWNER=nobody MODE=100644 > > SIZE=1325 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166475 OWNER=nobody MODE=100644 > > SIZE=1380 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166476 OWNER=nobody MODE=100644 > > SIZE=1317 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166477 OWNER=nobody MODE=100644 > > SIZE=1323 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166478 OWNER=nobody MODE=100644 > > SIZE=1336 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166479 OWNER=nobody MODE=100644 > > SIZE=1337 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166480 OWNER=nobody MODE=100644 > > SIZE=1330 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166481 OWNER=nobody MODE=100644 > > SIZE=1296 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166482 OWNER=nobody MODE=100644 > > SIZE=1336 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166483 OWNER=nobody MODE=100644 > > SIZE=1298 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > UNREF FILE I=3166484 OWNER=nobody MODE=100644 > > SIZE=1354 MTIME=Dec 6 12:20 2001 > > RECONNECT? [yn] y > > > > > > ** Phase 5 - Check Cyl groups > > FREE BLK COUNT(S) WRONG IN SUPERBLK > > SALVAGE? [yn] y > > > > SUMMARY INFORMATION BAD > > SALVAGE? [yn] y > > > > 18647 files, 2266425 used, 11706928 free (7744 frags, 1462398 blocks, 0.1% > fragmentation) > > > > ***** FILE SYSTEM MARKED CLEAN ***** > > > > ***** FILE SYSTEM WAS MODIFIED ***** > > ** /dev/ad0s1g > > ** Last Mounted on /usr > > ** Phase 1 - Check Blocks and Sizes > > ** Phase 2 - Check Pathnames > > ** Phase 3 - Check Connectivity > > ** Phase 4 - Check Reference Counts > > ** Phase 5 - Check Cyl groups > > 133220 files, 1169269 used, 8755206 free (36302 frags, 1089863 blocks, 0.4% > fragmentation) > > > > ***** FILE SYSTEM MARKED CLEAN ***** > > ** /dev/ad0s1f > > ** Last Mounted on /var > > ** Phase 1 - Check Blocks and Sizes > > INCORRECT BLOCK COUNT I=634882 (52080 should be 51968) > > CORRECT? [yn] y > > > > ** 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 > > > > 446 files, 127050 used, 4834675 free (851 frags, 604228 blocks, 0.0% > fragmentation) > > > > ***** FILE SYSTEM MARKED CLEAN ***** > > > > ***** FILE SYSTEM WAS MODIFIED ***** > > ** /dev/ad0s1e > > ** Last Mounted on /var/tmp > > ** Phase 1 - Check Blocks and Sizes > > ** Phase 1 - Check Blocks and Sizes > > ** Phase 2 - Check Pathnames > > ** Phase 3 - Check Connectivity > > ** Phase 4 - Check Reference Counts > > ** Phase 5 - Check Cyl groups > > 2 files, 2 used, 3473100 free (20 frags, 434135 blocks, 0.0% fragmentation) > > ***** FILE SYSTEM MARKED CLEAN ***** > > Thanks, > Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011211062108.7298137B417>