Web Server partitioning Query
Hey everyone,
I'm int he process of setting up a new web server and have started to look at partitioning of the drive.
I have 240 GB of hdisk space on the server.
Going to be running Debian on the server as well.
So the question is should I just have a swap portion of the drive and the rest in one big partition or should I have seperate partitions for /var /home etc?
Cheers
Re: Web Server partitioning Query
All the latest Linux installs I have done, I went with the least amount of partitions possible.
If it's all on a single disk, partitioning doesn't really offer much except limitations.
Re: Web Server partitioning Query
That's what I thought.
I've gone for 3 partitions:
swap partition of 16 gb
/ partition of 10 gb
rest of the space as a partition with var and Home mounted on it.
Re: Web Server partitioning Query
I usually set up separate partitions for /var and /home, but it depends where your www directory is located.
Typical Apache installations have a www in the /var path and it makes some sense to have a separate partition to keep OS and data separate. /var Usually contains log files as well, which do grow rapidly.
if you installed Apache with the root web directory in /home, then that makes life simpler for backing up purposes.
It depends partly on whether you are using it for anything else, mail, for example, and to some extent whether it is a public server or just on a private network.
Re: Web Server partitioning Query
it'll be used for Mail as well as web.
Both are stored in /var on my current server as well as some sites stored in /home(django sites)
Backups will be done using rsync on the specific folders (var/www and var/vmail) as well as Db backups. As part of the Hosting package I have I get 100GB backup storage so I'll be setting up backups to there.
I've got the server up and running now with the 3 partitions mentioned before (swap, / and then /home and /var bound to another partition.
Re: Web Server partitioning Query
Since your question is already answered, just out of interest - who are your servers with? I'm currently looking to shift to a new provider
Re: Web Server partitioning Query
My server is with OVH specifically their soyoustart range : https://www.soyoustart.com/en/essential-servers/
I've been using them for nearly 10 years now in one form or other.