Recover LVM2 with Data?
I was running RH9 with 2 x 250GB IDE HDD's and 1 x 40GB IDE HDD.
RH9 sat on the 40GB with default partition setup.
The 250GB drives were LVM2, again default setup, and mounted onto the FS of the 40GB drive. Both drives were joined to give 500GB.
By default setup i mean the recommended partition setup given by RH9 at install.
My 40GB drive died. I replaced with a new 40GB drive and looked at it as a good chance to upgrade to FC5.
I assumed FC5 would see the LVM's and allow me to simpley tell it where to mount them at install. However, FC5 only see's the two 250GB drives with no partitions.
On reading up how to remount my 250GB drives i found out i should have, but did not, back up the LVM settings for the drive.
I know very little about LVM.
How can i safely recover these drives and thier data?
There are a lot of Family Home Videos and files for my work that are all priceless to me. Any help will be very much apprecieated.
I wonder what testdisk would do for you as it is designed to recover lost partitions, not sure what it's like with LVM. It can be found on most Live CD's, just type: "testdisk" in a terminal, if you have FC5 installed, install it from repositories. If it does not work, you can type: "photorec" which is part of testdisk that can recover many file formats, but you'll need another 500GB as it will pull allot of data out. You have to be in the directory where you want the files recovered into before issuing the command. Foremost data carver also works similar to photorec but not so good with certain formats, very good with .jpg. Supposedly, photorec can be interupted by hitting Ctrl + C, so you can sort through the data and delete what you don't want, then resume photorec from where it left off, but I only tried that once and must have done something wrong because it started from scratch on the image file again.
A trick I use when recovering data from large drives is to use dd to make manageable sized images of the drives like 6GB at a time and use foremost or photorec, this sometimes still produces near 6GB of recovered data, with foremost, it will all be in one folder and it takes a while to view what's in that folder when there is 150,000 .jpg files in it, not all will be valid ,jpg files but you will get all the valid ones using the last .jpg entry in the configuration file. Debian is my preferred distribution for these tasks as it seems to handle the memory demands better than my other distros. You would take 6GB images across the entire drives and then offset the images by 3GB or so to catch any files that fell in between the first set of 6GB images.
If you decide you need to recover data with the methods I described, let me know and I will post my notes with the exact steps and commands used when I did .jpg recovery.
Thanks for your help.
TestDisk can see the partitions but i can't mount them.
Plz post your notes and steps to learn from them
I have same problem. Can I access LVM from Windows xp?
Recovering logical volume
Well I did a mistake and get the same kind of problem.
With testdisk, you can recover the lvm partition on your disk which were used on your lvm set. Good.
But once it is done there are 2 possibilities as far as I understand : you have the file /etc/lvm avai˝lable and did a backup with vgcfbackup, then vgcfgrestore will be give you back the whole system.
you do not have anything, my case, and I wonder how can get back the mapping of my lv within the group and physical partition ? any idea ?
|All times are GMT -5. The time now is 05:19 AM.|