I am going to be running a web server using Debian which has 2 x 4 TB (8 TB total) drives in RAID 1. This server will be used for running websites, email and file storage.
From doing my research I am still really confused on how to setup my partitions, I really want to get it right before I continue. But all the past posts about this are like 7 years old.
I would prefer to have /boot and swap on their own partitions, then just have one big partition for the rest. I've read about /tmp /var/log all filling up and going wild… is this still something I should worry about?
I have heard of LVM but I don't like the idea of having to keep allocating drive space when needed, I would rather have all my HDD space available from the start and not have to worry about allocating new space at some point in the future.
For now I currently went with this:
PART swap swap 8G
PART /boot ext3 800M
PART / ext4 all
I'm not sure if this is a good setup for my server, am I "partitioning myself into a corner"?
Is there anyway in which I can restrict folders such as /tmp and /var/log without setting size limits with partitions?
Best Answer
Here's what I would suggest.