LinuxQuestions.org
Visit Jeremy's Blog.
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-22-2010, 12:19 PM   #1
coenvh
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
LVM2 + RAID 1 - Did I make the right choice ?


Dear all,

This questions is about LVM2 + RAID 1, and whether I should worry about the setup I have made. I have recently setup a server (Ubuntu) for the cluster of our research group. The system consists out of 2x2=4 harddisks.

The first two harddisks were combined using RAID 1 (except for boot + swap). This set of harddisks is mainly for programs and the operating system. The second set of harddisks was also completely combined using RAID 1, and was meant for the home folders, data storage and other repositories.

Subsequently I have created a LVM partition on the first RAID array and a second LVM partition on the second RAID array. Then the necessery logical volumes were created for linux and other data we want to store on the server.

Offcourse, crucial data is frequently backed up to an external server.

I chose for this setup because in case of single disk failure, I could do a rebuild of the RAID 1 array and restore everything again to normal. I chose for LVM because for some partitions, I could not foresee what sizes would be most appropriate. LVM allowed me to change these sizes later on.

But now, after I have installed all this, I am reading all these unpleasant stories about broken RAID1-LVM2 setups, and a high degree of difficulty of retrieving data.

Was I wrong in assuming that in case of harddisk failure, I cannot simply rebuild the RAID array with a new disk ?
Offcourse I always have the external backup, but I chose this setup because I thought I could still easily restore my system in its original state after disk failure... Is this indeed the case, or not ?
If I would chose to re-install my complete server, what would be easiest to restore in case of HD failure ? LVM2 mirror or RAID 1 ?

Thanks in advance

Coen
 
Old 03-22-2010, 08:29 PM   #2
linest
LQ Newbie
 
Registered: Sep 2008
Posts: 23

Rep: Reputation: 1
Your config sounds fine to me. I've done the same thing you have, had a disk crash, then successfully replaced it. No problems. The only potential problem I see is with /boot. I keep a copy of that in the unused/unmirrored space on the second disk. If I ever need to use it, I'll have to play minor games with grub and fstab.

What problems are you concerned about.
 
  


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
Software RAID 0 configuration in RHEL using LVM2 hkapri1 Linux - Software 3 08-06-2014 03:27 AM
Recover raid 5 array + LVM2 circle69 Linux - Server 3 02-19-2010 05:00 PM
Slackware 12.2 + raid-0 + lvm2 tiktik Slackware 19 04-19-2009 06:23 PM
raid 0 and lvm2 fakie_flip Linux - Software 3 01-07-2008 12:49 PM
Convert to SW RAID with LVM2 on existing disk atman1974 Linux - General 1 05-15-2006 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:27 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