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

    /mnt/resource 100% full on Azure VM

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 1.1k 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.
    • E
      essdeeay
      last edited by

      Installed pfSense on Hyper-V (with WALinuxAgent) and it works perfectly. Uploaded VHD and made AzureVM from custom disk, and although it works perfectly, the "Disks" widget is showing /mnt/resource as over 100% full (3.9GB / 3.9GB).

      Using 'sysctl kern.disks' on Hyper-V shows only 1 disk (da0), but on Azure, there is somehow no 2 disks (da1, da0).

      Using 'mount' on Hyper-V doesn't show /mnt/resource at all, but on Azure, is shows /mnt/resource to be mounted on da1.

      Can anybody explain what's going on here?

      E 1 Reply Last reply Reply Quote 0
      • E
        essdeeay @essdeeay
        last edited by

        Partly answered my question - it's the standard temporary disk included with all Azure VMs, and I don't believe pfSense is using it - it just can't assimilate it (maybe the filesystem type).

        Is there any way of "ignoring" that device?

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          What level of ignoring are you looking for? As you say pfSense already ignores it, even though it does mount it for some reason. You can just unmount it.

          Steve

          E 1 Reply Last reply Reply Quote 0
          • E
            essdeeay @stephenw10
            last edited by

            @stephenw10 Thanks for your reply. I've done some more digging since I first posted, and it appears to be a result of the temporary disk assigned to the VM in Azure, and the WALinuxAgent config specifying a Resource disk size of 16GB.

            Editing /etc/waagent.conf to reduce that size down to less than the temporary disk does indeed get rid of the red bar, and then I can see a 0 byte file called 'swapfile' on /mnt/resource, but swap usage is still shown in the pfSense dashboard as x% of 409MiB, and when allocating all the RAM, although the % of swap used increases, the swapfile on /mnt/resource is still 0 bytes, so I suspect not being used.

            If pfSense utilizes 2 swap files, 1 in RAM and the other on disk, how can I test to make sure the disk swapfile is beiung used?

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              The Netgate Azure image does not have SWAP at all. And in general if pfSense is using SWAP it's probably misconfigured. Performance is dramatically reduced.
              If it does have swap though it's a separate disk slice that's formatted as swap. You would see it listed in geom part list

              Steve

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