*Re-sending as it appears my original e-mail did not go through*. Good Evening All, I have a question regarding CentOS 6 server partitioning. Now I know there are a lot of different ways to partition the system and different opinions depending on the use of the server. I currently have a quad core intel system running 8GB of RAM with 1 TB hard drive (single). In the past as a FreeBSD user, I have always made a physical volume of the root filesystem (/), SWAP, /tmp, /usr, /var, and /home. In the partitioning manager I would always specify 10GB for root, 2GB or so for SWAP, 20GB var, 50GB usr, 10GB /tmp, and allocate all remaining space to my home directory as my primary data volume (assuming all my applications are installed and ran from my home directories). I was recently told that this is an old style of partitioning and is not used in modern day Linux distributions. So more accurately, here are my questions to the list: 1) What is a good partition map/schema for a server OS where it's primary purpose is for a LAMP server, DNS (bind), and possibly gameservers 2) CentOS docs recommend using 10GB SWAP for 8GB of RAM. 1X the amount of physical memory + 2GB added. (Reference: http://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-diskpartitioning-x86.html). I was told this is ridiculous and will severely slow down the system. Is this true? If so, what is a good swap space to use for 8GB of RAM? The university of MIT recommends making MULTIPLE 2GB swap spaces equaling 10GB if this is the case. Please help! 3) Is EXT4 better or worse to use then XFS for what I am planning to use the system for? Thanks in advance for all your help guys Kind Regards, Jonathan Vomacka
On Wed, 2011-08-31 at 21:28 -0400, Jonathan Vomacka wrote:> *Re-sending as it appears my original e-mail did not go through*.> Good Evening All,Bon soir. Both version of your email were received in Europe. On the subject of SWAP, I'm working on a standalone server with 8 GB RAM and a AMD 3 core processor with Centos 5.6. I do not use swap and I notice no detrimental effect. Best regards, Paul.
On 08/31/11 6:28 PM, Jonathan Vomacka wrote:> 1) What is a good partition map/schema for a server OS where it's > primary purpose is for a LAMP server, DNS (bind), and possibly gameserversmy servers generally have 2 disks mirrored for the OS, then 2 or more disks in a raid for the application file systems, be they databases, web files, NFS shared data, or whatever. I generally make the OS raid an LVM volume, then allocate /, /var, swap, and maybe /home out of that. depending on what I'm doing, the data raid is probably also a LVM volume group, and would have things like /var/www, /var/lib/pgsql/9.0/data, as logical volumes, possibly /home, depending on usage patterns. but, my workloads are often disk IO intensive. Your Mileage May Vary. Objects In Mirror May Be Closer Than They Appear. Caveat Emptor. etc etc. -- john r pierce N 37, W 122 santa cruz ca mid-left coast
On Wednesday, August 31, 2011 10:07:01 PM Always Learning wrote:> I assume your machine is a single user machine. If so, I would suggestHe stated clearly in his request that this was for a server, by definition a multi-user machine (each server process should, after all, run as a unique user) serving requests to many users. Advice for a single-user desktop won't help him.