[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Need help on Partitioning the Linux Server

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month18 days, 8 hours left to enroll

825 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