Re: moving cache to another disk

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 04 Jun 1999 22:36:04 +0000

Julian Richardson wrote:

> 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??

Yes it is safe, provided that the L2 parameter is the same and that L1
is large enought on both.

> 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??

squid -z only creates the needed directories. It does not wipe the
cache.

Squid 2.X allows you to add or remove cache_dir entries as you like.

--
Henrik Nordstrom
Spare time Squid hacker
Received on Fri Jun 04 1999 - 16:45:38 MDT

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