Solved

Need help on Partitioning the Linux Server

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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 …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

919 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

22 Experts available now in Live!

Get 1:1 Help Now