Need help with a swap file

Lisa Casey lisa at jellico.net
Wed Apr 27 17:16:57 PDT 2005


Hi,

I think I screwed up. Perhaps someone here can help me. I need more swap
space on my FreeBSD 4.6 box. I followed the directions at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html
for "Creating a swapfile for FreeBSD 4.X".  The example given in the
handbook was for a 64 MG swapfile. I wanted to create a 200 MG swapfile. So
for the command in the example that says:
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
I typed instead:
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=200

I put  the swap file info in  rc.conf:

swapfile="/usr/swap0" # aux swapfile

and enabled the swap file (as per the directions) by typing
# vnconfig -e /dev/vn0b /usr/swap0 swap

Before I created the new swapfile, swapinfo gave me this information:

Device     1K-blocks   Used    Avail  Capacity  Type
/dev/ad0s1b   115296   11588   103708 10%   Interleaved

Now swapinfo gives me this:

Device          1K-blocks     Used    Avail Capacity  Type
/dev/ad0s1b        115296     8136   107160     7%    Interleaved
/dev/rvn0b             72        0       72     0%    Interleaved
Total              115368     8136   107232     7%

When I look at the size of the swap0 file I created in /usr, it is not the
200 MG I thought I was getting:

-rw-------    1 root  wheel  204800 Apr 27 15:58 swap0

How can I undo this and redo it? What do I need to do to do it RIGHT this
time??

Thanks,

Lisa Casey





-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.3 - Release Date: 4/25/2005



More information about the freebsd-questions mailing list