LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2005, 01:07 PM   #1
JamesH
LQ Newbie
 
Registered: Aug 2004
Location: England, UK
Distribution: Fedora Core 1, Ubuntu 6.10 (both on servers)
Posts: 5

Rep: Reputation: 0
Server Partition Scheme


What would be a sensible partition scheme for a Fedora Core/Debian Stable server? It will have a 40 gig hard drive. EDIT: It will be a web server, with Webmin, mySQL, etc installed.

Thanks
James.

Last edited by JamesH; 08-15-2005 at 01:30 PM.
 
Old 08-15-2005, 01:55 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3180Reputation: 3180Reputation: 3180Reputation: 3180Reputation: 3180Reputation: 3180Reputation: 3180Reputation: 3180Reputation: 3180Reputation: 3180Reputation: 3180
A reasonable partition scheme might be:
  • First, a /boot partition, with space for (say) 500mb.
  • A swap-partition with space for 3x the amount of main-memory in the computer.
  • The remaining space as a third partition which will be the root '/' partition.
Sometimes it is handy to leave some space in a fourth partition that is unallocated, just to set-aside some grab space if you need it.
 
Old 08-15-2005, 02:01 PM   #3
JamesH
LQ Newbie
 
Registered: Aug 2004
Location: England, UK
Distribution: Fedora Core 1, Ubuntu 6.10 (both on servers)
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you very much - would you reccomend a seperate /home partition?
 
Old 08-15-2005, 02:23 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally posted by sundialsvcs
A reasonable partition scheme might be:
  • First, a /boot partition, with space for (say) 500mb.
  • A swap-partition with space for 3x the amount of main-memory in the computer.
  • The remaining space as a third partition which will be the root '/' partition.
Sometimes it is handy to leave some space in a fourth partition that is unallocated, just to set-aside some grab space if you need it.
this for a server.. pah!

At minimum create these directories with their own partition:

/boot
/
/usr
/tmp
/var
/home

Along with a swap partition. Also depending on the load of the server or anticipated load, 2x the size is usually more than enough, sometimes just 1x is adequate or too much.

And a 500mb /boot partition? how many kernels you plan on using to choose to load from? I usually can deal with a 20MB /boot as I usually only keep a newly compiled kernel and the previous kernel available.

And a separate /home is always nice, you can easily reinstall the whole OS if need be and not even touch the /home directory, saving all users data intact.

Last edited by trickykid; 08-15-2005 at 02:27 PM.
 
Old 08-15-2005, 02:58 PM   #5
JamesH
LQ Newbie
 
Registered: Aug 2004
Location: England, UK
Distribution: Fedora Core 1, Ubuntu 6.10 (both on servers)
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:

At minimum create these directories with their own partition:

/boot
/
/usr
/tmp
/var
/home
For a 40GB Hard Disk what size do you reccomend these partitions be?
 
Old 08-15-2005, 03:10 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally posted by JamesH
For a 40GB Hard Disk what size do you reccomend these partitions be?
40GB, all depends really, what your going to install, etc.

At a minimum you'd probably have to go with something like this:

/boot = 20MB
swap = 1X to 2X RAM Size
/ = 1024MB is usually enough, sometimes too much.
/var = 1024MB
/tmp = 1024MB
/usr = 1GB to 10GB (All depends on how many applications/services you plan on installing/using)
/home = Rest of available space, where user files will be stored.
 
Old 08-15-2005, 04:06 PM   #7
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
With a small drive and a desire to set up a lot of partitions, using LVMs would make sense.

Both FC and Debian give you the LVM option during the installation process. You can set up each logical volume (LV) only as large as you initially need (leaving a lot of unused space in the volume group) and allow the LVs to grow into the available space was you need it.

If you decide to split off another folder, just create an LV for it. If you decide you have too many folders in LVs, just move some back into the “/” LV and recover the space in the unused LVs. If your need for storage eventually exceeds the drive size, you can add another drive and then just add its partitions to the volume group. LVMs really simplify disk administration on a small server.

There is a really good LVM HowTo here http://www.ibiblio.org/pub/Linux/doc...LVM-HOWTO.html

Be sure to look at the “Common Tasks” chapter. LVMs are a lot simpler than people think.
 
Old 08-16-2005, 02:05 AM   #8
JamesH
LQ Newbie
 
Registered: Aug 2004
Location: England, UK
Distribution: Fedora Core 1, Ubuntu 6.10 (both on servers)
Posts: 5

Original Poster
Rep: Reputation: 0
Well I have decided on:

/boot = 20MB
swap = 1024MB
/ = 1024MB is usually enough, sometimes too much.
/usr = 6144MB
/home = 32748MB

Cheers guys
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition Scheme Randall Slack Slackware 17 11-08-2005 08:49 AM
Recommended partition scheme for a server bb002 Linux - General 3 10-26-2005 01:24 PM
Partition Scheme Jaster Debian 6 11-13-2004 03:28 PM
partition scheme leeman_s Slackware 2 05-23-2004 11:41 AM
partition scheme -- why does it this way ??? Bluesuperman Slackware 2 10-31-2003 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration