Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2009 21:37:24 +0100
From:      "Andy Wodfer" <wodfer@gmail.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Help! locate.code /tmp: filesystem full
Message-ID:  <23ed14b80901151237v180b28e9i7cfea923b69aeda1@mail.gmail.com>
In-Reply-To: <23ed14b80901141034l16ee0dedp9837e4f1162e253b@mail.gmail.com>
References:  <23ed14b80901141034l16ee0dedp9837e4f1162e253b@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, Jan 14, 2009 at 7:34 PM, Andy Wodfer <wodfer@gmail.com> wrote:

> Hi,
> I'm getting an error message every week and I can't seem to understand why
> nor manage to fix it. Here it is:
>
> #dmesg
> [snip]
> pid 54753 (locate.code), uid 65534 inumber 23557 on /tmp: filesystem full
>
> # df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/ar0s1a    989M     53M    857M     6%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/ar0s1g     48G    8.5G     36G    19%    /backup
> /dev/ar0s1d    989M     44K    910M     0%    /tmp
> /dev/ar0s1f    387G    168G    189G    47%    /usr
> /dev/ar0s1e    7.7G    398M    6.7G     5%    /var
>
> As you see there's 910MB free space in /tmp. Should be plenty to run the
> weekly locate script?
>
> # uname -a
> FreeBSD host.domain.com 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #5: Sat Jan
> 12 03:20:02 CET 2008     root@host.domain.com:/usr/obj/usr/src/sys/MYOWN
> i386
>
> Does anyone have a suggestion what I can do to fix this problem?
>
> Thanks a lot!
>
> Best,
> Andy
>

Here's the output of fsck (this was a new command to me):

# fsck
** /dev/ar0s1a (NO WRITE)
** 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
** Phase 5 - Check Cyl groups
1565 files, 27379 used, 479108 free (1204 frags, 59738 blocks, 0.2%
fragmentation)
** /dev/ar0s1g (NO WRITE)
** Last Mounted on /backup
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
873 files, 4467162 used, 20921355 free (891 frags, 2615058 blocks, 0.0%
fragmentation)
** /dev/ar0s1d (NO WRITE)
** Last Mounted on /tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
119 files, 67 used, 506420 free (28 frags, 63299 blocks, 0.0% fragmentation)
** /dev/ar0s1f (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
UNALLOCATED  I=7961594  OWNER=www MODE=100620
SIZE=69292 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_021151d1a377d62dbfaa89a4d1acc716.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961584  OWNER=www MODE=100620
SIZE=4784 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/data_search_results_c34cf621be1e424bde185cb6b71bf55f.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961588  OWNER=www MODE=100620
SIZE=317 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_de3e82ec3f05e04f8caecf9cecb70fe5.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961590  OWNER=www MODE=100620
SIZE=343 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_45386e120e999630d18124e757c15cd5.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961593  OWNER=www MODE=100620
SIZE=155 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/data_search_results_a770f781f984926682ad24b828d1568c.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961595  OWNER=www MODE=100620
SIZE=317 MTIME=Jan 15 21:07 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_f60c9f27d5a394bc6e9a70185d29ccf2.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961597  OWNER=www MODE=100620
SIZE=223 MTIME=Jan 15 21:07 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/data_search_results_99f04705815fd4978b0d47911d8b44ad.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961599  OWNER=www MODE=100620
SIZE=343 MTIME=Jan 15 21:08 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_46c003bc334cf0386554f73d8bb37688.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961600  OWNER=www MODE=100620
SIZE=343 MTIME=Jan 15 21:09 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_0c5aeb430c03186f1c1cd9c56cd3320c.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961601  OWNER=www MODE=100620
SIZE=317 MTIME=Jan 15 21:09 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_1bbabc64d41b06401b3f49122429cfb8.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961602  OWNER=www MODE=100620
SIZE=241 MTIME=Jan 15 21:09 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/data_search_results_708ac649d78e7e8f4912da48dbb2f0d3.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=10086553  OWNER=www MODE=100660
SIZE=5572 MTIME=Jan 15 21:09 2009
FILE=/local/www/[removed]/data/scripts/forum/images/avatars/upload/f3bd348b1ce8f9503d1d63b34905349d_3218.jpg

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no




** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=7961486  OWNER=www MODE=100620
SIZE=316 MTIME=Jan 15 21:10 2009
RECONNECT? no


CLEAR? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

ALLOCATED FRAGS 18256165-18256166 MARKED FREE
BLK(S) MISSING IN BIT MAPS
SALVAGE? no

ALLOCATED FRAG 19104327 MARKED FREE
ALLOCATED FRAG 19106559 MARKED FREE
ALLOCATED FRAG 20426488 MARKED FREE
ALLOCATED FRAGS 20720917-20720918 MARKED FREE
ALLOCATED FRAGS 21754629-21754631 MARKED FREE
SUMMARY INFORMATION BAD
SALVAGE? no

ALLOCATED FRAGS 89717688-89717692 MARKED FREE
ALLOCATED FRAGS 138735808-138735823 MARKED FREE
9749386 files, 87889472 used, 115227767 free (713519 frags, 14314281 blocks,
0.4% fragmentation)
** /dev/ar0s1e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=824346 (282720 should be 282688)
CORRECT? no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=212257  OWNER=mysql MODE=100600
SIZE=0 MTIME=Jan 14 19:41 2009
CLEAR? no

UNREF FILE I=212258  OWNER=mysql MODE=100600
SIZE=292 MTIME=Jan 15 00:06 2009
CLEAR? no

UNREF FILE I=212259  OWNER=mysql MODE=100600
SIZE=0 MTIME=Jan 14 19:41 2009
CLEAR? no

UNREF FILE I=212260  OWNER=mysql MODE=100600
SIZE=0 MTIME=Jan 14 19:41 2009
CLEAR? no

UNREF FILE I=824397  OWNER=root MODE=100644
SIZE=154893 MTIME=Sep 29 04:00 2008
CLEAR? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

2543 files, 203937 used, 3857118 free (526 frags, 482074 blocks, 0.0%
fragmentation)

Should I run fsck -y? Is it safe to do so? I have a few live sites running
on this machine so any downtime is not ideal to say the least. :-)

Look forward to hear from you again.

Thanks!
Andy



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?23ed14b80901151237v180b28e9i7cfea923b69aeda1>