[squid-users] COSS partition: permission denied

From: Shoebottom, Bryan <BShoebottom@dont-contact.us>
Date: Wed, 18 Oct 2006 12:45:23 -0400

Hello,

I am trying COSS partitions (not files) in squid version 2.6S4 and am can't get squid started. Squid has been compiled with:
Squid Cache: Version 2.6.STABLE4
configure options: '--enable-async-io' '--enable-storeio=ufs,coss,diskd' '--enable-linux-netfilter' '--enable-default-err-language=English' '--enable-snmp' '--with-large-files' '--enable-wccpv2' '--disable-poll' '--disable-select' '--enable-epoll' '--with-maxfd=16384' '--enable-removal-policies=heap' '--enable-coss-aio-ops'

I then created the partitions using fdisk making them 65536MB and I ran dd against them:
dd if=/dev/zero bs=1048576 count=65536 of /dev/cciss/c0d2p1
dd if=/dev/zero bs=1048576 count=65536 of /dev/cciss/c0d2p2

In squid.conf I have these related directives:
cache_dir coss /dev/cciss/c0d2p1 65536 block-size=8192 max-size=131072
cache_dir coss /dev/cciss/c0d2p2 65536 block-size=8192 max-size=524288 max-stripe-waste=32768
cache_dir diskd /cache1 227328 16 256 Q1=71 Q2=64
cache_swap_log /usr/local/squid/var/%s

When I start squid, this is printed to the screen:
2006/10/18 12:36:28| COSS: max disk fileno is 8388608
2006/10/18 12:36:28| COSS: number of stripes: 65536 of 1048576 bytes each
2006/10/18 12:36:28| COSS: number of memory-only stripes 10 of 1048576 bytes each
2006/10/18 12:36:28| COSS: max disk fileno is 8388608
2006/10/18 12:36:28| COSS: number of stripes: 65536 of 1048576 bytes each
2006/10/18 12:36:28| COSS: number of memory-only stripes 10 of 1048576 bytes each

And this is in the cache.log before it terminates:
2006/10/18 12:36:41| /dev/cciss/c0d2p1: (13) Permission denied
FATAL: storeCossDirInit: Failed to open a COSS file.
Squid Cache (Version 2.6.STABLE4): Terminated abnormally.

The permission denied is obvious, but even if I try an run squid as root with no cache_effective_user set, I get the same result. Should these partitions be mounted? If so can someone provide an /etc/fstab line example? I thought a COSS partition would be faster then a file, am I wrong? Should I just use a file?
I'm also wondering if this configuration of COSS is optimal. I also have another drive with diskd configured after these to handle the bigger files. Suggestions are welcome

Thanks,
 Bryan
Received on Wed Oct 18 2006 - 10:45:31 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST