Bug 674333

Summary: squid -z does not create swap directories.
Product: [Fedora] Fedora Reporter: Eddie Lania <eddie>
Component: squidAssignee: Jiri Skala <jskala>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 13CC: aglotov, henrik, jonathansteffan, jskala
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-01 15:52:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eddie Lania 2011-02-01 14:23:16 UTC
Description of problem: 
I cleared the /var/spool/squid directory and used "squid -z" to recreate the squid cache directories but it doesnt work.

Permissions for /var/spool/squid are okay.


Version-Release number of selected component (if applicable):
squid-3.1.10-1.fc13.i686


How reproducible: Always


Steps to Reproduce:
1. stop service squid
2. remove all contents in /var/spool/squid
3. do a "squid -z"
  
Actual results: /var/spool/squid stays empty


Expected results: /var/spool/squid to be filled with swap directories


Additional info:

Comment 1 Jiri Skala 2011-03-01 13:26:26 UTC
Hi,
it depends on setting option 'cache_dir' that is commented by default in squid-3.1. If you have no cache_dir defined in squid.conf there will not be created swap dirs:

http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.7-RELEASENOTES.html#ss3.2

"...
cache_dir
Default changed to 256MB in-memory cache. see cache_mem and maximum_object_size_in_memory for size parameters.
'null' storage type dropped. In-memory cache is always present. Remove all cache_dir options to prevent on-disk caching.
..."

What about your configuration?

Comment 2 Eddie Lania 2011-03-01 15:52:35 UTC
Thank you.

That, indeed, was my problem.

It's solved now by uncommenting the line.

Best regards,

Eddie.