Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 1997 17:53:37 +1000
From:      Peter Champas <peter@besys.net.au>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Multiple Swap Partitions
Message-ID:  <33FD4581.456FE788@besys.net.au>
References:  <Pine.BSF.3.96.970821115519.14150A-100000@sunasci.informador.com.mx>

next in thread | previous in thread | raw e-mail | index | archive | help
Felipe Rivera Marquez wrote:
> 
>         Taken from man pages of swapon
> ------------------------------------
> DESCRIPTION
>      Swapon is used to specify additional devices on which paging and
> swapping
>      are to take place.  The system begins by swapping and paging on
> only
> a
>      single device so that only one disk is required at bootstrap
> time.
> Calls
>      to swapon normally occur in the system multi-user initialization
> file
>      /etc/rc making all swap devices available, so that the paging and
> swap-
>      ping activity is interleaved across several devices.
> ------------------------------------------------------------
> 
>         So, in theory, you can have several swap partitions defined in
> /etc/fstab.
> 
>         The thing i've tried is using vn devices to allow swaping on a
> file, and maybe this is more useful for you.
> 
>         0. Recompile your kernel if it has no support for vn
> pseudo-devices. Add this line to your kernel configuration
> 
>          pseudo-device  vn   4
> 
>         1. Create a file as big as you want the aditional swap space
> to
>         be. (I put it on /var/tmp)
> 
>         2. Create vn devices
> 
>         /dev/MAKEDEV vn0
> 
>         3. Use vnconfig to configure the special file and activate
> swap on
>         it.
> 
>         vnconfig -e /dev/vn0 /var/tmp/swapfile swap)

And most inportant don't foget to do a 
/sbin/swapon /dev/vn0

Everyone Seems to forget to tell you these LITTLE things :))
But this method does work real well 

cheers
-- 
*---------------------[ http://www.besys.net.au/ ]---------------------*
| Peter Champas                      |          peter@besys.net.au     |
|----------------------------------------------------------------------|
| I don't demand perfection, just something that's reasonably reliable |
*----------------------------------------------------------------------*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33FD4581.456FE788>