Solved

Need help on Partitioning the Linux Server

Posted on 2006-10-30
1
174 Views
Last Modified: 2013-12-15
Hi,

I need some one's help in partitioning my linux server. We are setting up server with
 
2 x 73GB drives on RAID 1 and
3 x 146 GB drives on RAID 5.
 
Other: has 4 GB RAM
 
Please let us know what is best partition for running web application using RedHat enterprise Linux, apache, MYSQL, PHP.
 
/  
/var
/var/log
/var/mysql
/var/mail/
/var/www
/swap
/tmp
/usr
/usr/local
/etc
/boot
/backup
/home
.......
/any other partitions

Regards,
Orbient.
0
Comment
Question by:orbient
[X]
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
1 Comment
 
LVL 14

Accepted Solution

by:
ygoutham earned 500 total points
ID: 17834120
i see that you are trying to be cautious.  but the point in linux is that any directory can be used subsequently to mount any partition.  you can mount home in some other partition if you feel that /home is getting unmanageable. the only point here is to make sure to copy your data before you start mounting partitions in different directories.

Redhat by default installs mysql in /var/lib/mysql and spooled mails if uncollected by clients would be in /var/spool/mail.

/etc contains only the copy of all configuration files and can at best be only around 150 to 200 mb in size depending on the installation.  do you really need a separate partition for that?

what i am driving here is that think before you begin your installation and guess what is an optimal size for tha partition.

keep

/var
/usr
/boot
/swap
/data (or backup)
/home

keep the remaining disk free and partition it at run time.  if your database needs most space, then you can chunk out a major portion and mount it on /var/lib/mysql (please be sure to copy the entire folder before mounting and move it into the new partition).  /var/www (this can be managed with the httpd.conf file to point to any directory of your choice.

the remaining is entirely your choice to have as much as you want.  you can keep on partitioning your disk, but any subsequent upgrade or migration would become a nightmare in terms of remembering the partition and et all.  since you are going for a raid config, the data should be paramount important. but what if you partition your 2 x 73 so much that you are not in a position to allot any further space.

since the server looks more like a database server (or a mail server running on mysql), just make sure that /var gets max amount.  you can even opt for a logical volume so that future expansions can be trouble free.

good luck

goutham
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 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