PDA

View Full Version : Partition recomendations


jarrettjones
03-21-2004, 10:04 PM
I just recently built a Debian/Qmail test server based off of qmailrocks.com. Now I am going to build my production server, but wanted advice on the partitoning scheme. The system specs are as follows;

PII 266
384mb RAM
40gb HD

This server used to be Redhat with;
/ == 10gb
/usr2 == 28gb, which was locations for netjuke, http, homes
swap == 188mb

I understand the secutiry issues with having one large partition, so I was wondering how I should break them up. This server will have pop/webmail, http, ftp, ssh, phpbb, and netjuke. It will only be used by myself and maybe two or three other people for mail use. This will be a minimal install of Debian - no X, gnome, kde, office, etc.

Maybe...

/ == 4gb
/home == 5gb
/mp3s == remainder, hopefully 20gb+, don't ask
/var == 5gb
/var/log == 250mb
/var/www == 5gb
/tmp == 100mb
swap == 768mb

Should /var be broken up even more?
Is this a too paranoid approach or would it be justified?

Thanks for the avice

Bookworm
03-22-2004, 12:27 AM
I tend to break mine up as follows.

/boot - > boot partition - 20 megs
/var -> keep the log files away from other things in case of overflow - 2 gigs
/ -> main partition - 10 gig
/home -> everything else.

I tend to store web sites under /home/web*, and so forth. That way I know that if I back up the one partition, I'm good to go. (configuration files can be rewritten if necessary, but data can't)

BW

mysurfguide
03-27-2005, 03:18 PM
I tend to partition with security in mind...
****** Email-Server *********
233Mhz Pentium2 MX
80MB RAM
1x2.0GB HDA
1x1.6GB HDB

----------------------------------------

/boot = 50 MB (mbr) Ext3 w. 20MB dedicated for kernel proceedure, 30 for bootup, probe, init.
/swap = 200MB (2xorig)
/var = 1.3GB (data) Ext3
/home = 1.0GB (vpop dirs) Ext3
/tmp = 650 MB (dynamic) ReiserFS w. Notail for faster frequence of up@#$%!@#$%!@#$%!@#$%!@#$%!@#$%! inodes.

Running only Qmail services, from Qmailrocks.org setup proceedure.
Preventing DDOS and Overflow attacks within the file systems.


Best regards, Jimmie Hansson