Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Oct 2003 08:39:51 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Keith Baumgart <kbaumgart2@Comcast.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FW: Too much swap space...best way to take some of it away
Message-ID:  <20031004230951.GP45668@wantadilla.lemis.com>
In-Reply-To: <20031004041404.4854B44005@mx1.FreeBSD.org>
References:  <20031004041404.4854B44005@mx1.FreeBSD.org>

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

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031004230951.GP45668>