Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Ok, so I want to know how to partition my hard drive that it is best suited for hosting a site. I am not intenting to have a large number of viewers; just a personal webpage although I may decide to run an e-mail server in a near future. In addition, I do a quite bit of coding on this machine for various projects.
I've a P4 1.6 GHz, 256 DDR RAM and 60 GB's of space planning to run Slackware 9.1. Here's my scheme:
I am not sure what filesystem would be best for such machine but I have heard reiserfs has the best performance but takes more space.
In addition, what are your recommendation on partitioning /usr/local and other related stuff to further facilitate the maintainiblity and ease of system's management?
My network topology is as follow:
Router/firewall [hardware] _ Solaris
|_ XP
|_ Linux
What are the pros and cons of having the database and DNS servers run on Solaris and HTTP and mail servers on Linux?
I apologize for cramping so many questions under one thread but your help and experties are much appreciated.
Distribution: Fedora/RHEL currently. Red Hat, Slackware, Debian, SuSe and Mandrake at other times
Posts: 104
Rep:
Your partitioning scheme is probably fine, assuming that both your mail and web servers are going to be using /var and that your personal coding projects are going to reside in /home. If anything I'd recommend giving a little more to /var and less to /home. I'd also recommend using LVM for maximum flexability (see the LVM HOWTO for more info). That will make any misjudgements you make wrt the partitioning of your system very easy to fix. I have neither seen nore heard of any significant performance hit from using LVM, though I'd be interested in hearing from anyone who has.
As for runing DNS and database on Solaris, I wouldn't expect any inter-OS compatability issues if that's what you're asking about. DNS is DNS and mysql is mysql. Just try to ensure that authentication requests to the database are not sent in cleartext.
I would trim down /boot. Seriously the majority of the time it won't ever exceed 30 to 40 megs unless you plan on having a dozen kernels to boot from, etc.
And for / I wouldn't recommend 9GB for server. I hope your not planning on installing X as its not needed. I have my webserver running Slackware 9.0 and my / partition is currently only taking up 55 megs of space. I truly believe you don't need a 9 GB partition when that majority of your files and data will be residing in /var and /home.
I would suggest a scheme like this:
/boot = 32mb
swap = 300 - 500mb I seriously have 300mb of swap for my server in which its never used. I only added it just in case. If you don't plan on alot of traffic, etc, 1GB is just wasting space especially if your going to install 512mb of RAM.
/ = 800mb - 1GB
/usr = 10GB
/tmp = 1 - 2GB
/home = 10 - 20GB
/var = Rest of space to hold www files and possibly database if you ever end up using mysql
Oops! I logged in and posted this thread under General forum but apparently I took too long and got kicked out so I assumed it didn't go through and then decided to post it under Distro -> Slackware forum. Sorry.
Thank you for your suggestions. Yes I am planning to keep serveral kernel images and what not under /boot but as far as / goes, considering /opt goes under it, I decided to set it to 9 GB but now I realize that is way more than I anticipated.
Again since I'll probably going to have only one user (beside the root) on the machine, I think /home better be reduced to less than 10 GB at most.
Originally posted by oxblood Thank you for your suggestions. Yes I am planning to keep serveral kernel images and what not under /boot but as far as / goes, considering /opt goes under it, I decided to set it to 9 GB but now I realize that is way more than I anticipated.
In the future if you think your thread belongs in another forum, report it to a moderator to move it, don't double post it.
As far as /opt goes. If you don't install X, you won't have an /opt directory in which if this is going to be a webserver, I really see no need in having X installed, its just going to take away resources.
If your also only going to have several kernel images under /boot, I still see no need to have 400 megs allocated for it. Even a 32 meg /boot will hold 10 or even more kernels to boot from and I'm sure over time you will remove some after compiling newer one's, etc.
I'm not trying to be picky and tell you how to setup your own server, I just think its just wasting space in which you can use elsewhere on your drive and system.
Well, as I mentioned I'm planning to code on it and frankly I would like to have at least a simple GUI at hand (I've always had a hard time coding one file at a time
Beside Slackware installation puts only KDE under /opt and other X's under /usr/X11R6.
What about other filesystems: XFS, JFS... although the more I read about ReiserFS v4, the more I get interested.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.