LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2009, 02:22 PM   #1
echo_max
Member
 
Registered: Jun 2005
Location: Thornton, Colorado
Distribution: Debian 4, Ubuntu 9.04
Posts: 38

Rep: Reputation: 15
Guru wanted: lvm volume is corrupt.


Hey all. First off, this is for personal data so please don't waste too much of your efforts. But any help is greatly appreciated!

A little background first:
I've got, well...had, a volume group created with LVM2. Created with two 500G external HDDs and i believe the volume group was a raid 1. I have these drives housed inside an external case with SATA connections going into the system. One day while I was away the power to the external case got disconnected and created some bad problems. The system itself wasn't shutdown, it was running normally, just the power to the HDDs

My current problem I believe lies with just one of the hard drives. When lvm tries to bring up this volume, it complains that it cannot find one of the devices' UUID. I can't seem to find either of the hdd UUIDs so i'm not sure if the power corrupted both drives. I can bring up one of the drives in fdisk and the partion table looks fine, however, with the second hdd the partition table is corrupt.

Here is output from one lvm command. All other lvm commands print out the same error for this lvm:
Code:
lvm> vgscan
  Reading all physical volumes.  This may take a while...
  Couldn't find device with uuid 'MCgCMw-jaAV-tQd6-FoAo-UbM4-lHNG-tX2USr'.
  Couldn't find all physical volumes for volume group lvm1.
  Couldn't find device with uuid 'MCgCMw-jaAV-tQd6-FoAo-UbM4-lHNG-tX2USr'.
  Couldn't find all physical volumes for volume group lvm1.
  Volume group "lvm1" not found
So, any ideas or solutions? Is this scenario already at a dead end? I have little no nothing experience with data recovery so I'm not sure how feasible it is to get this data back. Seems to me like it is but thats a very naive statement.

Thanks for you help in advance.
 
Old 10-31-2009, 03:37 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by echo_max View Post
this is for personal data so please don't waste too much of your efforts.
LQ members may use GNU/Linux for personal and professional reasons so the distinction does not matter when troubleshooting.


Quote:
Originally Posted by echo_max View Post
My current problem I believe lies with just one of the hard drives. When lvm tries to bring up this volume, it complains that it cannot find one of the devices' UUID. I can't seem to find either of the hdd UUIDs so i'm not sure if the power corrupted both drives. I can bring up one of the drives in fdisk and the partion table looks fine, however, with the second hdd the partition table is corrupt.
If it's a RAID1 shouldn't you use 'mdam' to --examine and --scan the array members first, break out the "bad" one and -a it back in to facilitate rebuilding the mirror before mucking with LVM tools? Wrt LVM, do you have an external backup of LVM headers (/etc/LVM/backup contents)?
 
  


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
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 11:26 AM
lvm root partition corrupt w3bd3vil Linux - Software 0 09-23-2007 03:50 AM
Corrupt LVM CollieJim Linux - General 3 11-10-2006 01:15 AM
scripting guru wanted (low pay but emotionally rewarding) dasbooter Programming 9 08-16-2005 06:49 PM
Wanted: FreeBSD guru RSX Linux - General 0 12-08-2002 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:52 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