[Typo3-debian] Partitioning a dedicated debian typo3 server?

Luite van Zelst luite at aegee.org
Fri May 30 10:27:29 CEST 2003


>> -> /var gets an own partition
>> -> swap memory
>> -> /home is also an own partition (optional)
>> -> / for the rest
> additional, i created a seperate partition for /tmp and /var/log:
> - misbehavior caused by an overflowing log-partition is minimized,
> though i never experienced, if this prevents trouble at all.

try debugging mysql and setting the mysql-log options to log a different
value and you might have 2 gigs of logs in no-time... happened to me :) so
/var/log seperated is a really good idea

additionally I seperated /var/spool because the same server is running a
mail server as well - if you expect a lot of mailtraffic and a lot of
apache activity, this might be a good idea.

so you see - the first question you have to answer for yourself: what do I
want to use my system for?

> - some paranoia made me seperating /tmp and add noexec/nosuid options in
>  /etc/fstab. see manpage of mount for further mounting instructions.

which is good if paranoid ;) but not a real safeguard (fstab is sometimes
ignored, even "readonly" is not always enforced)

> for swap, i use to spend double amount of memory space. some
> documentation on the web instructed me, not to spend more than 1 gig for
>  swap and that worked for me. for best performance, switch of swap and
> increase ram size.

for me, 1024MB (= 2x 512MB RAM) works as a charm. I'm, used to setting a
dou ble value also.

now - if you plan to install a lot of software etc (x-windowing, graphical
programs etc) you may consider "/usr" this might be an advantage and a
disadvantage.
in general advantages of seperating are:
* speed
* safety (in cash of a crash / power shortage etc)
* possibility to mix filesystems
disadvantages:
* bits of unused space on all partitions can prove useless
* shortage of space on a single partition might pose problems

you might want to reserve space (unused) on your disk so you can change
partitions when your system is up and runnning and you find you
miscalculated the needs. What I did is reserve a lot of space and use it
for  backups in the meantime.

cherio,
Luite


-----------------------------------------------
AEGEE-Utrecht - De Europese Studentenvereniging





More information about the TYPO3-debian mailing list