Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-03-08, 06:06 AM CDT
johnthomas Offline
Registered User
 
Join Date: Mar 2009
Posts: 2
LVM -- Mistake - please HELP

I had to reinstall, I have two raid 5 arrays. both belonging to /dev/vg00 and only 1 lvol in vg00 using 100% of the extents in vg00. after my reinstall I screwed up and did ---

I meant to do a vgimport but instead did
vgcreate /dev/vg00 /dev/md0 /dev/md1

not sure what i was thinking, but now i have a vg with almost 5TB free - not good being that it was only about 15% free prior to the reinstall.

ANY IDEAS on how I can get me lvol back would be much appreciated.

BTW I dont have a vgoo backup conf to do a vgcfgrestore either.

thanx
John

Last edited by johnthomas; 2009-03-08 at 06:15 AM CDT.
Reply With Quote
  #2  
Old 2009-03-08, 07:44 AM CDT
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 4,465
Give this a read.http://www.barryodonovan.com/index.p...8/lvm-recovery
From what I could understand, he removed each lvm part,
then created pv, vg
extracted the lvm/backup to a (readable place.)
then did the vgrestore -f (which I guess can fine the true LV size.

This is based on the fact that the data has not changed and every LVM piece does not affect the data area.
But "dont have a vgoo backup conf to do a vgcfgrestore" is not good, so this method makes one.

Run at your own risk,no guarantees, non-refundable, all parts are yours to keep, good luck.

SJ
__________________
Do the Math

Last edited by SlowJet; 2009-03-08 at 07:50 AM CDT. Reason: add the link, dah!
Reply With Quote
  #3  
Old 2009-03-08, 07:51 AM CDT
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 5,000
also check if there's any old config in /etc/lvm/archive
Reply With Quote
  #4  
Old 2009-03-08, 08:26 AM CDT
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 4,465
Quote:
Originally Posted by sideways View Post
also check if there's any old config in /etc/lvm/archive

The new install is not on the raid so how would they be in the /etc/lvm/archive?

Or maybe he's not telling the whole story.

SJ
__________________
Do the Math
Reply With Quote
  #5  
Old 2009-03-08, 12:56 PM CDT
johnthomas Offline
Registered User
 
Join Date: Mar 2009
Posts: 2
thanx Slow Jet, but the guy did have a backup copy of his vg config from his old drive.
I was in the process of backing up my system when the root disk failed.
I just got the system configured how I wanted and migrated all my data to my raid 5.
then I shot my self in the foot
Reply With Quote
Reply

Tags
lvm, mistake

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Big mistake pgar23 Software 13 2009-10-12 01:01 PM CDT
Big mistake! Wayne Wibble 9 2008-03-01 09:10 AM CST
FC9 by mistake??!! orsula Installation Help 19 2008-01-03 01:45 PM CST
Mistake skoalman88 General Support 9 2007-01-12 08:56 PM CST
yum help (big mistake) tux21 General Support 5 2006-07-09 10:50 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 11:45 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translations supported by vB Enterprise Translator 2.3.8