LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2012, 07:12 AM   #1
cheerful
Member
 
Registered: Jul 2007
Posts: 43

Rep: Reputation: 15
Partition for a new server


There are various guide on how to set up partitions for a new server. My goal is primarily for easy upgrade of OS so that the configuration and user data can be left intact. What are the necessary partitions and their size? The disk is 500 GB. The user data will go to separate disk (1 TB)

Thanks
 
Old 03-11-2012, 09:36 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Given your final answer here know Centos comes with standard documentation that's almost always worth checking. See the Installation Guide, 4.18. Partitioning Your System, for suggestions. A full installation requires 5 GB as "Recommended Partitioning Scheme" says but a minimal setup (install what services you need after basic hardening) requires approximately 700 to 800 MB. Since it's a server I suggest not using LVM but the old school primary and logical /boot, /, /usr, /tmp, /var, /home partitioning scheme and note /var should best be twice the amount of shared / hosted content, caches and log files you estimate you amass in a years time (or whatever you think your retention time should be):
Code:
/boot 100 MB   # over 3 kernels is overkill
/     1   GB   # only small dirs like /lib, /root, /etc, /dev and the /sys and /proc VFSes
/usr  20  GB   # would leave over 15 GB for your SW if you do a full install (which you shouldn't)
/tmp  1   GB   # way overkill
/var  10  GB   # or whatever your guesstimate would be
/home          # whatever you need
swap           # depends on how much RAM you have and how hungry your apps are
* Some will try to argue that having a swap, / and /home "is good enough" for a server. So. If you like surprises at three in the morning and your admin work to be full of the type of excitement you didn't ask for then be sure to follow those valuable suggestions ;-p

Some (post) install time suggestions:
- if you can run a local (virtualization guest?) staging server so testing things doesn't fsck up your server,
- only install software, expose and run services you need,
- do not disable SELinux but seek fixes instead,
- ensure you have a working backup scheme,
- ensure you apply every update when it is released,
- never log in as root but SSH in via an unprivileged user account with pubkey auth,
- try to avoid web-based management panels,
- properly harden your setup and audit regularly,
- read the basic RHEL, SANS and OWASP (security) documents.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Minimum Partition Size Required in Redhat Linux Server for DNS Server Configuration vamshi_krishv Linux - Server 3 05-06-2011 01:08 AM
Partition to use in a web server an e-mail server ljgomez5 Linux - Newbie 8 08-08-2008 02:33 PM
Web server + ftp server, How would you partition? anorman Linux - General 1 09-06-2004 08:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration