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.