Re: [squid-users] work on partition used for cache dir

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 14 Mar 2011 11:16:53 +1300

 On Sun, 13 Mar 2011 16:33:49 +0300, Hasanen AL-Bana wrote:
> I had this issue before , doing squid -k reconfigure or reload
> doesn't
> release cache disk. You need to do squid stop/start.
>

 "-k reconfigure" should work. But recently there seems to be something
 preventing it from identifying some changes like this removal :(

 "-k restart" does the full stop/start cycle to pick up all changes when
 reconfigure is broken.

 Amos

> 2011/3/13 Víctor José Hernández Gómez <vjhergom_at_cic.upo.es>:
>> Hi all,
>>
>> I had planned some work on the ext3 partition used for cache data in
>> our
>> squid 3.1.11 instalation, which should be unomunted and mounted
>> after some
>> filesystem parameters modifications.
>>
>> So I thought it could work the following
>>
>>  1. comment cache_dir line on squid.conf
>>  2. add cache deny all
>>  3. (reconfigure) squid -k reconfigure
>>
>> (so users could navigate and ...)  If squid is not using cache data
>> at all,
>> then I could modify ext3 params on the partition...
>>
>>  4. work on partition
>>  5. umount partition
>>  6. mount
>>  7. undo changes on squid.conf and reconfigure
>>
>> This was not the case, as before I tried to unmount the partition
>>  squid
>> still was using swap.state file ... (lsof /partition warned me), so
>> I had to
>> undo the work on partition and undo changes on squid.conf...
>>
>> What asumption was wrong? Should squid free the filedescriptor
>> related to
>> swapstate file? Any other approach to get what we need?
>>
>> Thank you in advanced for your help,
>> --
>> Víctor J. Hernández Gómez
>>
>>
Received on Sun Mar 13 2011 - 22:16:57 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 14 2011 - 12:00:02 MDT