LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Server Partition Scheme (https://www.linuxquestions.org/questions/linux-general-1/server-partition-scheme-353514/)

JamesH 08-15-2005 01:07 PM

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.

sundialsvcs 08-15-2005 01:55 PM

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.

JamesH 08-15-2005 02:01 PM

Thank you very much - would you reccomend a seperate /home partition?

trickykid 08-15-2005 02:23 PM

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.

JamesH 08-15-2005 02:58 PM

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?

trickykid 08-15-2005 03:10 PM

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.

WhatsHisName 08-15-2005 04:06 PM

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.

JamesH 08-16-2005 02:05 AM

Well I have decided on:

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

Cheers guys :D


All times are GMT -5. The time now is 07:44 PM.