Migrating RAID5 and LVM from one distribution to another
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.