On Mon, 20 May 2002 s-clarob@st-aidans.cumbria.sch.uk wrote:
Cheers for the reply. What we want to achieve is the Squid program running from the first hard disk (sda) but using hard disk 2 as it's cache store - utilising the full 18Gbytes of cache storage space that is available. The disk need's to be partitioned and formated first. Make a directory for the cache, you can put this anywhere really but off / is reasonable enough mkdir cache mount the disk on cache mount /dev/sdb1 /cache (add that to your /etc/fstab to get it done ate boot time. chown the directory to that of the squid process chgrp the directory to taht of the squid process chmod it to 700 ( or just put it at 777 if you are not to botherd about security of the cache files ) edit squid.conf un-comment the cache_dir ..... line cache_dir ufs /cache 18000 16 256 do squid -k shutdown do squid -Z do squid that should be it.
Slightly more elegant would be to mount the "cache" partition at the point that Squid expects to find its cache anyway (which is /var/spool/squid in my distro: YMMV). This has no effect on the operation; it's just a bit neater. Michael