Re: Squid wont start after update?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2007-12-19 at 15:58 -0500, Bob Goodwin wrote:
> Rick Stevens wrote:
> > On Wed, 2007-12-19 at 14:39 -0500, Bob Goodwin wrote:
> >>
> >> This is what I see:
> >>
> >>     ls -al /var/spool/squid
> >>     total 12
> >>     drwxr-x---  2 squid squid 4096 2007-12-19 14:01 .
> >>     drwxr-xr-x 14 root  root  4096 2007-11-17 08:36
> >>
> >> Is that ok?
> >>     
> >
> > Uh, it should be, but just to be safe, as root:
> >
> > 	chmod 755 /var/spool/squid		[Did that]
> >   
> > And can you include the line that starts with "cache_dir" from your
> > /etc/squid/squid.conf file?
> All I see with cache_dir are commented?
> 
> less  /etc/squid/squid.conf | grep cache_dir
> 
> #       Applies to any cache_dir lines listed below this.
> #  TAG: cache_dir
> #       cache_dir Type Directory-Name Fs-specific-data [options]
> #       You can specify multiple cache_dir lines to spread the
> #       cache_dir ufs Directory-Name Mbytes L1 L2 [options]
> #       cache_dir aufs Directory-Name Mbytes L1 L2 [options]
> #       cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
> #       block-size=n defines the "block size" for COSS cache_dir's.
> #       leads to a maximum cache_dir size of 512<<24, or 8 GB.  Note
> #       has written some objects to the cache_dir.
> #       2 full stripes for object hits. (ie a COSS cache_dir will reject
> #       read-only, no new objects should be stored to this cache_dir
> #       the cache_dir lines with the smallest max-size value first and the
> # cache_dir ufs /var/spool/squid 100 16 256   <---- UNCOMMENT THIS LINE
> #       'cache_dir' directory, but you may specify an alternate
> #       a representation of the cache_dir name where each / is replaced
> #       with '.'. This is needed to allow adding/removing cache_dir
> #       If have more than one 'cache_dir', and %s is not used in the name
> #       corresponds to the order of the 'cache_dir' lines in this
> #       configuration file.  If you change the order of the 'cache_dir'
> #       the correct 'cache_dir' entry (unless you manually rename
> #       better to keep these index files in each 'cache_dir' directory.

Oh, yikes!  Ok, uncomment the line I marked above and retry the
"squid -z" or "service squid restart".

Note that the line above will result in a 100MB cache, so make sure
the /var filesystem has at least 120MB free.  Check free space via
the "df -h /var" command.  On my system:

	[root@prophead ~]# df -h /var
	Filesystem            Size  Used Avail Use% Mounted on
	/dev/hda5             4.0G  653M  3.1G  18% /var

so I have 3.1G free.
----------------------------------------------------------------------
- Rick Stevens, Principal Engineer             rstevens@xxxxxxxxxxxx -
- CDN Systems, Internap, Inc.                http://www.internap.com -
-                                                                    -
-          "How does that damned three seashell thing work?"         -
-                           - Sylvester Stallone, "Demolition Man"   -
----------------------------------------------------------------------


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux