Web Server Partitioning

Discussion in 'Installation/Configuration' started by mr_dizzle, Jul 2, 2006.

  1. mr_dizzle

    mr_dizzle New Member

    A lot of good info on this board. I decided to register to see if you guys can help me out. I'm installing CentOS 4.3. I'm at the step where it asks for partitioning. It has been suggested to me by an experienced webhost to use the following partitions and sizes:

    / 2000M
    /boot 600M
    /usr 6000M
    /var 6000M
    swap match the amount of memory

    "By doing this and seperating the partitions, when the / partition fails or the kernel on it fails, you can either just reinstall on the / partition without affecting the important data OR you can take the drive and mount it in another system."

    I was under the impression that the kernel was always on /boot? Or is it on always on / ?

    Either way, 6GB doesn't seem like enough space for the logs and databases.

    If the kernel is on /boot then I thought that this might be another way to partition without the risk of losing the data if the kernel or the boot /partition fails:

    /boot 600M
    swap match the amount of memory

    What do you guys recommend and why?

    Also, one of the next steps asks this:

    Where do you want to install the boot loader?

    /dev/hda Master Boot Record
    /dev/hda1 First Sector of boot partition.

    What is best and why?

    thanks for your help.
  2. SupuS

    SupuS Member HowtoForge Supporter

    This is my usual scheme .. I don't say it is better.. Everybody has the best sollution :) .. but it works for me ...

    / - 2 GB
    /boot - 100 MB - it is much more than is necessary but for recovery uses is good
    swap - if RAM < 1 G = swap 2x RAM
    - if RAM > 1 G = swap 1x RAM
    /tmp - 2 GB mount it as nodev due to security reasons
    /var - rest of disk .. (if you want have users webs in home so use this on home instead of var)

    kernel is on boot usually ..

    If linux is on your box only so use MBR ..
  3. falko

    falko Super Moderator ISPConfig Developer

Share This Page