LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-17-2009, 12:41 AM   #1
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Rep: Reputation: 30
Migrating RAID5 and LVM from one distribution to another


I'm switching from Arch Linux to Ubuntu for a computer in my basement. It's been a few years since I've lived in the house and I want to leave the computer functioning as a server, but also with desktop capabilities well matched to a less-than-knowledgeable family.

So I installed Ubuntu 9.10 on my machine and got all of the hardware working without much issue. Now I have to get it to recognize the RAID5 + LVM that I had working under Arch. mdadm has no trouble finding the array, but it's not doing so well reading the partition table correctly. It thinks that it has partitions when in reality it does not. It has just the lvm physical volume metadata. It thinks there's a single generic "linux" 1TB partition.

That also means that pvscan isn't getting terribly far when it tries to find my physical devices.

I honestly have no idea why this would be the case and would love to hear from filesystem / software raid experts to understand what's going on.

Thanks for your help!
-Sasha
 
Old 11-18-2009, 02:36 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Maybe a version issue? If the orig LVM is a few yrs old, it might be v1, whereas modern distros have V2 http://tldp.org/HOWTO/LVM-HOWTO/.
I seem to remember reading a recommendation that even if you've got the whole physical partition as 1 pv, it's still recommended to set it up as a proper partition.
 
Old 11-18-2009, 05:39 AM   #3
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
Hmm, I probably should have made a partition for it. I'm going to go out on a limb and say I can't retroactively do that without screwing around with the partitioning. I can probably degrade the array, create a new volume group, and slowly move files around until I can eliminate the old group and the old PV. Think that's a good plan?

It's definitely LVM2 on Arch Linux. It's not a terribly old installation - about two years. AL tends to be a fairly bleeding edge distribution, which is part of why I'm migrating away from it. That was great when I had fewer responsibilities and could dedicate more time to screwing around with my computers. These days, however, I have college work, a job, and a girlfriend. I find that I want something less bleeding edge, friendlier to leave with my parents back home, and easier to leave alone for long stretches of time.

Thanks for the help!
 
Old 11-18-2009, 06:51 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Personally, I'd take the simple approach; backup and redo the pvs from scratch. Quick/simple and it'll help you remove cruft.
Sounds like you ought to do a few backups if you want to be hands off anyway.
I'm pretty sure about that recommendation, just can't find the ref right now.
 
Old 11-18-2009, 11:04 PM   #5
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 658

Rep: Reputation: 66
May be vgexport and vgimport command help you.

thanks
 
  


Reply

Tags
lvm, mdadm, raid5


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hardware Raid5 LVM query sol9001 Linux - Hardware 2 06-15-2009 02:28 PM
Problem mounting RAID5 set (LVM paritions) rxn20 Linux - Server 2 07-10-2008 09:17 AM
Want to move LVM installation to RAID5 array - how do I get it to boot? nethbar Linux - Software 0 05-29-2007 10:49 AM
software raid5 + LVM and other questions slackman Linux - Server 0 05-08-2007 02:54 AM
Migrating to kernel 2.6 and LVM Borelian Linux - Software 0 05-12-2004 09:43 AM


All times are GMT -5. The time now is 11:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration