my cache_dir configuration is cache_dir ufs /usr/local/squid/var/cache 5120 16 256 ---------------------------------------- > From: henrik@xxxxxxxxxxxxxxxxxxx > To: m4madnimalik@xxxxxxxxxxx > CC: squid-users@xxxxxxxxxxxxxxx > Date: Mon, 15 Mar 2010 10:00:18 +0100 > Subject: Re: how to reduce space > > mån 2010-03-15 klockan 06:53 +0000 skrev Malik Madni: > >> most of the disk is used by the below directory. >> 4.7G /usr/local/squid/var/cache > > What is your cache_dir configuration? > >> is it safe to remove this directory??if yes then how?? > > Yes. > > 1. Stop Squid. > > 2. Remove cache by running > > rm -rf /usr/local/squid/var/cache/* > > 3. Rebuild the cache by running > > squid -z > > 4. Start Squid again. > > > Alternatively with much shorter downtime: > > > 1. Stop Squid > > 2. Move the old cache out of the way by running > > cd /usr/local/squid/var/cache" > mkdir junk > mv ?? swap.* junk > > 3. Rebuild the cache by running > > squid -z > > 4. Start Squid again. > > 5. Remove the old cache contents by running > > rm -rf junk > > Regards > Henrik > _________________________________________________________________ Link all your email accounts and social updates with Hotmail. Find out now. http://windowslive.ninemsn.com.au/oneinbox?ocid=T162MSN05A0710G