LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 04-04-2009, 12:33 PM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 108

Rep: Reputation: 15
Exclamation this partition scheme crashes servers. why???


Hi guys,

A hacker friend and I are building some apache servers for a company that's hired us. My first ever apache gig! FTW!!! heh

Okay, my overwhelming enthusiasm for the project aside I could seriously could use some help.

So my friend and I came up with a partition scheme that we thought would be sensible for a potentially busy web server. The machines we are using come with 250GB scsi drives. Ample room for the servers we intend to build.

However, whenever we build servers this way they CONSISTENTLY crash. And neither of us have any idea why. Anyway, here's the plan we came up with:
Code:
 swap  4096 mb
/boot 25 mb -ro
/ 15 gb
/usr 25 gb
/var/log 25 gb
/home 50 gb
/var/ftp 25 gb
/dev 5 gb
/var/www 100.9 gb

xfs filesystem
The parts are listed in order they are physically created on the drive. IE swap first, /boot second, / third etc.

However... this is the error we get consistently whenever we try to boot a server built this way:
Code:
 Starting portmap daemon...portmap: fork: No such device.
Starting NFS common utilities: statd failed!
/etc/rcS.d/S48console-screen.sh: line 40: cut: command not found
/etc/rcS.d/S48console-screen.sh: line 40: [: =: unary operator expected Setting console screen modes and fonts.
/etc/rcS.d/S55bootmisc.sh: line 50: savelog: command not found
[ 14.272718] etch0: Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX
[ 14.272779] eth0: 10/100 speed: disabling TSO
I restart the install process and go with a standard, guided layout everything works fine.

Initially my thought was to setup root and boot in static parts, and everything else in LVM. However I was having trouble with that approach and (for the first time in my apache work) I am on a deadline. So I canned that project and came up with the scheme I show you above.

Ideally, if I had my choice, I would like to go with LVM for just about everything. I like the idea of having flexibility of altering part sizes based on production demands as they become apparent. And the ability to establish quotas and notifications in an LVM scheme is very appealing indeed. Which reminds me, can quotas be setup on static parts?

So when I (out of apparent necessity) went with a standard guided scheme I chose the default LVM layout. Here is how my parts are currently laid out:

Code:
/ 328 mb
/lib/init/rw 1.7 gb
/dev 10 mb
/dev/shm 1.7 gb
/boot 229 mb -ro
/home 222 gb
/tmp  376 mb
/usr  4.7 gb
/var  2.8 gb

all parts xfs
Ok. Now I must admit that while my apache skills were enough to get me the job, I am a novice at much of this. Namely, I never went too wild in my partitioning schemes in my little toy web servers so I don't know for instance why anyone would ever need a separate part for say
Code:
/lib/init/rw
or
Code:
/dev/shm
.

What's so magical about those places that they might need their own partitions? It seems to me that if I am going to start running with the big dogs and not just mucking about with toy websites every once in a while I better RTFM on this stuff and quick! If I knew where to look for the manual on this particular topic, that is! ;-)

So ultimately, and finally, my question is this. WHY on earth did the original partitioning scheme that me and my friend made not work?!?!?!? And secondly, let's say for the sake of argument that our original idea was so flawed that we have to abandon it and go with something different. Any harm in going with the default LVM layout on a fairly busy web server (supporting say 1,000 or so people a month to start)?

Also, for my next trick I am to build a mysql server and a DNS server. How would you approach partitioning differ for these types of servers (assuming a 250 SCSI drive for each).

Thanks! I always get the best advice from you guys and I'm looking forward to hearing your thoughts!
 
Old 04-04-2009, 12:52 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
what kind of partitions are these? LVM? if not which are primary and which are secondary? cut often lives in /usr/bin, so it looks like /usr maybe isn't getting mounted?


and erm... 5gb for /dev??? you do know that /dev/ is a virtual filesystem right?
 
Old 04-04-2009, 08:31 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,458

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
Quote:
Originally Posted by acid_kewpie View Post
and erm... 5gb for /dev??? you do know that /dev/ is a virtual filesystem right?
Not if it's (pre-)allocated on a physical partition - this would be my guess at the problem.
Quote:
Originally Posted by bluethundr
What's so magical about those places that they might need their own partitions?
They aren't partitions - you'll (hopefully) see they are on tmpfs. Just because something shows up in "df" doesn't mean you have to create partitions for them - the initscripts will look after those, and /dev as well so long as the install created a node for it.
 
  


Reply

Tags
partitioning


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
partitioning scheme for suse 10 sp2 XEN with virtual OES2 Netware servers on Raid 5 tekygirl Linux - Newbie 1 03-18-2009 01:53 PM
Partition Scheme caloj Linux - Newbie 3 02-11-2007 03:06 PM
Partition Scheme mschwartz3377 Linux - Hardware 3 04-09-2005 01:36 AM
partition scheme leeman_s Slackware 2 05-23-2004 11:41 AM
partition scheme -- why does it this way ??? Bluesuperman Slackware 2 10-31-2003 07:09 PM


All times are GMT -5. The time now is 10:00 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration