Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2000 06:53:24 -0800 (PST)
From:      Shashi Joshi <shashi_kant_joshi@yahoo.com>
To:        freebsd-questions@freebsd.org, lowell@world.std.com
Subject:   fsck on mounted FS; fsck errors periodically
Message-ID:  <20001106145324.28372.qmail@web6103.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi,
I scanned the archives for fsck and found none for my situation. The
closest that came was on 5 Apr 2000 by David Kanter to which Lowell
replied.

David has asked:
> I ask this because the instructions for make world say to go into
single
> user mode with "shutdown now" and then run fsck -p. I did this, and
all
> seemed OK, but fsck was run on mounted filesystems, such as /.
> 
> The first thing you learn about Linux is to not run fsck on a mounted
> partition, like /.

to which Lowell replied:
------
The short answer is that, no, you can't safely fsck a mounted
filesystem on FreeBSD either.  You're more likely to get away without
damaging it, but "more likely" isn't much of a guarantee.

Normally, if you really need to fsck on the run, you should shut down
to single-user mode first, and dismount the filesystem.  We do make an
exception for the root filesystem, which is often fsck'd while mounted
read-only.
------

Now here is my problem.
I have a Pentium 450 with 3 18GB SCSI Seagates. On an earlier server I
had 3 9GB SCSI seagates. running FreeBSD 3.4 and 3.2x
I used to get occasional (once a month or two month?) hangups and teh
reboot would cause fsck problem and in single user mode. So, I thought
maybe if I fsck it more often problem may go away.
So I put a cron job to fsck -p every night. Now, this of course is
happening on a mounted FS!!

I still get error sometime, and the server has to be manually fsck'ed
almost every 40-60 days.

My question: If I should not fsck on mounted FS, why do I get the fsck
errors in teh first place and how can avoid them? Is it a good idea to
run fsck -y via cron job once a night? or once a week?

Why do these error happen? Any particular type of activity cuases it?
Too many files? Too much I/O ? Too much file creation/deletion?
I don't have anything heavy duty on the server yet. top gives load to
be < 1.0 every time.

Here is the output of fsck -p from last night:
------------------------------------------------------------
Mon Nov  6 03:20:00 EST 2000
/dev/rda0s1a: 1124 files, 27206 used, 36297 free /dev/rda1s1h: 671 
files, 13896 used, 13311001 free (185 frags, 4514 blocks, 0.3% 
fragmentation)
(873 frags, 1663766 blocks, 0.0% fragmentation)
/dev/rda1s1f: 3420 files, 74484 used, 433659 free (185 frags, 4514 
blocks, 0.3% fragmentation)
(1563 frags, 54012 blocks, 0.3% fragmentation)
/dev/rda1s1e: 258 files, 4003 used, 250060 free (185 frags, 4514 
blocks, 0.3% fragmentation)
(68 frags, 31249 blocks, 0.0% fragmentation)
/dev/rda2s1f: 17638 files, 237106 used, 12833711 free (185 frags, 4514 
blocks, 0.3% fragmentation)
(6079 frags, 1603454 blocks, 0.0% fragmentation)
/dev/rda0s1f: 9899 files, 449590 used, 15606666 free (185 frags, 4514 
blocks, 0.3% fragmentation)
(3714 frags, 1950369 blocks, 0.0% fragmentation)
/dev/rda2s1e: 41414 files, 1456189 used, 2609073 free (185 frags, 4514 
blocks, 0.3% fragmentation)
(17689 frags, 323923 blocks, 0.4% fragmentation)
/dev/rda0s1e: 59341 files, 577139 used, 439164 free (185 frags, 4514 
blocks, 0.3% fragmentation)
(70108 frags, 46132 blocks, 6.9% fragmentation)
/dev/rda1s1g: FREE BLK COUNT(S) WRONG IN SUPERBLK/dev/rda1s1g: SUMMARY 
INFORMATION BAD/dev/rda1s1g: BLK(S) MISSING IN BIT MAPS/dev/rda1s1g: 
108321 files, 630064 used, 2418878 free (185 frags, 4514 blocks, 0.3% 
fragmentation)
 (SALVAGED)
 (SALVAGED)
 (SALVAGED)
(3478 frags, 301925 blocks, 0.1% fragmentation)
(185 frags, 4514 blocks, 0.3% fragmentation)
Mon Nov  6 03:21:00 EST 2000
------------------------------------------------------------

Thank you,

Shashi


__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/


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?20001106145324.28372.qmail>