Solved

Mirror LVM Volumes

Posted on 2008-10-30
3
1,145 Views
Last Modified: 2012-08-13
I'm new to LVM so please be gentle with your responses.  I just setup an openSUSE 11 server with a DAS attached via SAS.  I've been "toying" with LVM as I want to be able to easily add storage space when necessary.  This server/DAS will be used for disk-to-disk backups so I'm a little parnoid about in needing to ensure that the data will always available for restores.  The server has hardware mirroingfor the OS with a hot standby HD and the DAS is configured RAID5 with a hot standby.  My question is, is there a way to create two LV's in which one LV is a mirror of the other.  My worries are if LVM "crashes" my data LV, I'd like to be able to recover from a mirror copy.  I've read about LV Snapshot but I don't think that's the answer as my data LV will continuously change/grow.  

Any and all thoughts/suggestions are greatly appreciated!
0
Comment
Question by:custominet
3 Comments
 
LVL 14

Accepted Solution

by:
cjl7 earned 250 total points
ID: 22844303
Mirroring the LVM will not protect you from a "crached" lvm. Mirroring in LVM is basically having the data on two physical devices and will only protect you from HDD failure.

But when you do any operation on the LVM meta data itself (creating a new LV or resizing another) it will backup that data. In order to restore a broken LVM you would use vgcfgrestore.

But I have been using LVM for 10 years now (starting with HP-UX and moving to Linux) and it is very stable. Red Hat has had it as a default solution since version 4 of there RHEL distribution. I'd be suprised if it crashed your data LV anytime soon.

And you can of course backup your data as usual even if it is on LVM drugs! ;)
0
 

Author Comment

by:custominet
ID: 22844614
I guess my main fear is when I go to expand the LV that something may "mess up".  If I"m understanding you correctly, you believe LVM is extremely stable and I shouldn't have issues?  I know there's always the possibility of Mr Murphy stolling throgh town but...  I guess when I do go to expand the LV, I'll stop services and do the old-fashion backup.  It's just that it can grow to several TB of data which could take a while to backup.  Thanks for the feedback.
0
 
LVL 8

Expert Comment

by:Rance_Hall
ID: 22845539
what about lvm on top of raid?

use raid mirroring and setup two drives to be mirrors of each other, then when the os takes over lvm on the ONE drive.

Then when adding disks, add them to the raid array first, and then add them to the lvm
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question