New Server - RAID1 and Partition Recommendations Please!
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.
New Server - RAID1 and Partition Recommendations Please!
Hey all! I've searched and read for days and I am almost more confused now than when I started. I am getting ready to build a new server (RHEL6) and I need some help with configuring the partitions and software RAID to best suit my needs.
I have three 2TB drives that I plan to use (qty 2) in a RAID1 config with the third disk being a spare. I also have a 250GB drive that I wasn't originally planning to use.
What I am trying to accomplish is to ideally have the entire server covered by the redundancy offered through RAID1. After reading though, I am confused as to where the /, /boot and swap partitions should be located.
Can I just create a single 2TB RAID1 partition at install and have everything on it and maintain true redundancy (one drive fails, the third will automatically take over)? Or if drive 1 fails, will the system fail to boot?
Would it be better to incorporate the fourth 250GB drive, make it drive 1 and just put /boot and swap on it and then put the /, /var, /usr, /home, etc. along with my other applications and data on the RAID1 partition? I realize this does nothing for system availability if drive 1 fails (though theoretically my data and core server data would be intact). Is it easier to replace drive 1 in that case and just create a new /boot and swap partition to get the server going? Does that even make sense?! See, I told you my brain was fried after all this reading.
Thanks Chris. I did read through the information contained in those links. What I am still unclear on is, if I just have a single 2TB RAID1 partition with all of my data on it (including /boot) and one of the drives fail, will the spare automatically be rebuilt with the data (assuming I have it configured to do so) and thus the system will boot properly without any further intervention on my part? Or, will I have to do something manually (after the drive failure) to make this happen (i.e. - is the MBR only written to /dev/sda at install)?
Also, and I welcome any and all feedback here, given the selection of drives I have available for this build, I would love to hear how others would go about configuring RAID and/or the partitions.
This is what i would do,
RAID1 with 2x2TB, partition:
/boot - 100MB, insure the grub is installed on /dev/sdb as well (in case /dev/sda will be the on to fail first)
/tmp - 1G
/swap - 2xRAM (if you got 4G of RAM then 8G swap)Keep in mind swap wont be on RAID but rather have 2 partitions on each drive (4G each in this example)
/ - rest
Wouldn't use the 250G as it will ad to CPUs overhead. As for the third one you can keep it as spare in case of of them fails, you'll have to manually rebuild it (no biggie just few commands) http://www.howtoforge.com/replacing_..._a_raid1_array
Not to mix you up even further, have you considered RAID5? Altough, from my experience software RAID5 isnt the best option.
Well, RAID5 is an idea, but min is 3 disks https://secure.wikimedia.org/wikipedia/en/wiki/RAID so if one dies you'll need to nip out quick and buy another one before the RAID fails.
RADI1 (mirror) plus hot spare gives you more safety (timewise) at the expense of less storage space; its a trade-off, your call.
You don't need 2 X RAM swap any more, that's an old calcn; I'd go with 1 x RAM, maybe 1.25. Really depends on how hard you want to push the system.
Of course, disk space is very cheap compared to RAM these days ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.