[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where to slice a 2 gig drive ?



On 22 Dec 01 23:44:12 GMT, Karsten M. Self <kmself@ix.netcom.com> wrote:

> on Fri, Dec 21, 2001 at 02:39:39PM -0500, lee (lnx@alltel.net) wrote:

>> Ok..I'm fairly new to linux and extremely new to debian (was mandrake
>> 8.1)..I'm attempting to install 2.2r2 on a 2 gig drive here and not
>> really sure where to carve this drive up. I'm planning on using this
>> box as a proxy for 6 other machines (combo of linux/98se). Linux docs
>> has a few articles on this but I thought I'd come straight to the
>> horses mouth to learn what might be best :-)
> 
> 2 GB is a bit on the smallish side.

2 GB is perfectly adequate for the task. I ran far more than just a
proxy on 2 GB for years.

> If you're using it as a proxy, I'd
> probably set up /, /tmp, /usr, and /var as separate partitions.
> Depending on what proxy services you're offering, you might want to make
> /var the bulk of the partitions (squid, ferexample, dumps its cache
> there).

I'd avoid complicated partitioning schemes, especially if you have no
previous experience running a server with the sort of workload you are
expecting. The more partitions you create, the more (hopefully)
educated guesses you have to make about the space required, and the
more opportunities you have to get it wrong. Overestimate and you waste
space (which *is* a consideration with only a 2 GB disk). Underestimate
and you will find yourself running out of space on one partition while
plenty of space remains on others.

A seperate /var/spool partition makes sense given the use this box will
be put to. You can mount it with the noatime option to speed up disk
access and reduce or eliminate the reserved space (5% by default) to
maximise available space. Allocate 1.2 or so GB to this and you can
have a 1 GB squid cache plus space left over for other /var/spool users.

A minimal swap partition (64 - 128 MB) should be fine. If the box
starts to swap regularly you will want to add RAM otherwise performance
will suffer severely.

The rest can go into a single / partition. If this ends up bigger than
500 - 600 MB, make the /var/spool partition bigger.

Frank



Reply to: