• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • P
    phil.davis
    last edited by Apr 4, 2013, 8:46 AM

    @w0w:

    Updated to the latest snapshot via automatic update. No option in System-Advanced-Mics.
    What am I doing wrong?

    Which option is not there?
    On nanobsd, the checkbox "Use memory file system for /tmp and /var" does not appear, because it is not optional - it always "Uses memory file system for /tmp and /var".

    As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
    If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Apr 4, 2013, 12:00 PM

      @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.

      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
        w0w
        last edited by Apr 4, 2013, 3:55 PM Apr 4, 2013, 3:44 PM

        @phil.davis:

        @w0w:

        Updated to the latest snapshot via automatic update. No option in System-Advanced-Mics.
        What am I doing wrong?

        Which option is not there?
        On nanobsd, the checkbox "Use memory file system for /tmp and /var" does not appear, because it is not optional - it always "Uses memory file system for /tmp and /var".

        I have full install done on ssd disk about a half of year ago
        Now it shows
        2.1-BETA1 (i386)
        built on Wed Apr 3 04:19:20 EDT 2013
        FreeBSD 8.3-RELEASE-p7

        This what I have in System: Advanced: Miscellaneous  (see attached image)

        mics.gif
        mics.gif_thumb

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Apr 4, 2013, 4:35 PM

          You must have some other issue preventing that page from getting updated, but it's not relevant to this thread. Start a fresh thread and someone can help you investigate why a firmware update isn't updating that file.

          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
          • P
            phil.davis
            last edited by Apr 4, 2013, 4:43 PM

            The missing items are all down the end and are all items that have been added in March 2013. My nanobsd system shows them all - Skip rules when gateway is down, /tmp RAM Disk Size, /var RAM Disk Size, Periodic RRD Backup, Periodic DHCP Leases Backup.
            It is just as if your /usr/local/www/system_advanced_misc.php was never updated. On your system, check if that file actually contains code for any of these items. Then as JimP recommends, start another thread to try and sort out what happened during updating.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • W
              w0w
              last edited by Apr 5, 2013, 4:56 PM

              OK. Now I got this option activated. On reboot I see next (see image)
              Any comments?

              next_gen.jpg
              next_gen.jpg_thumb

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Apr 5, 2013, 5:02 PM

                Hard to say exactly. I didn't see that in any of my testing. How large did you try to set the /tmp and /var disks to be? perhaps it used all your memory?

                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
                  w0w
                  last edited by Apr 5, 2013, 6:09 PM

                  2GB of memory installed. 18xxMB free.
                  First time I have used 512MB for both RAM disks and now I left it blank, when screenshot is taken.

                  1 Reply Last reply Reply Quote 0
                  • W
                    w0w
                    last edited by Apr 6, 2013, 5:39 AM Apr 5, 2013, 8:07 PM

                    Clean install from pfSense-LiveCD-2.1-BETA1-i386-20130405-0056.iso.gz
                    to VirtualBox with minimum config to access web settings and activate RAM disks (all fields are empty only check-box active).
                    Same error

                    pfSense.png
                    pfSense.png_thumb

                    1 Reply Last reply Reply Quote 0
                    • J
                      jimp Rebel Alliance Developer Netgate
                      last edited by Apr 8, 2013, 5:10 PM

                      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 Apr 8, 2013, 8:45 PM

                        @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
                        • W
                          w0w
                          last edited by Apr 9, 2013, 3:20 AM

                          @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 Apr 9, 2013, 3:45 AM

                            @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
                            • J
                              jimp Rebel Alliance Developer Netgate
                              last edited by Apr 9, 2013, 3:59 AM

                              @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 Apr 9, 2013, 11:41 AM

                                @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 Apr 9, 2013, 5:07 PM

                                  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
                                  • W
                                    w0w
                                    last edited by Apr 9, 2013, 5:29 PM

                                    @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 Apr 9, 2013, 6:10 PM

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

                                      1 Reply Last reply Reply Quote 0
                                      • W
                                        w0w
                                        last edited by Jul 10, 2013, 6:39 PM Jul 10, 2013, 6:28 PM

                                        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.
                                          This community forum collects and processes your personal information.
                                          consent.not_received