LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2007, 09:06 AM   #1
timonvo
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
Lost my lvm partition


Hi,

I had an lvm-type partition which had a lot of unallocated space in front of it.
So using fdisk I deleted the partition and recreated it starting from the start of the unallocated space.
It was kind of an experiment to see if I could still use the lvm pv. I had created an mbr backup but was so stupid to put it in my home directory, which is held in the lvm pv.

So now I lost my pv. It's somewhere in between cylinder xx and the end cylinder of my disk. I still have the backup files in /etc/lvm/backup. I tried lots of beginning cylinders (using fdisk, delete part. and recreate starting from cylinder xx) and then recreated the pv and vg using those files. However I can't mount any of the lv's in the restored vg, because the filesystem is corrupt. (The wrong starting cylinder)

Now, is there a way to know where my old lvm partition which held the pv is.

Thx in advance
 
Old 05-15-2007, 10:30 AM   #2
eager
Member
 
Registered: Aug 2004
Location: Palo Alto, CA
Distribution: Fedora 8/9, Ubuntu
Posts: 50

Rep: Reputation: 18
At this point, probably not.

If you had the fdisk listing before you deleted the partition, you could recreate the partition table so that the pv would be in the right place. Or, if you know how big the deleted partition was, as well as the size of the pv, then you could repartition the disk so that it is back in the same format as before. I've done this when I deleted a partition by accident.

But you need to be sure not to make changes to the drive when the partition table is incorrect. Chances are that after recreating the pv and vg you have overwritten whatever had been on the disk and even if you were able to have the partition table restored exactly as before, the data would be corrupt.

Like you say, this was an experiment. In science, most experiments fail; only a few succeed. :-)
 
  


Reply

Tags
lvm, recover



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM, lost partition table and kernel IS in panic pulassa_aina Fedora 2 06-29-2006 07:00 AM
mount a LVM partition pavi Linux - General 1 10-29-2005 10:56 AM
Can't mount LVM-directories (lost /-directory) JZL240I-U Linux - Newbie 1 07-12-2004 07:03 AM
I lost my LVM and 11 databases Basher52 Fedora 1 03-25-2004 01:10 AM
How to convert partition to LVM? TheOther1 Linux - General 0 01-04-2004 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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