Fedora Linux Support Community & Resources Center
  #1  
Old 22nd January 2011, 03:48 AM
fooboo Offline
Registered User
 
Join Date: Oct 2009
Posts: 13
linuxfedorafirefox
Dumb lvm mistake

I don't know much about lvm and I've managed to screw up a drive.

I had a 500GB drive with FC14 on it and I wanted to copy over a load of data to my new 1TB that was replacing it.
I set up my new install the same way as the old...including the same volume names (error number 1 I think)
I successfully mounted the old/500GB drive (using vgscan and vgchange -a y etc.) using a laptop (running FC13) and an external hdd cradle. I could access the files I wanted but this wasn't the machine I wanted to copy them to (I was doing this while waiting for the install to finish on the new drive).

When I tried the same process on the new install I found that having two lvm with the same name meant I couldn't mount the external one. So I opened the disk utility (palimsest) and was going to change the name of the old volume group but it wouldn't let me do that. I then thought maybe I could get away with just changing the name of the partition where the files were and maybe I could add it to the mounted group or something (remember I don't really know what I'm doing...lol) so I changed it to lv_home2.
This changed the name of my new/1TB lv_home to lv_home2 as well. So thinking that wasn't the answer I just changed the name of the new lv_home2 back to lv_home.

From that point on I haven't been able to see the old drives partitions (the new volume group still works so far). I has a physical volume but the volume group and volume names are gone from view.

When I try to vgscan on my main computer or the laptop I had it working on earlier I get:
Code:
  Reading all physical volumes.  This may take a while...
  /dev/dm-2: read failed after 0 of 4096 at 53687025664: Input/output error
  /dev/dm-2: read failed after 0 of 4096 at 53687083008: Input/output error
  /dev/dm-2: read failed after 0 of 4096 at 0: Input/output error
  /dev/dm-2: read failed after 0 of 4096 at 4096: Input/output error
  /dev/dm-3: read failed after 0 of 4096 at 439562993664: Input/output error
  /dev/dm-3: read failed after 0 of 4096 at 439563051008: Input/output error
  /dev/dm-3: read failed after 0 of 4096 at 0: Input/output error
  /dev/dm-3: read failed after 0 of 4096 at 4096: Input/output error
  /dev/dm-4: read failed after 0 of 4096 at 6308167680: Input/output error
  /dev/dm-4: read failed after 0 of 4096 at 6308225024: Input/output error
  /dev/dm-4: read failed after 0 of 4096 at 0: Input/output error
  /dev/dm-4: read failed after 0 of 4096 at 4096: Input/output error
When I try to mount the volumes on the laptop the way I had done so before I get:
Code:
Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/dm-3,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
I seem to have done something heinous to my old drive that's full of the data I haven't copied across yet

Does anyone know what I have done and how I may undo it if possible?

p.s. the old drive that's not mountable has the type Linux LVM(0x8e) if that helps?

Last edited by fooboo; 22nd January 2011 at 03:50 AM. Reason: additional info
Reply With Quote
  #2  
Old 22nd January 2011, 03:01 PM
Marcuccio Offline
Registered User
 
Join Date: May 2005
Posts: 65
linuxfedorafirefox
Re: Dumb lvm mistake

Yes giving the same name is never a good idea while playing with lvm.
Onestly i don't know how you can recover the situation, try with the lvm mailing list. Recovery procedure are a common discussion argument.

good luck!

Marco
Reply With Quote
  #3  
Old 22nd January 2011, 06:11 PM
fooboo Offline
Registered User
 
Join Date: Oct 2009
Posts: 13
linuxfedorafirefox
Re: Dumb lvm mistake

Thanks I'll try the mailing list.
Reply With Quote
  #4  
Old 22nd January 2011, 06:59 PM
bonedome Offline
Registered User
 
Join Date: Apr 2010
Location: uk
Posts: 727
linuxfedorafirefox
Re: Dumb lvm mistake

Hello
try testdisk or ddrescue (both availablefrom the repos), I've never used either but testdisk claims to be able to recover deleted partitions
__________________
fedora 14 fluxbox and gnome2 hp compaq nx9030 laptop 2Gb ram, helicopter landing pad, jacuzzi, mini fridge, gateway to alternative dimension
Reply With Quote
Reply

Tags
dumb, 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 Using Fedora 13 12th October 2009 09:01 PM
LVM -- Mistake - please HELP johnthomas Using Fedora 4 8th March 2009 08:56 PM
Dumb! Really dumb! But lotsa fun. Dan Wibble 37 15th January 2009 12:15 PM
FC9 by mistake??!! orsula Installation, Upgrades and Live Media 19 3rd January 2008 09:45 PM
Dumb mistake f00dl3 Hardware & Laptops 7 10th February 2006 10:06 AM


Current GMT-time: 01:13 (Monday, 24-11-2014)

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 Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Viterbo Instagram Photos - Aalsmeer Travel Photos on Instagram - Vichy Photos