Solved [Solved] Creating a permanent Swap File

In the FreeBSD handbook can be read how to create a swap file.

Having done steps 1 to 5
Code:
# swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/md0           524288        0   524288     0%
the auxilliary swapfile shows up.

But after reboot the entry in /etc/rc.conf
Code:
# AUX swap file
swapfile="/usr/swap0"
generates this
Code:
Mounting local file systems:.
/etc/rc: WARNING: $swapfile is obsolete.  Ignored.
In RELENG/9.x this worked, in RELENG/10.0 it does not.

Has the method changed to make swapfiles permanent, or was the feature removed?
 
Re: Creating a permanent Swap File

That was an easy one. :)
Entries for swapfiles have to be removed from /etc/rc.conf. In /etc/fstab an entry for making swapfiles permanent should look like:
Code:
# AUX swapfile
md0             none            swap    sw,file=/usr/swap0 0    0

TODO: how do we edit the FreeBSD-Handbook?
 
Re: Creating a permanent Swap File

"Needs triage" is just the initial state. I just took it, and it still says that. After I do it--which may be a while, I have other things in the queue--I'll commit it and change the bug to "Issue Resolved".
 
Back
Top