Redhat Enterprise - Partion Question for webserver

Posted on 2005-03-10
Medium Priority
Last Modified: 2010-03-18

I am setting up a Red Hat Enterprise server to be used solely for webhosting.  This is in a Dell Power Edge Server with RAID 1 and a RAID 5.  What is the best way to partion the system for this purpose.  I have loaded the OS on the RAID 1 and plan on having the RAID 5 hold the content.  The webserver will also be running mysql does this need to be put on a special partion also?


Question by:akant74
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 32

Expert Comment

ID: 13509045
I would put mysql on its own partition, the OS on another partition and the content on another. I don't think there is
any other need for additional partitioning.


Author Comment

ID: 13509264
I apologize for being naive I am still feeling my way around the linux file system and as such I need to clarify.  When you say the OS should be on its own partion are you saying the root filesystem?  Can you give me a few examples of what directories you are talking about when you refer to OS.

Thank you,

LVL 38

Accepted Solution

wesly_chen earned 1500 total points
ID: 13509382

  Webserver stuff is defined in /etc/httpd/conf/httpd.conf (DocumentRoot) and the mysql database is defined in /etc/my.cnf.
So I would recommend that
1. Put Webserver data on a separate partition on RAID5 with LVM (Logic Volume Manager), which allow you to grow the partition
dynamically without reboot the system. It's good for the future growth.

2. Put MySQL database on another separate partition on RAID5 with LVM, too.

3. The rest of OS partitions: /boot, /, /usr, /var, /tmp and swap are on RAID1. Make sure you have enough space for /tmp and /var
(at least 2GB for /var). For i686(32bit) P4 CPU, the biggest swap partition is 2GB (more than that is a waste). But you can have multiple
2GB swap partitions. /tmp is better at least 2GB for MySQL server.

The reason to separate MySQL and webserver data into different partition is to avoid one of the application using up all the disk space and
crash OS or other application. With separation, it only hangs up its own application (well, if you tie MySQL with webserver, then both
will hang if MySQL hangs due to disk full).



Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question