LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-17-2005, 12:42 PM   #1
Idle
LQ Newbie
 
Registered: Nov 2002
Location: Iceland
Distribution: RHEL, CentOS, Slackware
Posts: 26

Rep: Reputation: 15
Question Filesystem and partitions for a server


I'm just looking for some general tips and ideas for setting up my server. It crashed recently (root partition got corrupted due to a faulty memory stick going haywire), but fortunately I have backups of everything that matters (and most important data on different partitions). Having replaced the memory, I'm looking into starting from scratch, rather than attempting to replace any missing libraries and files that got corrupted/deleted after fixing the partition with fsck.

First of all, the file system. I've been using Ext3 in the past, but I hear ReiserFS is the way to go (I suspect it has it's pros and cons just like the rest, though). I'm not quite certain if it's mature or stable enough to be used in a server environment, so that'll be my first question. Should I go with ReiserFS, and if so, any specific reasons other than the advantage of a journaled file system?

Secondly, the partitions. I have a 200 GB WD IDE hard drive, currently partitioned as follows:

Code:
Partition	Mount		Type		Size
/dev/hda1	/boot		ext2		50MB
/dev/hda2	n/a		swap		512MB
/dev/hda3	/var/www	ext3		100GB
/dev/hda4	n/a		extended	n/a
/dev/hda5	/var/mysql	ext3		10GB
/dev/hda6	/tmp		ext3		2GB
/dev/hda7	/home		ext3		20GB
/dev/hda8	/var/log	ext3		2GB
/dev/hda9	/		ext3		rest
These are actually approximate values, for fdisk reports different values than I had intended. For example, I entered "+50M" for the /boot partition, but fdisk reports it as 49 MB. Not quite sure why that is. But that's not the point, anyway. I can safely remove about 20 GB from the /var/www partition and use someplace else. I was also thinking of combining /var/mysql for use with MySQL and PostgreSQL, e. g. "/var/db". 'Course, I've no idea if that's optimal at all.

Any recommendations on how I could split things up differently for optimal performance and safety in case of corruption or failure of some sort? Furthermore, if I decide to go RAID some day, would this kind of setup cause me any problems?

All advice is appreciated.

Edit: Just wondering if 512 MB swap partition is too much or little? Tthe machine has 1 GB of memory, and I don't recall seeing it use more than around 5- or 600 MB.

Last edited by Idle; 09-17-2005 at 12:53 PM.
 
Old 09-18-2005, 06:11 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
IMHO ext3 is best for root. But see for yourself.
Memory usage. *NIX tries to use all available RAM, if not needed for programs, then for caching and buffering. I'd say you could safely remove half of your RAM and still go without swap. I do not know any reason why 512 MB swap would be insufficient for Linux. (I know it would somewhat slow down *BSD due to the way kernel handles RAM and swap.)
 
Old 09-18-2005, 07:19 AM   #3
Idle
LQ Newbie
 
Registered: Nov 2002
Location: Iceland
Distribution: RHEL, CentOS, Slackware
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Emerson
IMHO ext3 is best for root. But see for yourself.
That link was quite useful. Thanks!

Are there any specific reasons for why I should go with ext3 rather than ReiserFS for the root partition?
 
Old 09-18-2005, 07:37 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
This is just my personal opinion. ext3 is mature and robust. You do not need anything special for root performance-wise, what's needed from there is loaded to RAM anyway and works from there. Reiser my give better performace if there are many small files stored on it, really not relevant for root. Last time I checked Reiser was considered more vulnerable in case of power failure and such. I may be wrong here.

Last edited by Emerson; 09-18-2005 at 07:38 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount the filesystem from the remote NFS server. UltraSoul Solaris / OpenSolaris 8 08-12-2005 07:51 AM
filesystem for 200gb partitions. SocialEngineer Linux - General 3 05-31-2005 12:49 PM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 03:52 PM
Linux Filesystem and Partitions rioch Linux - General 11 10-07-2003 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:57 AM.

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