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

Changes to RAM Disk Size not affecting actual filesystem size

Scheduled Pinned Locked Moved webGUI
13 Posts 5 Posters 612 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.
  • J
    juanzelli @SteveITS
    last edited by Dec 13, 2024, 9:02 PM

    @SteveITS Yes, I reboot each time I enable/disable or change values as I trial-and-error things attempting to get it to work. On this same unit (4100) over the past year, I've used the tmpfs stuff several times. I've been on and off with it trying things out. For example, I know I modified things when I was using pfBlockerNG and it needed a lot more room. I know I reduced those modifications when I removed pfBlockerNG.

    This weekend, I guess I'll factory reset, restore the config.xml, and see if that helps.

    Netgate 4100 and HPE InstantOn network at home

    J 1 Reply Last reply Dec 17, 2024, 9:17 PM Reply Quote 0
    • P
      provels
      last edited by Dec 13, 2024, 10:38 PM

      FWIW, I don't see that behavior on mine with 24.11. And the only reason they're so big is I have 16GB and it's just me: Sysadmin, User, Night Cleanup...

      d11ff6b4-5428-45f4-a343-f49959ad18c6-image.png

      Peder

      MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
      BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

      1 Reply Last reply Reply Quote 1
      • J
        juanzelli @juanzelli
        last edited by Dec 17, 2024, 9:17 PM

        This weekend, I guess I'll factory reset, restore the config.xml, and see if that helps.

        Nope. Factory reset and restore of the configuration didn't help.

        Netgate 4100 and HPE InstantOn network at home

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Dec 18, 2024, 4:19 PM

          I can't seem to replicate any issue here. I set a size, click JS alert to go to the reboot page, then confirm the reboot there and when it starts back up it's using the size from the configuration.

          If you run the following commands from a shell prompt, what output do you get?

          $ /usr/local/sbin/read_xml_tag.sh string system/use_mfs_tmp_size
          $ /usr/local/sbin/read_xml_tag.sh string system/use_mfs_var_size
          

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          J 2 Replies Last reply Dec 18, 2024, 4:23 PM Reply Quote 0
          • J
            juanzelli @jimp
            last edited by Dec 18, 2024, 4:23 PM

            @jimp Thank you for investigating. However, I cannot provide the results. I've replaced the unit with another system for other testing. I'll circle back around to provide the results you requested eventually.

            Netgate 4100 and HPE InstantOn network at home

            1 Reply Last reply Reply Quote 0
            • J
              juanzelli @jimp
              last edited by juanzelli Jan 9, 2025, 7:42 PM Jan 9, 2025, 7:39 PM

              @jimp said in Changes to RAM Disk Size not affecting actual filesystem size:

              If you run the following commands from a shell prompt, what output do you get?

              After reinstalling from USB, uploading my entire config.xml, and rebooting...

              [24.11-RELEASE][root@thewall.home.arpa]/root: /usr/local/sbin/read_xml_tag.sh string system/use_mfs_tmp_size
              100
              [24.11-RELEASE][root@thewall.home.arpa]/root: /usr/local/sbin/read_xml_tag.sh string system/use_mfs_var_size
              200
              [24.11-RELEASE][root@thewall.home.arpa]/root: df -h /tmp /var
              Filesystem    Size    Used   Avail Capacity  Mounted on
              tmpfs          40M    280K     40M     1%    /tmp
              tmpfs          60M     19M     41M    32%    /var
              [24.11-RELEASE][root@thewall.home.arpa]/root: uptime
              11:36AM  up 3 mins, 3 users, load averages: 0.87, 0.58, 0.25
              

              This config.xml has seen a few major versions and dev/beta versions. I'm wondering if there is some orphan artifact in the config.xml causing issues. Looking at the file in VisualStudio shows no formatting or other issues.

              Netgate 4100 and HPE InstantOn network at home

              S 1 Reply Last reply Jan 9, 2025, 8:54 PM Reply Quote 0
              • S
                SteveITS Galactic Empire @juanzelli
                last edited by Jan 9, 2025, 8:54 PM

                @juanzelli It's OK on my 2100 which I updated:

                tmpfs 512M 796K 511M 0% /tmp
                tmpfs 1.0G 48M 976M 5% /var

                If you aren't actively using this unit anymore, you could potentially reset it to defaults (Diagnostics menu) and try a RAM disk, then restore either the full config file or parts of it afterwards.

                Wondering out loud, could there be any sort of error checking that fails while creating the RAM disk and uses the default size? (I would think it would just fail to create)

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

                J 1 Reply Last reply Jan 9, 2025, 11:05 PM Reply Quote 0
                • J
                  juanzelli @SteveITS
                  last edited by Jan 9, 2025, 11:05 PM

                  @SteveITS Ok. This is the sequence of events I just performed...

                  1 - Factory Defaults from Diagnostics and reboot
                  2 - Set my RAM disk settings and reboot
                  3 - RAM disk sizes still ignoring my settings
                  4 - Factory Reset via hardware button
                  5 - Set my RAM disk settings and reboot
                  6 - RAM disk sizes still ignoring my settings
                  7 - Reinstall from USB and chose 24.11
                  8 - Set my RAM disk settings and reboot
                  9 - RAM disk sizes still ignoring my settings
                  10 - Reinstall from USB and chose 24.03 (why not try?)
                  11 - Set my RAM disk settings and reboot
                  12 - SUCCESS! My RAM disk sizes stuck
                  13 - Upgraded to 24.11 via GUI and reboot
                  14 - My RAM disk sizes remained
                  15 - Restored my config.xml and reboot
                  16 - My RAM disk sizes continue to remain as expected

                  Netgate 4100 and HPE InstantOn network at home

                  S 1 Reply Last reply Jan 9, 2025, 11:14 PM Reply Quote 0
                  • S
                    SteveITS Galactic Empire @juanzelli
                    last edited by Jan 9, 2025, 11:14 PM

                    ٩(͡๏̯͡๏)۶

                    (╯°□°)╯ ︵ ┻━┻

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote 👍 helpful posts!

                    1 Reply Last reply Reply Quote 1
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Jan 10, 2025, 4:26 PM

                      If you change the size after upgrading do they now change after rebooting?

                      1 Reply Last reply Reply Quote 0
                      • S SteveITS referenced this topic on Mar 23, 2025, 9:47 AM
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        [[user:consent.lead]]
                        [[user:consent.not_received]]