Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need help on Partitioning the Linux Server

Posted on 2006-10-30
1
Medium Priority
?
176 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 1500 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

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 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…
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…
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

618 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