RE: Web server Partitions
On Wed, 17 Dec 2003, Braxton Neate wrote:
> After pondering a few reply's I'm thinking of the following:
> /boot - 50MB
geez .. that should give you room for about 20-25 kernels
> / - 23GB (remembering that /usr & /home etc. will be directory's
> underneath this)
hummm ... you're asking for trouble when thngs go bonkers
i'd modify that still... ( to my preferences )
/ - 128/256MB
/usr - 2MB - 4MB
/home - rest of disk thats left over
/tmp - chmod 1777 /tmp --> critical issue ??
( you want this "t" flag set )
> /var - 15GB (will contain logs, websites, and SQL data)
sql and web stuff ( all user stuff ) belongs in /home/{sql, weblogs}
and symlinked from where ever in the defafult system it likes to keep
things
> SWAP1 - 1GB
> SWAP2 - 1GB
>
> Apparently the kernel can balance loads between 2 swap partitions like
> it can with multiple processors, so it would make sense to have 2 1GB
> partitions rather than a 1 2GB partition. However this machine rarely
> swaps.
hopefully the machine never uses swap ... if it does, add more memory
> Another question which arises is should I partition the disk in any
> particular order i.e. does it mater if / is hda1 or hda5?
yes ... it makes a big difference ...
will we do the work to figure out whether its 5%-10%-25% faster when
partitioned in the right order for the apps that's installed and
which ones runs most often ... we probably wont bother testing
the different partition schemes ( its somebody else's phd thesis )
c ya
alvin
Reply to: