[squid-users] Not work HELP change cache dir
Amos Jeffries
squid3 at treenet.co.nz
Tue Dec 15 21:40:38 UTC 2015
On 16/12/2015 9:35 a.m., juancho Alfonso wrote:
> s.o. centos 7squid version 3.3
> in the squid.conf file
> cache_dir aufs /var/spool/squid 20480 16 256
> cache_effective_user squid
> cache_effective_group squidthis way works
> cache_dir aufs /var/spool/squid2 20480 16 256 cache_effective_user squid
> cache_effective_group squidorcache_dir aufs PATHEXTERNALDRIVE/squid2 20480 16 256 cache_effective_user squidcache_effective_group squidthis way doesnt
> i need change dir to a external drive with more capacity2 TB
> the local disk is small 70 GB
> i have tried
> chmod 777 -R /var/spool/squid2chown -R squid.squid /var/spool/squid2orchown -R root.root /var/spool/squid2orchown -R squid.squid /var/spool/squid2ororchown -R proxy.conexion /var/spool/squid2
>
> nothing works
>
If the 777 permission does not work (like you said it dont) then it is
*definitely* something right down in the kernel or driver levels, not a
Squid or chown/chmod problem.
You seem to be still focussing on chown/chmod alone (filesystem level)
and not taking SELinux permissions (kernel level) into account - despite
having been told to check them several times already.
Do this:
* erase cache_effective_group from your squid.conf
* comment out the cache_dir /var/spool/squid2 lines in your squid.conf
* run the command line and fix any ERROR or FATAL that come up:
squid -k parse
* run command line (dont worry if it fails or says already a member):
adduser squid squid
* run the command lines:
chmod -R 777 /var/spool/squid2
rm -rf /var/spool/squid2/*
chmod 755 /var/spool/squid2
chown squid:squid /var/spool/squid2
test -x /sbin/restorecon && restorecon -R /var/spool/squid2
* un-comment the cache_dir /var/spool/squid2 line in squid.conf
* run these command lines:
squid -z
test -x /sbin/restorecon && restorecon -R /var/spool/squid2
squid -k check
Amos
More information about the squid-users
mailing list