Solved

Mirror LVM Volumes

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

937 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

7 Experts available now in Live!

Get 1:1 Help Now