How to move squid cache outside of /var

  • How can I move the Squid cache outside of /var?
    I ask because I'm using the RAM Disk option for var and tmp, so these are not large enough for the squid cache, which keeps filling up and giving me disk full errors…
    I've tried setting a new path in the Services --> Proxy Server --> Cache Mgmt --> Hard disk cache location as "/squid/cache" and then going to Diagnostics --> Command Prompt and running "squid -z" and then "df -hi" shows no changes.
    What is the right way to do this?
    Or should I just increase the size of my Ram disk? (machine only reboots itself on a schedule once weekly)

  • Does anyone have a suggestion of how best to move the Squid cache outside of /var??
    Since I'm using a SSD for the pfSense installation, I use the RAM disk option for tmp and var, but these are too small and volatile for the Squid cache. So Squid will fill up, and not work in this scenario.

    Here's my output from df -hi

    Filesystem                     Size    Used   Avail Capacity iused ifree %iused  Mounted on
    /dev/ufsid/539c74fd15a8a779     46G    943M     41G     2%     34k  6.3M    1%   /
    devfs                          1.0k    1.0k      0B   100%       0     0  100%   /dev
    /dev/md0                        77M    656k     70M     1%     141   10k    1%   /tmp
    /dev/md1                       116M     29M     77M    27%     191   15k    1%   /var
    devfs                          1.0k    1.0k      0B   100%       0     0  100%   /var/dhcpd/dev

    and gpart show has

    =>       63  117231345  ad1  MBR  (55G)
             63  117231345    1  freebsd  [active]  (55G)
    =>        0  117231345  ad1s1  BSD  (55G)
              0         16         - free -  (8.0k)
             16  100454113      1  freebsd-ufs  (47G)
      100454129   16777216      2  freebsd-swap  (8.0G)

Log in to reply