Re: [squid-users] Why squid -z

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Wed, 27 Feb 2008 17:37:42 +0100

> On Tuesday 26 February 2008, Ric wrote:
> > On Feb 26, 2008, at 2:25 AM, Angela Williams wrote:
> > > On Tuesday 26 February 2008, Ric wrote:
> > >> I'm wondering why we require "squid -z" before starting up Squid for
> > >> the first time. Is there some reason why Squid shouldn't do this
> > >> automatically when necessary?
>
> > > Just a simple scenario?
> > > I use a separate cache file system for all my many squid boxes.
> > > Now for some reason one of the boxes get bounced and my squid cache
> > > filesystem
> > > fails to mount but squid comes up happily and say Oh look I don't
> > > have any
> > > cache directory structure so let me make one! Root filesystem is
> > > limited in
> > > space and then this dirty great big directory structure is created
> > > and then
> > > gets used by squid. In the twinkling of an eye the root filesystem
> > > is full!
> > >
> > > Ever tried to solve this kind of problem when the server is hundreds
> > > of
> > > kilometers away? Its phun!
> > >
> > > Give me squid -z!!
>
> > I'm wondering if this is better solved with a directive in squid.conf
> > to disallow (or allow if you prefer) the automatic creation of the
> > cache structure.

On 27.02.08 10:29, Angela Williams wrote:
> To me this does not make sense really.
> I setup a squid server, create the squid cache structure and start squid.
> I can count the numbers of time I have had to rebuild a fresh cache structure
> on the fingers of 1 hand. Replace a fault harddrive, increase or decrease the
> cache size and thats it!

and creating directory structure when disk failed is a really bad idea.
The filesystem is unmounted and it's better not to create that cache_dir at
all.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Support bacteria - they're the only culture some people have. 
Received on Wed Feb 27 2008 - 09:37:47 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:06 MST