Jason Healy wrote:
Hello,
I'm trying to set up a large COSS cache_dir. I've used COSS in the
past, but I've never tried to max out on the size of the file (I'm not
even sure if this is a good idea...)
When I try to start, squid fails with the following log messages:
2009/12/05 12:16:00| parse_line: cache_dir coss /squid/small/coss01
131072 block-size=8192 max-size=1048576
maxfullbufs=256
2009/12/05 12:16:00| COSS block-size = 8192 bytes
2009/12/05 12:16:00| COSS largest file offset = 4194296 KB
2009/12/05 12:16:00| COSS cache_dir size = 134217728 KB
FATAL: COSS cache_dir size exceeds largest offset
I think I'm using the "block-size" param correctly to get to the
maximum size of 131072MB. However, Squid seems to disagree on the
maximum file offset.
I've compiled using --with-large-*, so I'm not sure what I'm
missing here:
You have indeed pushed the envelope right out that to the last single
byte of the index maximum boundary.
For some reason the safety check that is catching you uses > instead of >=
I'm not sure why. If you want to experiment you could change it manually
and rebuild. Around line 864 of src/fs/coss/store_dir_coss.c.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20
Current Beta Squid 3.1.0.15