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"   -
----------------------------------------------------------------------

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux