LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-22-2010, 09:24 AM   #1
chrisinspace
LQ Newbie
 
Registered: Dec 2008
Location: Alexandria, VA
Distribution: Ubuntu, Debian, CentOS, CrunchBang
Posts: 21

Rep: Reputation: 0
LVM Strategy for a fault tolerant server


I'm working on a home project to build a VM server. I'm have older hardware (IBM x306) and my processor doesn't have built-in virtualization support, so I'm going with VirtualBox. That seems to give me the most flexibility with supported guest OS's on my P4 processor. I'm using CentOS 5.4 installed on a software RAID1 array and I ran into an issue where every time I try to create a fixed-size virtual hard drive my whole server locks up. I think VirtualBox may have a problem managing virtual hard drives on a software RAID (unconfirmed).

Anyway my idea is to create 2 mirrored volumes using LVM to see if that works out any better. I started reading up on it and found this article. My server only has 2 hard drive bays (it's 1U) and the article says that 3 physical disks are really necessary for true fault tolerance.

Quote:
Quote:

LVM mirroring at a minimum requires three physical volumes:

1. A volume for one side of the mirror
2. A volume for other side of the mirror
3. A volume for the log

Note: We recommend for recoverability purposes that the PV's be three separate physical disks. Although not recommended, the PV's could also be a combination of partitions from one more physical disks but understand that a hardware failure could render the data on the LVM mirror useless - which somewhat defeats the purpose of LVM mirroring.


So, it sounds like if I create a standard 100MB /boot partition and then save some space on a drive for the LVM log and then one of my drives goes, I will not be able to insert a replacement, rebuild my mirror and resume normal use since the log and/or the /boot partition could be lost. Since it isn't possible to install 3 physical drives on my machine, I came up with this strategy to achieve the highest level of fault tolerance.
Code:
         Disk1                                                          Disk2
   _________________                                               ________________  
   |________________| <--     /boot (software RAID1)   -->        |________________|
   |________________| <-- Volume for LVM log (software RAID1) --> |________________|
   |                |                                             |                |
   |Logical Volume 1|          LV1 and LV2 mirrored               |Logical Volume 2|
   |________________|          using LVM (not RAID)               |________________|
That way there is a mirrored copy of the LVM log and the /boot partition on each drive. If one fails, I could put in a new drive, resync the RAID1 partitions to it, and then rebuild the LVM mirror. Does this make sense? Has anyone heard of this configuration being used? Are there any glaring issues that might prevent it?
 
Old 01-22-2010, 10:11 PM   #2
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 10:01 PM.
 
  


Reply



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
LXer: Fault-tolerant Web hosting on a shoestring LXer Syndicated Linux News 0 05-10-2007 12:16 PM
LXer: Fault-tolerant Linux can compete with Windows LXer Syndicated Linux News 0 03-02-2007 04:31 PM
LXer: Nec Adds Red Hat Option To Fault-Tolerant Server LXer Syndicated Linux News 0 08-16-2006 07:21 AM
Fault tolerant IMAP server setup mikenac Linux - Software 2 02-27-2005 10:52 AM
Fault tolerant boot? Power outages? KendersPlace Linux - General 8 07-27-2003 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:54 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
Open Source Consulting | Domain Registration