LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Web Server Partitioning (https://www.linuxquestions.org/questions/slackware-14/web-server-partitioning-284886/)

toneee 02-01-2005 09:18 AM

Web Server Partitioning
 
Hi,

I want to install Slackware as a web server, but i am stuck at partitioning the hard drive down.

Infact i have 2 boxes, with 20 gb drives in them.

1 is going to be a mail server and the other one is a web server.

Can anyone tell me what partitions i will need for both installs?

Cheers.

Tony :scratch:

keefaz 02-01-2005 10:35 AM

For my part for the web server, I would create these partitions :
/boot
/
/var
/home # I would put htdocs here

And add a file named "apache" in /etc/logrotate.d with the content as follow :
/var/log/apache/access_log /var/log/apache/error_log {
missingok
sharedscripts
postrotate
/usr/sbin/apachectl graceful 2>/dev/null || true
endscript
weekly
compress
}
So apache log are rotated weekly
I pay attention to these /var/log/apache logs because their size grow very much
in a little period of time

toneee 02-01-2005 10:53 AM

Thanks for the reply.

does that mean you wouldnt create a swap partition?

Also how large does each partition have to be?

I have a 20gb disk at the moment.

keefaz 02-01-2005 11:04 AM

My bad, I forgot the swap ;)

/boot : 200 MB
swap : 1000 MB
/ : 4000 MB
/var : 2000 MB
/home : 12800 MB

killerbob 02-01-2005 07:51 PM

Yeah. If I was doing it in two boxes, that's how I'd set up the partitioning. Maybe vary the swap size depending on system memory, too. If you can, set up redundant drives, too. Unless you're running a mail server which is expecting heavy or rare use or is going to be running IMAP (I'm running an IMAP server myself, and you'd be surprised at how much mail storage a packrat will use up. I've got a 110mb mailbox, and one of my users is using 190mb at last count), you probably won't be filling up that 20GB hard drive any time soon, and it might be a good idea to set up a different partition where you can periodically back up the mail directories, especially if you're running an IMAP server. For mine, the backup is actually to an NFS-mounted share running on a diffrent computer.

It's probably worth asking how much use you're expecting to see, too. Both my web and mail servers are running off the same box, and the load has never reached anywhere near enough that I would actually need to split them off to separate servers. For reference, I see about a thousand hits a day on the web server, mostly remote-linked pictures from assorted messageboards I visit, and it's a PII-350 w/ 196MB of RAM, and /home is on an 80gb drive. You might find it's more worth your while to set up a single system with a 40GB hard drive (say using JBOD or some other spanning method), rather than two systems with smaller drives.


All times are GMT -5. The time now is 02:15 PM.