Solved

Need help on Partitioning the Linux Server

Posted on 2006-10-30
1
166 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now