-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've followed faq 14.4 on setting up a permanent swap.  I've rebuilt the kernel 
with:

config          bsd     root on wd0a swap on wd0b and vnd0c dumps on wd0b

Then I created the actual swap file:

sudo dd if=/dev/zero of=/var/swap bs=1k count=262144

I added the info to fstab:

    /dev/vnd0c none swap sw 0 0 

Then, as per the faq, I rebooted.

Then I did

sudo vnconfig -c -v vnd0 /var/swap 

and got

vnd0: 268435456 bytes on /var/swap 

Then I did:

sudo swapctl -a /dev/vnd0c

And then:

swapctl -l
Device      512-blocks     Used    Avail Capacity  Priority
swap_device    4195296        0  4195296     0%    0
/data2/swap    2097152        0  2097152     0%    0
/dev/vnd0c      524288        0   524288     0%    0
Total          6816736        0  6816736     0%

Everything's fine at that point. But, when I reboot, I have
to repeat the commands

sudo vnconfig -c -v vnd0 /var/swap
sudo swapctl -a /dev/vnd0c

in order to get the extra swap back again. I thought from reading
the faq that it becomes permanent, but I can't get it to. Can
someone maybe point out if they see something I'm doing wrong?

Thanks.


- -- 

Denny White

All messages scanned by ClamAssassin
http://jameslick.com/clamassassin/
===============================================================
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===============================================================
iD4DBQFIJTeGy0Ty5RZE55oRAsXBAKDFrRzifK1D3oxFNR8BHLDm59DF1QCY7wuu
DzHzPMKgR4sFeZlDTYM88A==
=RrMS
-----END PGP SIGNATURE-----

Reply via email to