LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-07-2003, 03:49 PM   #1
rmount
LQ Newbie
 
Registered: Oct 2003
Distribution: CentOS
Posts: 22

Rep: Reputation: 15
Partitioning Guidelines question.


Hello all,

I've got a question about setting up my partitions on a Linux box. Here's the down and dirty:

- Dell PowerEdge 600SC
- Redhat 9
- Celeron 1.8Ghz
- 512 MB Ram
- (2) 40GB hard drives
- Software RAID1 (mirroring)

This is a mail server with spam filtering. So /var (specifically /var/spool for mail, and /var/lib/pgsql for Postgres) is heavily used.

I quickly found that giving /var only 8GB was a bad idea and my spam database grew and filled the disk. Here's the new scheme that i came up with:

/boot = 100MB
/ = 10GB
swap = 512MB
/var = 27GB (the rest)

I'm looking for comments on my setup. Specifically, should i just dump splitting /var and / altogether and combine them to give /var more space? Can i shrink / even more (say 2 or 3GB)?

Also, is 512MB enough for swap these days, or should i double that to 1GB, will linux even use it?

Thanks all for their advise in advance.

Regards,

--Rob
 
Old 10-07-2003, 04:06 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Re: Partitioning Guidelines question.

Quote:
Originally posted by rmount

/boot = 100MB
Too big..But can stay as it is. I'd give it 20MB/
Quote:
/ = 10GB
Too much...For standard server I think 1-2GB will do. Plus separate /home
Quote:
swap = 512MB
OK. Gives your 1GB in total.
Quote:
/var = 27GB (the rest)
With 2GB /, you'll have 35GB+ for /var. That should be enough. mavbe also separate /var/log ?

Quote:
Also, is 512MB enough for swap these days, or should i double that to 1GB, will linux even use it?
It depends on your system, how much traffic it gets and so on...See how much free memory you have...With 512MB RAM, there should be free memory all the time.
 
Old 10-08-2003, 08:01 AM   #3
rmount
LQ Newbie
 
Registered: Oct 2003
Distribution: CentOS
Posts: 22

Original Poster
Rep: Reputation: 15
Mara, Thanks for the good info.

I think i'll drop down the size of /. Also, /home gets virtually no use (this is a mail relay server that scans mail for spam and holds it in a Postgresql database).

Lastly, my boss is convinced that we should dump the whole partition scheme and make a big /. Any convincing arguments for why i should put in all this effort on these partitions would be greatly appreciated. In other words, help me convince my boss!

--Rob
 
Old 10-08-2003, 02:27 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
At least, / and /var should be separate in case that the server gets flooded (and /var gets full). Strange things can start happening then...That's why I also think that /var/logs should be separate (during flooding, it should write all what's needed to the logs, so you know what happend; the other way - /var/logs flooded, then the server can work more or less OK and still handle mail).
There are no special reasons for separate /boot, IMO.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Give me the guidelines for doing project m.parthiban Linux - General 1 09-19-2005 02:40 PM
Posting guidelines... Answering guidelines? itsjustme LQ Suggestions & Feedback 14 07-22-2005 01:08 PM
Guidelines for Partitioning For A Slack Install erraticassassin Slackware 18 07-09-2004 07:15 AM
SLOC guidelines liguorir Programming 0 06-01-2004 08:01 PM
Debian security guidelines? zero79 Debian 2 04-29-2004 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration