From owner-freebsd-isp Thu Aug 21 10:12:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA04573 for isp-outgoing; Thu, 21 Aug 1997 10:12:00 -0700 (PDT) Received: from sunasci.informador.com.mx (sunasci.informador.com.mx [200.34.234.88]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA04556 for ; Thu, 21 Aug 1997 10:11:52 -0700 (PDT) Received: from localhost (felipe@localhost) by sunasci.informador.com.mx (8.8.7/8.8.5) with SMTP id MAA14291 for ; Thu, 21 Aug 1997 12:07:06 GMT Date: Thu, 21 Aug 1997 12:07:06 +0000 (GMT) From: Felipe Rivera Marquez To: freebsd-isp@FreeBSD.ORG Subject: Re: Multiple Swap Partitions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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