Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm setting up my first server mostly as an experiment this march break. It's an old dual P3 server with Adaptec SCSI RAID, and I have some SCSI hard drives kicking around from another old server that has a dead mobo.
I'm interested in figuring out RAID, so I want to use two of these 9.3GB SCSI drives. As far as partitioning goes, what would you suggest as a scheme? I'm thinking:
/boot 100mb
swap 512mb
/var 2gb?
/root Rest?
Basically I'm wondering how big the /var directory should be. I'm aware that it's a fairly important partition on a server. I'm pretty sure this should be enough space to at least host a small website.
1 - I am planning on using Slackware.
2 - I'm going to use RAID 1.
3 - I've read that partitioning var on its own partition would help if there was a DOS attack and the log files went crazy or somethign like that.
But I do realize that with the limited amount of space I have, it might be a better idea just to throw everything into /?
I think you've almost answered your own question. Indeed, if you choose to partition /var to protect against the DOS attackers, then the size required will be the default + the size of your website, plus some for future expansion.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Great article.
Please be aware that it says "swap should be twice the RAM size". That machine seems to be old and possible has only 256 MB installed, so then you're fine. Otherwise you should adapt your swap size.
I am also a strong advocate of a separate /home partition, unlike the article says. Nothing so easy to have a separate /home partition when you really trash your installation and you have to re-install. Provided you store user data on the disk of course.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.