SWAP File on other disk
-
Hi all,
Please I want to know if possible to move swap on separate disk during the installation.Best Regards.
Matteo
-
Please I want to know if possible to move swap on separate disk during the installation.
Why?
-
Does it have to be moved on install or could you just create one post install and activate it?
-
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.
-
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
-
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 -
Many thanks.
It works.matteo