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.7k 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.
    • A
      asterix
      last edited by

      Installed the latest snapshot, turned on this feature. Left blank for default space. Installed Squid3 and after reboot it gives me the below error on the login page and I am locked out as I cannot log into the system. The pfSense is a remote box and I don't have physical access to it. Darn !

      Warning: session_start(): open(/var/tmp//sess_a5f98c219d39beb8a18480d9a81a2024, O_RDWR) failed: No space left on device (28) in /etc/inc/auth.inc on line 1316

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

        Well what did you expect when you gave it a pittance for space in /tmp and /var and tried to install a package that used it all up?

        Unfortunately there is no way to prevent foot-shooting there, but I suppose I could add even more stern warnings to the page.

        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
        • A
          asterix
          last edited by

          I realized about the setting just the second after I clicked reboot. Any backdoor method to gain access to the system?

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

            Hard to say for sure, if you can get it to the console menu at all you might be able to go back to an older version of the config, assuming any are there. It very well could have wiped out quite a bit if /tmp and/or /var filled up.

            If you can get to a prompt, check /conf/backup/ and see if there are any old configs there, if there are, then copy one to /conf/config.xml, rm /tmp/config.cache, and reboot

            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
            • A
              asterix
              last edited by

              Can't do much remotely. Only access I had to it was over WAN https.

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

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

                1 Reply Last reply Reply Quote 0
                • O
                  Oliver_
                  last edited by

                  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?!

                  1 Reply Last reply Reply Quote 0
                  • P
                    phil.davis
                    last edited by

                    @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
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      @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
                      • w0wW
                        w0w
                        last edited by

                        @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
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          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

                            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
                            • w0wW
                              w0w
                              last edited by

                              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
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by

                                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
                                • w0wW
                                  w0w
                                  last edited by

                                  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
                                  • w0wW
                                    w0w
                                    last edited by

                                    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
                                    • 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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.