Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 1997 12:07:06 +0000 (GMT)
From:      Felipe Rivera Marquez <felipe@informador.com.mx>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Multiple Swap Partitions
Message-ID:  <Pine.BSF.3.96.970821115519.14150A-100000@sunasci.informador.com.mx>
In-Reply-To: <Pine.BSF.3.95q.970821104355.10754B-100000@wopr.inetu.net>

next in thread | previous in thread | raw e-mail | index | archive | help

	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)

	Have fun!
	
On Thu, 21 Aug 1997, Dev Chanchani wrote:

> Can you add more than one swap partition to a FreeBSD server? We have a
> production server that is running out of swap space, and we cannot gain
> physical access to the machine easily. Can we add another swap partition,
> and/or add it on the fly?
> 
> Regards,
> Dev
> 
> 


	Felipe Rivera M.
	felipe@informador.com.mx
	




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970821115519.14150A-100000>