From owner-freebsd-questions@FreeBSD.ORG Sat Oct 4 16:09:58 2003 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 2359016A4BF for ; Sat, 4 Oct 2003 16:09:58 -0700 (PDT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C66143FF5 for ; Sat, 4 Oct 2003 16:09:56 -0700 (PDT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 597502BD40 for ; Sun, 5 Oct 2003 09:09:54 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 9F63451838; Sun, 5 Oct 2003 08:39:51 +0930 (CST) Date: Sun, 5 Oct 2003 08:39:51 +0930 From: Greg 'groggy' Lehey To: Keith Baumgart Message-ID: <20031004230951.GP45668@wantadilla.lemis.com> References: <20031004041404.4854B44005@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xo/uxZtUN5p1coZJ" Content-Disposition: inline In-Reply-To: <20031004041404.4854B44005@mx1.FreeBSD.org> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@freebsd.org Subject: Re: FW: Too much swap space...best way to take some of it away 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: Sat, 04 Oct 2003 23:09:58 -0000 --xo/uxZtUN5p1coZJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Saturday, 4 October 2003 at 0:14:03 -0400, Keith Baumgart wrote: > > Ok, I'm not totally a newbie but, I'm definitely no expert in FBSD. When I > was doing my original install, it was on a p100 w/ 32 megs of ram, so I gave > myself a 1 gig swap partition to help alleviate some of the server load. > Now, I have moved this install to a AMD K6/2 500MHz with 512 megs of RAM, so > I really don't need a 1 gig swap partition on only a 3 gig hard > drive. It's been a while since I've seen a machine with only 6 times as much disk as main memory. > What is the best way to repartition this disk without having to > reinstall? Here is my current disk structure: > > Filesystem 1K-blocks Used Avail Capacity > Mounted on > /dev/ad0s1a 253678 54430 178954 23% / > Devfs 1 1 0 100% /dev > /dev/ad0s1e 253678 26 233358 0% /tmp > /dev/ad0s1f 1284302 688048 493510 58% /usr > /dev/ad0s1d 253678 31542 201842 14% /var That's your file system structure, not your disk structure. The output of disklabel would be better. Given the size of the disk, I wouldn't put so many file systems on it. One option would be to back up the entire system, then boot into single-user mode and repartition the rest. Make sure you have at least 513 MB of swap, so that you can dump the system if something goes wrong. Use the rest for the /usr file system, and make /var a symlink to /usr/var. If space is really tight, you could also consider smaller file system blocks, but I wouldn't recommend it. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. --xo/uxZtUN5p1coZJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/f1M/IubykFB6QiMRAmroAJ0VmKQbBVcZ5qy+GCTqTVieMt+e1QCfZV27 mjzWhtE7Y5ddAtA1RmRG7Po= =qdTf -----END PGP SIGNATURE----- --xo/uxZtUN5p1coZJ--