Partitions for websever
Would it be fine to utilize all of my server disc space to use as the webserver or should I save some space on the disc for other uses(I have no idea what they could be, just wondering) ?
The only purpose for this server is to host websites.
Thanks in advanced for your input.
Tone
3 Replies
By default you have two, one for storage and one for swap.
I personally have three, one for tmp as well (so the tmp folder can't chew up my hard drive space).
You should always have some free space on your server otherwise things like databases, log files etc will stop working.
I tend to keep 20% free space if possible.
@obs:
I personally have three, one for tmp as well (so the tmp folder can't chew up my hard drive space).
One for /var/log as well, assuming that's where you keep your access_logs. You don't want a DDoS or overly-agressive spider filling up your / partition.
/
/tmp
/var/log
/var/log/audit
/var/ossec
Also, depending on the applications and if it's a multi-user system, I might also have:
/home
/var/spool
/var/www
/oracle
…
With lvm, there is little reason to be afraid of partitioning, and separating things helps keep the system stable and running in the event of a runaway process, along with allowing for flexible mount options (e.g. noexec for /tmp) that can increase security.