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

    Can i create another Virtual HDD to store Squid cache?

    Scheduled Pinned Locked Moved Virtualization
    6 Posts 3 Posters 3.0k Views
    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.
    • L Offline
      luke240778
      last edited by

      So, i have pfSense 2.0 running on VMWare ESXi 5.0 and i have done something wrong that i am trying to fix rather than recreate VM again.  I installed it allocating it 100gb disk space, but it somehow only created a 4gb partition.. not sure how but anyways what i want to know is this:  I am needing to be running Squid for a transparent caching proxy, and am wondering if it is possible to create another Virtual HDD that i can attach to pfSense and on that extra drive only store Squid cache?

      This will fix my problem and i think it will be good for future also as i can move that cache onto another device such as a NAS when i get more space.

      I want the Cache to be stored on the drive (logs also) and i want my pfSense just to store the Lightsquid logs so i can access them and see how much bandwidth i am saving through caching.

      1 Reply Last reply Reply Quote 0
      • D Offline
        dhatz
        last edited by

        If you'll be using Squid in production (i.e. not just for testing) for many users, then your Squid's cache_dir should be pointing to a local disk, not a remote system (NAS) or even virtualized (in a VM).

        Logs can be stored on a remote system (e.g. NAS)

        1 Reply Last reply Reply Quote 0
        • L Offline
          luke240778
          last edited by

          My whole pfSense is running in a VM, so are you saying that i shouldnt be using squid?  Yes, it is production.

          1 Reply Last reply Reply Quote 0
          • D Offline
            dhatz
            last edited by

            IMHO it's OK to run a router in a VM (especially if you do PCI-passthrough).

            I wouldn't run Squid inside pfsense itself for a large network, for reasons that have been discussed in the past, e.g. SoftUpdates are disabled by default etc (pfsense is a router distribution, not a server distribution)

            1 Reply Last reply Reply Quote 0
            • L Offline
              luke240778
              last edited by

              Ok, so if i was to have another physical server as a squid server, can that still work with pfSense Lightsquid for reporting?  Or would i need to run lightsquid on the same box as squid?

              I just like the lightsquid plugin on pfSense so was hoping that can be done.

              1 Reply Last reply Reply Quote 0
              • C Offline
                Cino
                last edited by

                @luke240778:

                Ok, so if i was to have another physical server as a squid server, can that still work with pfSense Lightsquid for reporting?  Or would i need to run lightsquid on the same box as squid?

                I just like the lightsquid plugin on pfSense so was hoping that can be done.

                You will have to run lightsquid on the same server as squid. If you wanted to run it on your pfsense vm, you would have to manually move the log file over. IMHO wouldn't be ideal and be more of PIA…

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.