How to add more swap space?

keith at smmc.qld.edu.au keith at smmc.qld.edu.au
Tue Jun 10 05:17:48 PDT 2003


Hi all...
I found this ()
I have FBSD 4.7 system...is this article still ok or even the best way to go?
Any ideas welcome
Keith

==8< snip snip ============================
Adding more SWAP space
I recently mined this info from the STABLE mailing list and thought it
would make a great mini-tutorial. I have seen this question asked before
and always wanted to know how to do it myself.
So here's the procedure for adding 512 MB of swap space:
# cd /usr
# dd if=/dev/zero of=/usr/swap0 bs=32m count=16 (FYI, 32x16=512)
# chmod 640 swap0
# chgrp operator swap0
# echo "/dev/vn0c /usr/swap0 swap" > /etc/vn0c
# vnconfig -ae
Add:
if [ "X${vnconfig_enable}" = X"YES" ]; then
echo -n ' vnconfig'; vnconfig -ae
fi
to /etc/rc.local (if it doesn't exist, create it!)
++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the freebsd-questions mailing list