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!
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 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.
Any recommendations would be appreciated! Should I get rid of any partitions and start over? Or is everything pretty much already in place and only needs to be formatted? Thanks.
those partitions look very very weird... what's all that RAID doing? it's all on one device! that's useless, and also you say you have a 36.4 GB drive containing over 1.2 terrabytes of space!
but ignoring all that, ultimately if you want the flexibility, just use LVM then you can chop the logical volumes around all you want, whenever you want.
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?
Thanks much!
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.
as for raid5 on two drives... why would you want to? it provides no use at all. if the drive with two partitions goes down, then all data is lost instantly...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.