Исторически сложилось так, что кеш squid хранится в не стандартной папке. Выдержка из squid.conf:
cache_dir ufs /var/lib/vz/squid 20000 16 256
После обновления
apt-get upgrade
Squid обновился до версии
> squid -v
Squid Cache: Version 2.6.STABLE13
configure options: '--build=x86_64-alt-linux' '--host=x86_64-alt-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--without-included-gettext' '--bindir=/usr/sbin' '--libexecdir=/usr/lib64/squid' '--localstatedir=/var' '--sysconfdir=/etc/squid' '--datadir=/usr/share/squid' '--enable-poll' '--enable-epoll' '--disable-epoll' '--enable-snmp' '--enable-removal-policies=lru heap' '--enable-delay-pools' '--enable-icmp' '--enable-htcp' '--enable-async-io=16' '--enable-useragent-log' '--enable-wccp' '--enable-wccpv2' '--with-gnu-regex' '--enable-arp-acl' '--enable-ssl' '--enable-forw-via-db' '--enable-follow-x-forwarded-for' '--enable-forward-log' '--enable-referer-log' '--enable-ident-lookups' '--enable-carp' '--enable-ntlm-fail-open' '--enable-cache-digests' '--enable-x-accelerator-vary' '--enable-auth=basic ntlm digest' '--enable-basic-auth-helpers=LDAP MSNT NCSA PAM SASL SMB YP getpwnam multi-domain-NTLM' '--enable-ntlm-auth-helpers=SMB fakeauth no_check' '--enable-digest-auth-helpers=ldap password' '--enable-external-acl-helpers=ip_user ldap_group unix_group session wbinfo_group' '--enable-storeio=aufs coss diskd null ufs' '--enable-default-err-language=English' '--with-large-files' '--enable-large-cache-files' '--enable-icap-support' '--enable-multicast-miss' '--enable-underscores' '--enable-fd-config' '--with-maxfd=16384' 'CFLAGS=-pipe -Wall -O2' 'build_alias=x86_64-alt-linux' 'host_alias=x86_64-alt-linux'
Теперь он "не разрешает" хранить кеш в ранее указанной директории.
> squid -z
2011/11/02 09:45:52| Creating Swap Directories
FATAL: Failed to make swap directory /var/lib/vz/squid: (13) Permission denied
Squid Cache (Version 2.6.STABLE13): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Соответственно и демон сквида не запускается.
Если комментирую строчку cache_dir в squid.conf или изменяю директорию на, допустим, /home/squid, кеш создается и работает.
Пробовал:
1. уменьшать размер кеша до стандартных 100мб;
2. удалить каталог;
3. создать снова с правами 777, принадлежащий squid:squid;
4. указать другое имя каталога в /var/lib/vz/;
5. вставить в squid.conf
cache_effective_user squid
cache_effective_group squid
Но ничего не помогает.
Места в /var/lib/vz достаточно.
Подскажите, куда копать...