Solved

Mirror LVM Volumes

Posted on 2008-10-30
3
1,144 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux as a middle box 7 75
AD LDAP LDS 3 65
Exchange 2010 unable to mount DB due to corruption 11 109
issue in getting eth0 IP in oracale virtual box Linux VM 4 51
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now