LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Failed Dist upgrade.. how to recover data? (https://www.linuxquestions.org/questions/linux-general-1/failed-dist-upgrade-how-to-recover-data-613797/)

Fettrix 01-15-2008 03:51 PM

Failed Dist upgrade.. how to recover data?
 
hi all,

I had a debian 3.1 install that I tried to upgrade to 4.0. Now as it turns out the OS HDD (/dev/hda) has something seriously wrong with it so I need to replace the drive.

My concern is for the data I have on my LVM set up which is as follows:

/dev/hdc1 - LVM
/dev/hdd1 - LVM
/dev/hde1 - LVM
/dev/hdf1 - LVM
/dev/hdg1 - LVM

Here are some pics of lvdisplay + vgdisplay

http://img505.imageshack.us/my.php?image=lvdzq8.jpg

http://img181.imageshack.us/my.php?image=vgdlu7.jpg

Sorry for the blurryness of the above pics.Would it be safe to replace hda with a new HDD, and do a fresh install on that? If so how would I be able to keep the LVM data as it currently is?

Any help would be great as my last back up was 27/9/7 an I have since added more things which i dont have a copy of.


Many thanks for any info

Fett.

indienick 01-15-2008 03:54 PM

Getting a new HD and doing a fresh install onto that will be fine. What you could do is as you're partitioning the new drive, add in mount points (thru LVM) in the paritioner in the installer. That should grant you access (as it was) to those partitions.

I apologize if my theory is completely wrong here, as I've never messed around with LVMs.

mether 01-16-2008 11:49 AM

I think you have another option. Based on the concepts of LVM you can do a PVMOVE on the second disk. This will do all what you want. Check this :

http://www.tldp.org/HOWTO/LVM-HOWTO/removeadisk.html
http://www.tldp.org/HOWTO/LVM-HOWTO/...gtonewsys.html


All times are GMT -5. The time now is 10:55 AM.