Linux Server partitioning

Posted by user1717735 on Server Fault See other posts from Server Fault or by user1717735
Published on 2012-11-16T11:58:03Z Indexed on 2012/11/16 17:02 UTC
Read the original article Hit count: 133

Filed under:
|

There's a lot of infos about this out there, but there's also a lot of contradictory infos… That's why i need some advices about it.

So far, on the servers i had home for test (or even "home production") purposes i didn't really care about partitioning and i configured all in / + a swap partition, over RAID 0.

Nevertheless, this pattern can't apply to production servers. I have found a good starting point here, but also it depends on what the servers will be used for…

So basically, i have a server on which there will be apache, php, mysql. It will have to handle file uploads (up to 2GB) and has 2*2TB hard drive. I plan to set :

  • / 100GB,
  • /var 1000GB (apache files and mysql files will be here),
  • /tmp 800GB (handles the php tmp file)
  • /home 96GB
  • swap 4GB

All of this if of course over RAID 1. But actually, it's not a big deal if I lose data being uploaded, so would it be interesting mounting /tmp over raid 0 while maintaining the rest over raid 1?

Sounds complicated…

© Server Fault or respective owner

Related posts about linux

Related posts about partition