Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 08-07-2009, 05:38 PM   #1
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Rep: Reputation: 17
File system corrupted, how to move LVM drives to another machine to recover files?

I have a server with two hard drives configured using the default CentOS disk configuration, so it's using LVM. The file system got corrupted somehow, I did a fsck to repair and it worked for a day before crashing again. Now the system is not even booting up properly (kernel panic).

I'd like to move these hard drives to another working Linux system and access the drives as secondary drives, not boot from them since running the OS of them is not stable.

For example, on my working system (Redhat 5.3 based), I'd connect the two SATA drives (they would be found as /dev/sdc and /dev/sdd I believe), and mount the / partition from the bad drives to /mnt/olddrives/, and then I'd attempt to repair and recover files.

My problem is I'm not sure how to handle the LVM stuff. My working setup is already using LVM as it uses the default drive configuration setup as well so I'm guessing there will be some conflicts if I just hookup the bad drives to my working system as the physical and logical volumes may have the same names? Ex. LogVol00, VolGroup00, etc.

Can someone walk me through how to do this or point me in the right direction? Thanks!

Last edited by Arodef; 08-07-2009 at 05:47 PM.
Old 08-07-2009, 06:19 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
This is a little dated, but you might be able to do it from a live CD.


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
Unable to recover files in corrupted raid1 array trostr Linux - Server 0 05-03-2009 05:42 PM
mount disk - corrupted file EXT3 file system RAFAL Linux - General 3 04-08-2009 03:27 PM
Corrupted journal in a Linux LVM How to recover ccj4467 Linux - General 0 01-16-2009 12:10 PM
LXer: HOWTO recover deleted files on an ext3 file system LXer Syndicated Linux News 0 03-14-2008 01:11 PM
shell script to move files from one system to another sytem with file names in a txt coral_km Linux - Newbie 3 02-13-2008 10:23 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration