LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-15-2008, 03:51 PM   #1
Fettrix
LQ Newbie
 
Registered: Mar 2005
Distribution: Slackware 10.1 - Windows 2000 SP4 Beta 69
Posts: 4

Rep: Reputation: 0
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.
 
Old 01-15-2008, 03:54 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
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.
 
Old 01-16-2008, 11:49 AM   #3
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to recover files from a formatted HDD using a linux Dist. emt3920 Linux - Newbie 8 11-18-2007 11:53 AM
Failed dist-upgrade @ngelot Debian 6 07-28-2007 06:55 PM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
dist-upgrade failed! HELP! seppe Debian 5 11-05-2003 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration