From owner-freebsd-questions Tue Apr 15 07:30:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA12591 for questions-outgoing; Tue, 15 Apr 1997 07:30:56 -0700 (PDT) Received: from tok.qiv.com ([204.214.141.211]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA12583 for ; Tue, 15 Apr 1997 07:30:48 -0700 (PDT) Received: (from uucp@localhost) by tok.qiv.com (8.8.5/8.8.5) with UUCP id JAA01511; Tue, 15 Apr 1997 09:30:35 -0500 (CDT) Received: from localhost (jdn@localhost) by acp.qiv.com (8.8.5/8.8.5) with SMTP id IAA00326; Tue, 15 Apr 1997 08:47:43 -0500 (CDT) X-Authentication-Warning: acp.qiv.com: jdn owned process doing -bs Date: Tue, 15 Apr 1997 08:47:43 -0500 (CDT) From: "Jay D. Nelson" To: "David A. Richards" cc: freebsd-questions@freebsd.org, ekraj@illumen.net Subject: Re: Help! - FreeBSD file system corruption In-Reply-To: <335313B9.22D1@illumen.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Interesting. I installed 2.2.1-RELEASE over 2.2.1-GAMMA (circa Feb.) and had a similar problem. I copied the new GENERIC, reedited and built a new kernel. So far so good. The machine was a Dell box, XPS P133c, IDE, etc. I only installed kernel source over a full source tree from GAMMA. Seemed reasonable at the time, but stupid in hind sight. I deleted the old source. BTW -- this showed how bad IDE really is. Watching iostat with 'rm -r' running showed it blocked most of the time. -- Jay On Mon, 14 Apr 1997, David A. Richards wrote: ->Hi there, ->I have had filesystem corruption on two separate ->FreeBSD boxes.. for no other reason than they're ->running. Load is very small at this point, for ->both servers. -> ->Installation went smooth on both boxes. ->Both boxes use one IDE drive each, so SCSI -> ->1st server: ->=========== ->FreeBSD Current 2.2.1 ->Generic kernel ->Intel P-100 ->Fugu PCI Motherboard, integrated controller (new out of the box) ->Samsung 2GB IDE Drive (again, brand new) ->running Apache, Sendmail, DNS ->with a very light load, up and running for about 2 weeks -> ->I Did a fsck yesterday due to paranoia from what happened earlier ->to the second machine and it was clean then -> ->Today I did a fsck and it is showning minor corruption: ->(only thing I did last night was build a 5 mb tar archive of ->our webpages) -> ->heres the output of fsck: ->========================= -> ->bash# fsck ->** /dev/rwd0a ->** Last Mounted on / ->** Root file system ->** Phase 1 - Check Blocks and Sizes ->** Phase 2 - Check Pathnames ->** Phase 3 - Check Connectivity ->** Phase 4 - Check Reference Counts ->UNREF FILE I=215100 OWNER=root MODE=100644 ->SIZE=31737 MTIME=Apr 15 07:46 1997 ->CLEAR? [yn] n -> ->UNREF FILE I=215103 OWNER=root MODE=100644 ->SIZE=541 MTIME=Apr 13 03:34 1997 ->CLEAR? [yn] n -> ->UNREF FILE I=215105 OWNER=root MODE=100644 ->SIZE=704 MTIME=Apr 13 17:13 1997 ->CLEAR? [yn] n -> ->UNREF FILE I=215107 OWNER=root MODE=100644 ->SIZE=18890 MTIME=Apr 15 11:54 1997 ->CLEAR? [yn] n -> ->UNREF FILE I=215109 OWNER=root MODE=100644 ->SIZE=3701 MTIME=Apr 13 01:57 1997 ->CLEAR? [yn] n -> ->UNREF FILE I=215150 OWNER=root MODE=100644 ->SIZE=2902 MTIME=Apr 11 22:57 1997 ->CLEAR? [yn] n -> ->** Phase 5 - Check Cyl groups ->BLK(S) MISSING IN BIT MAPS ->SALVAGE? [yn] n -> ->SUMMARY INFORMATION BAD ->SALVAGE? [yn] n -> ->CLEAN FLAG NOT SET IN SUPERBLOCK ->FIX? [yn] n -> ->10128 files, 120196 used, 1819115 free (1827 frags, 227161 blocks, 0.1% ->fragmentation) ->bash# -> -> ->======================================================== -> ->2nd server: ->=========== ->FreeBSD Current 2.2 ->Generic kernel ->Intel DX4-100 ->FIC EISA Motherboard ->Maxtor 350 MB IDE Drive ->running DNS ->no load to speak of -> ->As anyone can see, this is pretty basic hardware.. nothing fancy. ->This one got seriously corrupted.. I synced and rebooted it after ->about 5 days of operation (do-nothing operation, except for cron jobs ->and the like, and minor edits with vi) and it wouldn't come ->up fully (config files like "sysconfig" in /etc were almost all ->corrupt) .. managed to fsck and countless errors came up, ->so I trashed the disk, and reinstalled on a 1.2 GB Fujitsu drive. ->Before installing on the original Maxtor drive I checked it for ->any bad blocks and it was clean so that shouldnt be an issue. ->The new drive seems to be okay so far but it's only been up 2 days. -> ->Any ideas on what's causing this apparently random file corruption ->would be mucho appreciated. -> ->Thanks, ->Dave -> ->-- ->****************************************************** ->* David A Richards Systems Integrator * ->* The illumen Group, Inc. www.illumen.com * ->* Email dar@illumen.com * ->* Personal Web www.illumen.com/~dar * ->****************************************************** ->