moving LVM without access to original server
I have a server here at home that uses CentOS 6. It has 1x500gb HD and 3x2tb hdd's. I have what im pretty sure is a linear LVM spanning across the 3 2tb. Now the server that it is currently in will no longer read the drives (pretty sure it is the mobo coz the drives are still confirmed working.) So I don't have access to the Linux os to safely shutdown and export the LVM. If I chucked all these drives in another server that doesn't have an OS on it already and boot from the 500 which has my centos install on it. Will it successfully rebuild/workout that there is an LVM there or is my data gone?
|
As long as the hardware is similar enough that the OS will boot, the OS should find and access the LVM drives just fine. Since the original server apparently crashed hard, you will likely have some filesystems that need fsck, but that should be all.
|
Hmm you make a good point. The server it was in is an AMD athlon x2 so pretty old. Can you tell me what hardware is going to play a part in whether I can boot in or not?
Once I get my hands on a new server for it the hardware is going to be pretty new school. |
A better option would probably be to get a OS on the new server, and let it detect the LVM components.
|
Quote:
|
Been a whie since I built Centos, but it should have LVM support in all the right places by default - if not you can instal it and do a "vgchange -a y" to force it to go look for "new" (as in unknown) vgs.
|
Quote:
|
One would hope the on-disk metadata is suffficient - else make sure you have that 500Gig drive handy; with luck there will be something in /etc/lvm/backup.
|
Sweet. Thanks heaps.
Put my mind at ease before I go on my rescue mission this weekend :D |
I'll second the advice to install a new OS on the new server and let it find the LVM disks. The big issue is the presence of drivers needed to access the root filesystem. If that old 500GB disk was PATA, the initrd would not have included SATA drivers. Your new server might well not even have any PATA ports. so trying to use some SATA<=>PATA adapter would not work for booting without that SATA driver in the initrd.
|
One more thing - if you do install Centos, and use LVM again, don't accept the default names for vgs and (maybe) lvs. In all probability the names will be the same as the ones you'll be trying to restore.
Can be fixed later, but a PITA you can (and should) avoid easily. |
Quote:
Quote:
Cheers for the advice though. You guys have been immensely helpful in calming my nerves lol. |
All times are GMT -5. The time now is 08:43 AM. |