I'm installing Debian (lenny), but can't decide the partitioning scheme. As stated above server is for web/db/mail purposes, basically a trivial solution - Apache, MySQL, PHP... etc. I have seen dozens of schemes, but haven't really grasped the sense in them. I have available space of 290GB which is an hardware RAID array, but it's not the case.
So here are my questions:
1. Is there a difference in which order partitions are created? If yes, then which partitions should come first, I assume something like swap or could be "/" partition?
2. Is it more efficient to put "/var" and "/home" in separate partitions, since kernel supposedly can do asynchronous I/O operations to different partitions?
3. In what proportions should I share the left space between "/var" and "/home"? Or maybe the most efficient way is to use LVM?
4. Is LVM partition decreasing the performance in terms of I/O operations?
5. How kernel acts in the case of LVM partition (is it still able to do async reads and writes)?
6. Here is the scheme, based on what Debian has offered and what I have picked from different sources:
Code:
/ - 400MB (primary) (I assume root gets NOTHING in that case, but I would gladly give it few GBs)
/usr - 5.0GB
swap - 2.0GB (but Debian offers 2.7GB)
/tmp - 500MB
/var - 142GB
/home - 142GB
I just split var and home evenly for the sake of simplicity. I have seen some people giving separate partitions for "/usr/local", "/var/logs" , "/opt", "/boot" but I almost can't see the practical meaning of it, it's possible that I'm blind. Also giving web pages, db's and mail server different partitions is also common, but I have no idea if it's useful, but if kernel is getting the use of separate partitions for real I will gladly look at this direction.
So here is what I have so far.
Thanks for any help in advance and sorry for my ignorance.