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

    SWAP File on other disk

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    7 Posts 4 Posters 4.6k 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.
    • C
      ciambellone
      last edited by

      Hi all,
      Please I want to know if possible to move swap on separate disk during the installation.

      Best Regards.

      Matteo

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

        @ciambellone:

        Please I want to know if possible to move swap on separate disk during the installation.

        Why?

        1 Reply Last reply Reply Quote 0
        • stan-qazS
          stan-qaz
          last edited by

          Does it have to be moved on install or could you just create one post install and activate it?

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            If you're touching swap at all on your firewall, you have problems. There's no reason on a properly designed system to do that, you need more RAM if you're touching swap. I don't believe that's possible in the installer since it's not something that anyone should ever be concerned with, if you need another disk for swap you're solving the wrong problem.

            1 Reply Last reply Reply Quote 0
            • C
              ciambellone
              last edited by

              Hi All,

              thank you very much for your kind replies.

              Actually, I'm still installing the node (it isn't already running) and as a rule we would prefer to separate root fs .vmdk from swapspace .vmdk so to be able to place the first (root-fs) on a SAN SAS datastore, and the latter (swapspace) on a local SSD datastore, so as to contain performance degradation when (and if) the node goes out of phisical memory.

              During setup, we tried to remove the swap slice from the first disk (just root fs here), and allowed the swapspace to fill entirely the second disk, but when it comes to formatting, we get an 'out of boundary error' from the installer.

              What went wrong, in your opinion?

              Thank you in advance,

              Matteo

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                ah ok, that makes sense in that case. You can go without swap entirely, but if there is a runaway process in that instance that chews up all your RAM, processes will start getting more or less randomly killed so that's less than ideal.

                You can run through the installer and do an install with no swap, then add a swap partition manually on the second disk. Just follow the instructions here after you're up and running:
                http://www.freebsd.org/doc/handbook/adding-swap-space.html

                1 Reply Last reply Reply Quote 0
                • C
                  ciambellone
                  last edited by

                  Many thanks.
                  It works.

                  matteo

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