RE: moving cache to another disk

From: Mike Batchelor <[email protected]>
Date: Fri, 4 Jun 1999 18:39:18 -0700

Do not be afraid of wiping out your cache dir contents. It's an infinitely
renewable resource. :) I umount and mkfs my cache dir automatically once a
week from cron, just to be sure I don't have anything too stale in it. It
fills up again within a half day at the beginning of the week, when users here
start surfing Monday morning.

And yes, squid -z will initialize every cache_dir specificied in squid.conf.
If it's already got files in it, they will not be wiped from disk, but squid
will no longer know about them, and will just re-use the existing files and
directory tree, overwriting them with some other content as it comes in. I
believe that's how it works, someone will correct me if I'm wrong. ;)

> -----Original Message-----
> From: Julian Richardson [mailto:JRichardson@softwright.co.uk]
> Sent: Friday, June 04, 1999 3:02 AM
> To: 'ZSquid'
> Subject: moving cache to another disk
>
>
> Hi,
>
> I've got a machine running squid at the moment with less-than ideal
> hardware spec (IDE disks, low memory etc.). Is it possible (& safe) to
> set up another better-spec machine and then simply copy the whole cache
> directory from the IDE-based machine to the new one and expect it to
> work? I only have the one cache directory, but does squid record inode
> numbers for files or anything similar??
>
> Also, if I add another cache directory at a later date, I assume I need
> to run squid -z, but will this then lose the cache that's built up in
> the existing cache directory??
>
> cheers,
>
> Jules
>
Received on Fri Jun 04 1999 - 19:20:13 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:46:44 MST