Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-08-2008, 06:31 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 8

Rep: Reputation: 0
Server partitioning for small drive (9 GB)

Hey all,

I'm setting up my first server mostly as an experiment this march break. It's an old dual P3 server with Adaptec SCSI RAID, and I have some SCSI hard drives kicking around from another old server that has a dead mobo.

I'm interested in figuring out RAID, so I want to use two of these 9.3GB SCSI drives. As far as partitioning goes, what would you suggest as a scheme? I'm thinking:

/boot 100mb
swap 512mb
/var 2gb?
/root Rest?

Basically I'm wondering how big the /var directory should be. I'm aware that it's a fairly important partition on a server. I'm pretty sure this should be enough space to at least host a small website.

Old 03-08-2008, 07:00 PM   #2
harry edwards
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
A few questions to aid the forum users to answer your query:

1) What Linux distro are you using?

2) What RAID level?

3) Why do you need to partition /var, as opposed to leaving it within the / partition?
Old 03-08-2008, 07:55 PM   #3
LQ Newbie
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
1 - I am planning on using Slackware.
2 - I'm going to use RAID 1.
3 - I've read that partitioning var on its own partition would help if there was a DOS attack and the log files went crazy or somethign like that.
But I do realize that with the limited amount of space I have, it might be a better idea just to throw everything into /?
Old 03-09-2008, 09:21 AM   #4
harry edwards
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
I think you've almost answered your own question. Indeed, if you choose to partition /var to protect against the DOS attackers, then the size required will be the default + the size of your website, plus some for future expansion.

The following quotes 2GB.
Old 03-09-2008, 07:23 PM   #5
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,191

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
Great article.

Please be aware that it says "swap should be twice the RAM size". That machine seems to be old and possible has only 256 MB installed, so then you're fine. Otherwise you should adapt your swap size.

I am also a strong advocate of a separate /home partition, unlike the article says. Nothing so easy to have a separate /home partition when you really trash your installation and you have to re-install. Provided you store user data on the disk of course.



partitioning, raid, server, slackware

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
partitioning drive and mounting old home on new drive Peter Shepard Ubuntu 3 10-22-2007 04:10 PM
Partitioning a small HD arobic Linux - Newbie 2 06-25-2004 04:12 PM
Partitioning a small drive for slack? neocookie Slackware - Installation 13 05-12-2004 07:59 PM
a very small question bout partitioning h/w Linux - Newbie 15 08-17-2003 10:47 PM
A small partitioning confusion concoran Linux - General 4 01-07-2002 01:59 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:29 AM.

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