Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm setting up a new server for my church and plan to install Ubuntu (5.10 server edition) on it. But I'm a little confused as to how I should set the partitions and hard-drives up. I plan to use it mainly as a file server at first with it possibly hosting PHP-driven websites later on.
The server was donated and is used. It is a Xeon 2.2 Mhz system with 2 GB RAM.
Yes, this is how the machine came. :-) I'm just wiping everything and starting over. But essentially, there are two hard-drives with 36.4 GB a piece. With this goofy configuration aside, any suggestions on what would be a good way to partition it? That's the part I don't understand.
Also, would I be able to do RAID-5 on this server? Just do 5 partitions? Any suggestions?
P.S. - Oops, I've corrected the figure now. Sorry.
Ok, I've been doing some experimenting and am having trouble getting the partitions right with a RAID setup. Right now I'm at the point during installation where you create partitions in Ubuntu and after that begin the installation process.
1) How exactly can I do this in a RAID-1 or RAID-5 format? Does RAID-5 require 3+ hard-drives, or can I simply have 3+ partitions across 2 hard-drives?
I only have 2 hard-drives in this server at 36.4 GB each. If RAID-5 does require 3+ hard-drives, I'll likely go with RAID-1 as that only requires a minimum of 2 which is what I have available.
2) Any good articles out there on how to set these partitions up? I was thinking something similar to the following:
it depends how you're going to use the space. but most servers will use most data under /var e.g. /var/ftp /var/www /var/mail ... you should not have such a large / as you would use the partitions there to build reserved space for the underlying systems outside of /var so that they have their own diskspace and so in the event of /var /usr /home etc... filling up, there is still room in /tmp and such like for the system to keep functioning.
Also you've not said what kind of RAID this is.. software or hardware... you can't (afaik) put /boot on a software raid, as it's too complex for the bootloader to accesss. real partition wise, i would strongly suggest putting just two real paritions on each drive, or rather, /boot on the first, and then the rest within an LVM which itself can run under a single raid 5 -> /dev/hda2 & /dev/hdb2 = raid = /dev/md0. /dev/md0 if formatted as LVM = /dev/VolGroup. /dev/VolGroup is that split into partitions, /dev/VolGroup/root /dev/VolGroup/tmp /dev/VolGroup/var etc... this might seem complicated but this leaves you with very simple raid 1 mirroring on all important data. this then contains very highly flexible partitioning which can be change to suit whatever you want.
I've not used Ubuntu for a while, but i'm sure this should all be done by your installer just fine.