Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi! i managed to install and can successfully start squid when it's using the default cache_dir (/var/spool/squid). but when i changed the cache_dir to a separate partition the squid says it is worked but its not
the /cache/ directory is already owned by the squid user and has 710 permission, just like the permission of /var/cache/squid.
what else could be the problem?
thanks
cache.log says
2012/08/15 08:43:47| Rebuilding storage in /c1 (DIRTY)
2012/08/15 08:44:36| Rebuilding storage in /c2 (DIRTY)
2012/08/15 08:45:24| Rebuilding storage in /c3 (DIRTY)
2012/08/15 08:46:12| Rebuilding storage in /c4 (DIRTY)
2012/08/15 08:47:00| Rebuilding storage in /c5 (DIRTY
i did and it create the swap directory
but squid is not working
the default is
cache_dir aufs /cache/squid 100 16 256
(16 256)
but i read that 16 must be changed depending on ur hard disk size and i have 2 TB
it is here http://blog.neu.edu.cn/elm/archives/84
and some where else
so if i change 16 to 2000 it will not work but if i put it 16 it will work
whats the problem why i cant change and why it said dirty !!
the default is
cache_dir aufs /cache/squid 100 16 256
(16 256)
but i read that 16 must be changed depending on ur hard disk size and i have 2 TB
it is here http://blog.neu.edu.cn/elm/archives/84
and some where else
so if i change 16 to 2000 it will not work but if i put it 16 it will work
whats the problem why i cant change and why it said dirty !!
16 is the 1st level directories in cache. Better leave it as is. If you want to assign more space for squid cache, increase 100 (that is 100MB) and leave the other values at their defaults. Also better change aufs to ufs, as it's the default storage format.
Then delete everything under the /cache directory and re-run "squid -z" to re-create the cache directory structure
yes you are right i told you when i left it 16 the squid work again
but still have the problem while iam restart it give me
2012/08/15 08:43:47| Rebuilding storage in /c1 (DIRTY)
2012/08/15 08:44:36| Rebuilding storage in /c2 (DIRTY)
2012/08/15 08:45:24| Rebuilding storage in /c3 (DIRTY)
2012/08/15 08:46:12| Rebuilding storage in /c4 (DIRTY)
other servers it give (CLEAN) why here is dirty !!
---------- Post added 08-16-12 at 04:56 PM ----------
thank you very much
Better start from scratch. Stop squid, delete everything under /cache, recreate the cache (using the -z option) and then start squid normally.
If the problem persists, it could be something else (like a disk problem).
Quote:
but on another server i can change 16 and it work perfect and it didnt give DIRTY !!
If you start from scratch normally it works. You can change 16, but not to 2000 like in your 1st post. Better take a look here about cache_dir options.
Last edited by bathory; 08-17-2012 at 12:22 AM.
Reason: additional reply
thank you i changed the hdd and it work it give CLEAN now
whats about scratch ?? what it is and what it do ?
i didnt use this in old servers i made !!
and there is any formula to know how much 16 will be every time i increase my hdd size ??
thanks very much
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.