Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    How to move squid cache outside of /var

    General pfSense Questions
    1
    2
    691
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      adoucette last edited by

      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)
      Thanks,
      Ari

      1 Reply Last reply Reply Quote 0
      • A
        adoucette last edited by

        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)
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Products

        • Platform Overview
        • TNSR
        • pfSense
        • Appliances

        Services

        • Training
        • Professional Services

        Support

        • Subscription Plans
        • Contact Support
        • Product Lifecycle
        • Documentation

        News

        • Media Coverage
        • Press
        • Events

        Resources

        • Blog
        • FAQ
        • Find a Partner
        • Resource Library
        • Security Information

        Company

        • About Us
        • Careers
        • Partners
        • Contact Us
        • Legal
        Our Mission

        We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

        Subscribe to our Newsletter

        Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

        © 2021 Rubicon Communications, LLC | Privacy Policy