LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-12-2010, 01:58 AM   #1
keithestrop
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
How to set up LVM and Raid 1 with CentOS on a 6 hard drive system?


Greetings everyone.

I would like to setup a CentOS file server with LVM and Raid1. Having 6 x 500GB drives, 4 x 1GB Ram and a Quad Core Cpu, I am considering to configure 3 hdd as LVM then raid 1 to the remaining 3 hdd's.

Is this possible and if so, how do i do this?

As a linux newbie,any advise & help will be most appreciated.

best regards.
 
Old 03-13-2010, 12:46 AM   #2
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
I havnt configure RAID but i have also knowledge regarding RAID which i want to share with you.

Yes, You have idea regarding RAID 1 but its better to configure RAID 1+0.

In this case 1st will be mirror to second, third to fourth and fifth to sixth. than all of above you will configure RAID zero. For this if your one HDD crash then you can recover data.

If you dont understand google RAID 1+0 you can find out the difference and configuration.
But i suggest RAID 1+0
 
Old 03-13-2010, 07:15 AM   #3
keithestrop
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
sohail0399,

Thanks for your suggestion, however LVM on 3 hdd's would give me around 1.5 tb storage space which can be mirrored via raid 1 to my other 3 hdd's. So if one hdd fails the mirrored drive takes over. The problem is how do i set this up if this configuration is possible on Centos?
 
Old 03-13-2010, 07:42 AM   #4
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
What you asking is possible, but RAID on top of LVM is generally avoided. LVM should be the top layer as the whole point of LVM is to provide expandable & dynamic partition sizes. If you create a RAID on top of 2 LVs, you cannot safely modify the LVs anymore without degrading the array. This essentially makes LVM completely pointless.

I propose 2 possible layouts:
1. 3 Sets of RAID 1 & LVM on top to merge them into an LV with stripping. Effective getting something like a RAID 10. This will give you 1.5TB, good protection & a speed boost.

2. RAID 6 on all 6 disks. This way you get 2TB of space, good protection but an increased CPU overhead.
 
Old 03-13-2010, 09:45 AM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by keithestrop View Post
Greetings everyone.

I would like to setup a CentOS file server with LVM and Raid1. Having 6 x 500GB drives, 4 x 1GB Ram and a Quad Core Cpu, I am considering to configure 3 hdd as LVM then raid 1 to the remaining 3 hdd's.

Is this possible and if so, how do i do this?

As a linux newbie,any advise & help will be most appreciated.

best regards.
Normally you would configure the Raid sets using hardware raid as this adds a little more protection than your software raid. Also Raid 1 is using mirroring which uses a max of only 2 drives. Also being that you are using a file server, you will probably want to make two stripes then mirror those together as striping gives the best performance. But for really great redundancy you could do a Raid 5 which will yield you about 2.5 TB of drive space with redundancy.

It would help us if you defined what your goal is. Are you going to best performance, best performance with ultimate redundancy, and how much space do you anticipate that you will need?
 
Old 03-17-2010, 03:25 AM   #6
keithestrop
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
What i am trying to achieve by setting up LVM + Raid 1 is to have a single 1.5 TB space, /boot /swap etc & a /home folder which is mirrored via raid 1. Besides CentOS, I will also have a Content Management Software running by which user's can log in to my website in order to upload / download data. (Website + online Fileserver)

I have no intention to expand the LVM in future.

I have been poking around on the net but so far i am not able to get a detailed guide on how to configure LVM + Raid 1 on a six Hdd system in CentOS. Please help me with a link to a how to or, i will be most happy if someone could post here a step 1 do this, step 2 do that so that i can follow in order to get my server up and running. All i need is guide to configure LVM + Raid 1 for the 6 Hdd's.

BTW thanks for the suggestions above. Much Appreciated.
 
Old 03-17-2010, 06:10 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,252

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
I agree with the RAID suggestions; RAID5 + 1 spare = 2.5TB or RAID6 + 2 spare = 2TB.
 
Old 04-05-2010, 11:48 AM   #8
keithestrop
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
So raid 6 +2 spare it is then. Thanks everyone, your suggestions have been a big help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual drive failure in RAID 5 (also, RAID 1, and LVM) ABL Linux - Server 6 05-27-2009 09:01 PM
CentOS Has constant hard drive access with RAID 5? r00tb00t Linux - Server 2 11-05-2008 02:31 AM
Adding a new hard drive in Centos 5.1 system; a few questions... nadsab Linux - Hardware 8 03-28-2008 04:33 PM
Combining Volumes on LVM Drive in CentOS 5.0 Linux31 Linux - Hardware 2 05-27-2007 09:14 AM
LVM + RAID-1 on FC5 running system randolpholiveira Linux - Server 0 10-12-2006 09:17 AM


All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration