LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   File system corrupted, how to move LVM drives to another machine to recover files? (https://www.linuxquestions.org/questions/linux-hardware-18/file-system-corrupted-how-to-move-lvm-drives-to-another-machine-to-recover-files-745916/)

Arodef 08-07-2009 05:38 PM

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!

pljvaldez 08-07-2009 06:19 PM

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


All times are GMT -5. The time now is 06:12 PM.