Search squid archive

Re: Lost of all squid cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Eduardo,

I replayed the script on my testing lab and it seems to fir 3.5 and 4.0.
The next script will receive a filename and will try to read it.
As long as the file is in a good shape it will print the URL of the original request.
The ruby script at: http://paste.ngtech.co.il/pul2zg62a
This script is written in ruby and uses the "bindata" gem(library) depends on your OS it will be pretty simple to install.
Once you will be able to run the above script on a single file we can move on to verify each and every one of the files in the cache_dir.

But first comment the "cache_dir" line from squid so your squid will not touch anything while you will be trying to verify the status of the files.

Eliezer

----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer@xxxxxxxxxxxx


-----Original Message-----
From: squid-users [mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Eduardo Carneiro
Sent: Tuesday, September 13, 2016 2:38 PM
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Lost of all squid cache

Jorgeley wrote
> what about cache_swap_low and cache_swap_high???
> 
> 2016-09-13 8:23 GMT-03:00 Eduardo Carneiro <

> eduardoocarneiro@

> >:
> 
>> Amos Jeffries wrote
>> > On 13/09/2016 5:12 a.m., Yuri Voinov wrote:
>> >>
>> >> Hm.
>> >>
>> >> As a recovery you can try to rename/remove swap.state from cache_dir's
>> >> and start squid again. AFAIK in this case it re-indexing all exists
>> disk
>> >> cache contents and build new one swap.state file. Also, does all
>> >> permissions to cache_dir and subdirectories recursively is correct and
>> >> intact?
>> >
>> > Also, check that the config file cache_dir L1 and L2 parameters are
>> > identical to those which the disk directories were initially created
>> > with. If those are different the file hashes will no longer map to the
>> > directory layout they are sitting in.
>> >
>> > Amos
>> > _______________________________________________
>> > squid-users mailing list
>>
>> > squid-users@.squid-cache
>>
>> > http://lists.squid-cache.org/listinfo/squid-users
>>
>> The L1 and L2 parameters are identical Amos. I did not change anything or
>> the configuration or in the directory.
>>
>> I tried the solution Yuri mentioned, but it still fails. It took a long
>> time
>> to rebuild the swap.state, but cache still only 1GB.
>>
>>
>>
>> --
>> View this message in context: http://squid-web-proxy-cache.
>> 1019090.n4.nabble.com/Lost-of-all-squid-cache-tp4679466p4679479.html
>> Sent from the Squid - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> squid-users mailing list
>> 

> squid-users@.squid-cache

>> http://lists.squid-cache.org/listinfo/squid-users
>>
> 
> 
> 
> --
> 
> _______________________________________________
> squid-users mailing list

> squid-users@.squid-cache

> http://lists.squid-cache.org/listinfo/squid-users

cache_swap_low 90
cache_swap_high 95

When the problem was detected, the cache was only 77% of used disk space.



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Lost-of-all-squid-cache-tp4679466p4679481.html
Sent from the Squid - Users mailing list archive at Nabble.com.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux