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

    New Feature: /tmp and /var RAM disks on Full installs; /tmp and /var resizing

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    38 Posts 12 Posters 20.3k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      OK that isn't from this code, it's from later in the boot process.

      With this option enabled, /var is already a RAM disk. The error comes from mdmfs trying to make a /var/run RAM disk, and failing.

      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!

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        @w0w:

        2GB of memory installed. 18xxMB free.

        I presume that is on the system. How much RAM have you assigned to the VM running pfSense?

        1 Reply Last reply Reply Quote 0
        • w0wW
          w0w
          last edited by

          @wallabybob:

          @w0w:

          2GB of memory installed. 18xxMB free.

          I presume that is on the system. How much RAM have you assigned to the VM running pfSense?

          Why are you asking? jimp already found why mdmfs is failing
          Anyway it's 4GB of memory in VM

          1 Reply Last reply Reply Quote 0
          • W
            wallabybob
            last edited by

            @w0w:

            jimp already found why mdmfs is failing

            I can see a report in this topic that mdmfs is failing but I don't see an explanation in this topic of why it is failing so I assumed the issue was still open.

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              @wallabybob:

              @w0w:

              jimp already found why mdmfs is failing

              I can see a report in this topic that mdmfs is failing but I don't see an explanation in this topic of why it is failing so I assumed the issue was still open.

              See my post here: http://forum.pfsense.org/index.php/topic,59941.msg328113.html#msg328113

              This should be solved after a commit I made this afternoon. Nothing was actually failing fatally, it was just erroring out on a part that wasn't necessary in this config

              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!

              1 Reply Last reply Reply Quote 0
              • T
                tpf
                last edited by

                @jimp:

                @Oliver_:

                is it possible to create a option for a third RamDisk?
                So we can choose Squid/HAVP/etc for using this space for caching!
                so the normal usage of  /tmp and /var is not affected?!

                No, there is no option for that, and probably won't be. Not something common enough to warrant doing. Just config squid to use more memory cache and not a disk cache in a RAM disk. That's a discussion for a different thread though.

                Jepp: http://forum.pfsense.org/index.php/topic,60944.0.html

                Btw: Many thank's for your work and implementation of nice new features! I've read your book and would be happy to read the next version with pfS 2.1  :)

                10 years pfSense! 2006 - 2016

                1 Reply Last reply Reply Quote 0
                • P
                  podilarius
                  last edited by

                  For all those missing this functionality, I found that even after updates it was not showing up. The reason I found was that I had the option to gitsync at the end of update. This either replaced the file or in my case never ran properly after the repository change. To resolve this, rename /root/pfsense to anything else, I chose pfsense.old, then "vi /etc/phpshellsessions/gitsync" changing the "$GIT_REPO" to "git://github.com/pfsense/pfsense.git". Once I did this and played back gitsync, I have this option available to me.

                  1 Reply Last reply Reply Quote 0
                  • w0wW
                    w0w
                    last edited by

                    @podilarius:

                    For all those missing this functionality, I found that even after updates it was not showing up. The reason I found was that I had the option to gitsync at the end of update. This either replaced the file or in my case never ran properly after the repository change. To resolve this, rename /root/pfsense to anything else, I chose pfsense.old, then "vi /etc/phpshellsessions/gitsync" changing the "$GIT_REPO" to "git://github.com/pfsense/pfsense.git". Once I did this and played back gitsync, I have this option available to me.

                    http://forum.pfsense.org/index.php/topic,60805.0.html

                    1 Reply Last reply Reply Quote 0
                    • P
                      podilarius
                      last edited by

                      Sure . that works also. Perhaps it is better to disable gitsync on firmware upgrade for now.

                      1 Reply Last reply Reply Quote 0
                      • w0wW
                        w0w
                        last edited by

                        Today accidentally I found that I have the same problem like described here - http://forum.pfsense.org/index.php?action=profile;u=232265;sa=showPosts and the reason why CUPS really wants directory to be created manually is that I am using ramdisk feature. When I disable it, CUPS logs are empty and directories are created automatically. This looks like some non critical "cosmetic" bug/feature that can affect other packages too, so be  careful  before adding something that uses var or tmp.

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