LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-08-2008, 06:31 PM   #1
flummoxed
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.

Thanks
 
Old 03-08-2008, 07:00 PM   #2
harry edwards
Member
 
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
flummoxed
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
Member
 
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.

http://www.oldskoolphreak.com/tfiles/hack/slack_sec.txt
 
Old 03-09-2008, 07:23 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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.

jlinkels
 
  


Reply

Tags
partitioning, raid, server, slackware



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:16 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