FW: Too much swap space...best way to take some of it away
Greg 'groggy' Lehey
grog at FreeBSD.org
Sat Oct 4 16:09:58 PDT 2003
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031005/abba3c0a/attachment.bin
More information about the freebsd-questions
mailing list