Re: [squid-users] Use cache dir in different server

From: Kinkie <gkinkie_at_gmail.com>
Date: Sat, 2 Jan 2010 08:40:07 +0100

>> I am replacing a server I currently have with squid 3.0.20 to another box
>> with a bigger hard drive. Right now I have about 40GB of cache that would
>> like to move to the new server. My question is: can I just copy
>> /var/log/squid/cache ( cache_dir aufs /var/log/squid/cache 40000 64 255
>>  ) to a different hard drive?
>>
>> and
>>
>> if the new hard drive's config is: cache_dir aufs /var/log/squid/cache
>> 100000 64 255. This one 100GB for cache.
>>
>> Would I have problems putting the 40GB cache on to the 100GB?

No, as long as the parameters for the first and second dir levels don't change.

>> Thanks in advanced for your help.
>
> About to put your /var/log/squid/cache in to another drive, you can. Just
> make sure that you will conserve all permissions (use tar to store the
> files, and extract then on the other drive).
> About change cache_dir entry from 40GB to 100GB, I did something like this,
> and my cache wasn't loose. I THINK that you can do this.
>
> (Sorry by my poor english)

Also watch out for processor architectures. swap.state (for sure) is
not portable across different CPU architectures; I'm not sure about
the metadata stored in each cache entry.

   Kinkie

-- 
    /kinkie
Received on Sat Jan 02 2010 - 07:40:19 MST

This archive was generated by hypermail 2.2.0 : Sat Jan 02 2010 - 12:00:03 MST