RE: [Linux-sunucu] squid cache

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Ahmet Selman İnanç (selmaninanc@ihlas.net.tr)
Date: Mon 08 Aug 2005 - 14:33:30 EEST


Deleting an existing cache directory is not too difficult. Unfortunately,
you can't simply change squid.conf and then reconfigure. You can't stop
using a cache_dir while Squid is running. Also note that Squid requires at
least one cache_dir to run.

Edit your squid.conf file and comment out, or delete the cache_dir line for
the cache directory that you want to remove.
If you don't have any cache_dir lines in your squid.conf, then Squid was
using the default. You'll need to add a new cache_dir line because Squid
will continue to use the default otherwise. You can add a small, temporary
directory, fo example:
/usr/local/squid/cachetmp ....

If you add a new cache_dir you have to run squid -z to initialize that
directory.
Remeber that you can not delete a cache directory from a running Squid
process; you can not simply reconfigure squid. You must shutdown Squid:
        squid -k shutdown

Once Squid exits, you may immediately start it up again. Since you deleted
the old cache_dir from squid.conf, Squid won't try to access that directory.
If you use the RunCache script, Squid should start up again automatically.
Now Squid is no longer using the cache directory that you removed from the
config file. You can verify this by checking "Store Directory" information
with the cache manager. From the command line, type:
        squidclient mgr:storedir

Now that Squid is not using the cache directory, you can rm -rf it, format
the disk, build a new filesystem, or whatever.

The procedure is similar to recreate the directory.

Edit squid.conf and add a new cache_dir line.
Shutdown Squid (squid -k shutdown)
Initialize the new directory by running
        % squid -z

Start Squid again

-----Original Message-----
From: linux-sunucu-bounces@liste.linux.org.tr
[mailto:linux-sunucu-bounces@liste.linux.org.tr] On Behalf Of Osman Ayhan
Sent: Monday, August 08, 2005 1:17 PM
To: linux-sunucu@liste.linux.org.tr
Subject: [Linux-sunucu] squid cache

Selam.
  squid in bu güne kadar tuttugu cacleri nasil silebilirim.
  tesekkürler

_______________________________________________
Linux-sunucu mailing list
Linux-sunucu@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-sunucu


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.