How many and which partitions should I create for a linux server?
I just bought a dedicated serveur with 2TB of storage. I'll install Debian on it, but I'm reconsidering how to partition my disk.
Previously, I had the same server with this configuration (automatically defined by my provider) :
/ -> 10 GB /home -> 1.99 TB
Problem was that I quickly went to 90% of
/ because MySQL, stored in
/var/, was way too heavy for only 10GB.
/home, I store all the websites, looking like this :
/home/domain.tld/subdomain/ # like : /home/google.com/www/ /home/google.com/calendar/ /home/facebook.com/www/ /home/facebook.com/api/
(note: yeah I own Google and Facebook, why? ;))
So having a lot of storage space for
/home seems correct.
For the new server, I thought to create only two partitions
swap, but before doing something awful, I was wondering what you would recommend me to do ?
Thanks for your expertise guys :)