LinuxQuestions.org
Review your favorite Linux distribution.
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-2008, 01:40 AM   #1
s2cuts
Member
 
Registered: Mar 2007
Posts: 61

Rep: Reputation: 18
LVM, what happens with a drive falure?


Quick question. If I have say two physical volumes from different disks as part of a single logical volume, would the failure of one of those disks cause the data on the other physical volume to become inaccessible? Would there be a method to at least recover the data off of the good disk?

I'm just trying to wrap my head comfortably around LVM before I implement it.
 
Old 01-22-2008, 10:41 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
You could lose data. That's the drawback. If you want to save yourself the hassle of potential drive failure, implement a RAID solution. Means more disks but is your data worth it?
 
Old 01-22-2008, 12:31 PM   #3
s2cuts
Member
 
Registered: Mar 2007
Posts: 61

Original Poster
Rep: Reputation: 18
Mirroring aside, I want to understand how LVM copes with the loss of a disk. For example, if a disk that was only part of a logical volume were to fail, would the LV still be partially accessible after the failure?


I quess this is part of the answer to my question: Logical Volume Manager (Linux) from Wikipedia
"...LVM keeps a metadata header at the start of every PV, each of which is uniquely identified by a UUID. Each PV's header is a complete copy of the entire volume group's layout, including the UUIDs of all other PV, the UUIDs of all logical volumes and an allocation map of PEs to LEs. This simplifies data recovery in the event of PV loss..."
 
Old 01-22-2008, 12:42 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Yes, if you have two drives with LVM spread across both as one logical volume, if one drive fails, you should be able to recover the data from the good drive.
 
  


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
Java applet Falure jessica_lilly Ubuntu 3 01-22-2008 12:13 PM
delay - authentication falure slack_prad Linux - General 1 12-26-2006 04:20 AM
WINS on Samba Falure Most of The Time dsf767 Linux - Networking 1 06-24-2005 02:19 AM
Adding drive with LVM DBabo Linux - Software 2 06-11-2005 10:06 PM
Post install GUI Falure HappyDays Mandriva 1 07-05-2004 02:49 PM

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

All times are GMT -5. The time now is 08:16 PM.

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