Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Move data LVM from fedora install to new gentoo install?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
enceladus
n00b
n00b


Joined: 13 Aug 2009
Posts: 13

PostPosted: Thu Apr 22, 2010 12:09 am    Post subject: Move data LVM from fedora install to new gentoo install? Reply with quote

I have a box with Fedora 9 on it on sda. This drive is the entire fedora install, and just a normal drive, nothing fancy.

There are 3 other drives in this box that are part of a large LVM mounted at /mnt/share under Fedora.

Since Fedora 9 is no longer supported and I like Gentoo better, I want to install Gentoo, and continue to use the LVM without losing or needing to back up 900gb of data from it.

Can I do this?

Is it as easy as just finding out the LVM info from Fedora and telling Gentoo? Is there another step to this?

Thanks in advance.
Back to top
View user's profile Send private message
Eusaphious
n00b
n00b


Joined: 12 Dec 2006
Posts: 17

PostPosted: Thu Apr 22, 2010 11:01 am    Post subject: Reply with quote

Take a look at this doc, it goes step by step on how to do this.

http://tldp.org/HOWTO/LVM-HOWTO/recipemovevgtonewsys.html
Back to top
View user's profile Send private message
enceladus
n00b
n00b


Joined: 13 Aug 2009
Posts: 13

PostPosted: Wed Apr 28, 2010 12:06 am    Post subject: Reply with quote

Thank you.

I followed that and ran into a little bit of trouble.

I have three drives. I'll call them a, b, and c for simplicity.

I didn't realize drive c was not actually online (it could be failing? its a maxtor). When I did vgimport VolGroup00, it wouldn't let me because it couldn't find one of the UUIDs. It told me to remove it, so I did. Then it said 2 drives in the volume group. I rebooted at this point and drive c came online, but was no longer part of the lvm. I ran vgimport without C, and then added C back into it.

When I run vgchange -ay,
Code:

  0 logical volume(s) in volume group "VolGroup00" now active


Edit:

I got it fixed, with the help of frostschutz on IRC.

LogVol00 got dropped somehow but lvm had made a backup. I edited that backup and changed "unknown device" to what it should be, and removed the "missing" flag and then restored the backup file using vgcfgrestore. vgchange -ay then reported 1 logical volume active (correct) and I was able to mount it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum