From owner-freebsd-questions@FreeBSD.ORG Thu Apr 28 00:16:57 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E51416A4CE for ; Thu, 28 Apr 2005 00:16:57 +0000 (GMT) Received: from radius.jellico.com (mail.jellico.com [63.162.128.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B864343D2F for ; Thu, 28 Apr 2005 00:16:56 +0000 (GMT) (envelope-from lisa@jellico.net) Received: from lisakc (6225-215-020.751.popsite.net [64.24.215.20]) by radius.jellico.com (8.13.1/8.13.1) with ESMTP id j3S0GsXw005449 for ; Wed, 27 Apr 2005 20:16:55 -0400 (EDT) Received: from 127.0.0.1 (AVG SMTP 7.0.308 [266.10.3]); Wed, 27 Apr 2005 20:18:40 -0400 Message-ID: <001b01c54b87$d4653d80$14d71840@lisakc> From: "Lisa Casey" To: Date: Wed, 27 Apr 2005 20:18:40 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 Subject: Need help with a swap file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 00:16:57 -0000 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