[squid-users] Re: cache_dir weirdness

From: Henrik Nordstrom <[email protected]>
Date: Thu, 14 Feb 2002 23:58:10 +0100

What I suspected.

Part of your cache has gone missing without the knowledge of Squid.

If you just wait it should heal itself given some time once Squid
throws out the objects which is no longer there. Or you can try to
make Squid rebuild the index, but beware that objects stored by
2.4.STABLE1-STABLE2 will be lost in such rebuild due to a bug in
those versions, and doing a rebuild of the index with this amount of
cache is a quite lengthy process. As it is only a small fraction that
is missing I'd recommend you to let it be.

A quick thing you can try is to force a dirty rescan of the index.
This should detect if there is files missing. Simply shut down Squid
and then remove the swap.state.last-clean file in the failing
directory (do not remove swap.state).

While you wait for it to heal, watch out for errors in cache.log. If
you find that Squid is repeatedly complaining about problems with the
same filenumber then there is reason to be concerned. Squid is
supposed to automatically correct errors once detected, but I have
seen reports that this do not always work. In such event one may need
to help Squid by issuing a PURGE request for the problematic
objects..

Regards
Henrik Nordstr�m
Squid Developer

On Thursday 14 February 2002 21.30, Scott Rothgaber wrote:
> On 14 Feb 2002, at 19:42, Henrik Nordstrom wrote:
> > What does cachemgr report?
>
> Thanks for the fast response!
>
> Store Directory #0 (ufs): /usr/local/squid/cache_1
> Current Size: 5529548 KB
> Percent Used: 90.00%
> Filesystem Space in use: 4617222/8426876 KB (55%)
>
> Store Directory #1 (ufs): /usr/local/squid/cache_2
> Current Size: 5529599 KB
> Percent Used: 90.00%
> Filesystem Space in use: 5607811/8426876 KB (67%)
>
> Store Directory #2 (ufs): /usr/local/squid/cache_3
> Current Size: 5529592 KB
> Percent Used: 90.00%
> Filesystem Space in use: 5614353/8426876 KB (67%)
>
> Store Directory #3 (ufs): /usr/local/squid/cache_4
> Current Size: 5529613 KB
> Filesystem Space in use: 5609362/8426876 KB (67%)
>
Received on Thu Feb 14 2002 - 15:59:08 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:22 MST