RE: [squid-users] Cache dir problem with LVM

From: Frenette, Jean-S�bastien <[email protected]>
Date: Fri, 19 Oct 2007 09:58:36 -0400

I've just checked something. If I ran /etc/init.d/squid start, it failed. If I do squid in the command line, it start. WTH?

Jean-S�bastien Frenette
Technicien Informatique
Centre d'Assistance Technique
D�partement Informatique
Coll�ge Montmorency
(450) 975-6100�poste 6108
�
jsfrenette@cmontmorency.qc.ca

-----Message d'origine-----
De�: Amos Jeffries [mailto:squid3@treenet.co.nz]
Envoy�: 18 octobre 2007 21:53
��: Frenette@treenetnz.com; Frenette, Jean-S�bastien
Cc�: squid-users@squid-cache.org
Objet�: RE: [squid-users] Cache dir problem with LVM

> Hello,
>
> I already did chown and chmod like stated in my last email, problem isn't
> perm setting on folder since even if I log in squid, I can write in those
> folder.
>
> JSF
>

You say you had the same problem in swap until you ran squid -z for that.
But have not indicated whether you used squid -z to create the LVM
structure too?
It may be a matter of erasing the cache in LVM, mounting the clean folder
and running squid -z.

Also, note that each squid needs a unique cache, no sharing is possible yet.

Amos

> -----Message d'origine-----
> De : ajcorrea@gmail.com [mailto:ajcorrea@gmail.com] De la part de
> Alexandre Correa
> Envoy� : 17 octobre 2007 21:43
> � : squid-users@squid-cache.org
> Cc : Frenette, Jean-S�bastien
> Objet : Re: [squid-users] Cache dir problem with LVM
>
> try this,
> whit lvm mounted on /var/spool/squid
>
> chown squid:squid /var/spool/squid
> chown squid:squid -R /var/spool/squid/*
>
> chmod 744 /var/spool/squid
> chmod 744 -R /var/spool/squid/*
>
> maybe this can work :)
>
> regards,
>
> AlexandrE
>
> On 10/17/07, Frenette, Jean-S�bastien <JSFrenette@cmontmorency.qc.ca>
> wrote:
>> Hi everyone,
>>
>> I have a little problem. For my squid cache folder, I've set a Raid
>> (LVM) volume name � VolGroup00-LogVolSquidCache1 � that I mount to
>> /var/spool/squid/ (this is where my cache folder point to).
>>
>> Now, when I start squid, I get:
>> FATAL: cache_dir /var/spool/squid/1/: (13) Permission denied Squid Cache
>> (Version 2.6.STABLE13): Terminated abnormally.
>> CPU Usage: 0.012 seconds = 0.008 user + 0.004 sys Maximum Resident Size:
>> 0 KB Page faults with physical i/o: 0
>>
>> I've changed the own to squid.squid so everything in /var/spool/squid is
>> chown -R squid.squid
>>
>> Samething for the logs.
>>
>> I had the same problem with the swap drive until I ran squid -z, which
>> created all the folder.
>>
>> Anywhere I mount my LVM volume and then point my cache there, it failed.
>> If I point anywhere else, it work.
>>
>> Anybody have an answer?
>>
>> Thanks
>>
>> JSF
>>
>
> --
> Sds.
>
> Alexandre Jeronimo Correa
>
> Onda Internet - http://www.ondainternet.com.br
> OPinguim Hosting - http://www.opinguim.net
>
> Linux User ID #142329
>
> UNOTEL S/A - http://www.unotel.com.br
>
Received on Fri Oct 19 2007 - 07:57:43 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT