Re: How to rebuild while preserving an LVM disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cliff Avey wrote:
I have an ancient (FC3) Fedora that I want to move to FC8. I figure it might be cleanest to just rebuild it rather that upgrading (if that's even possible, it's so old). I can blow everything away except one thing. Separate from my OS disk, I have to SATA drives built into a raid-0 with md, and then an lvm physical volume group built on that. I need to keep that, and I don't have enough room anywhere else to backup and restore it.

If I unplug the raid drives, and rebuild my system, how can I hook them back up? Is the configuration info describing the md array, and the lvm groups stored on my os drive, which I'm blowing away. How can I save and/or recreate it once I get the main system back up?

Also, I don't know if there have been major changes to md or lvm (or xfs for that matter, since the logical volume is formatted as xfs). Will I have any problems using drives set up with a relatively old version of this software.

Thanks for your advice.


That is what I did going from FC4 to FC7.

My dm raid is my /home partition.

I copied all my /etc files to a memory stick for a reference.

I made sure my LVM partitions had labels as FC7 requires labels. Use something that is unique, not just home to ensure that there is no conflict.

I also wrote down my LVM and RAID settings.

I unplugged the drives to be safe.

I don't have the full details as it was my home computer, but I then installed FC7 on the clean HD. I had the installer create a separate /home partition (which will be used for other stuff later).

I then plugged the SATA drives back in and with the CLI, re-configured the RAID and made sure that was working. I then entered the LVM configurations into the lvm.conf file and checked to see if all was working by mounting the partition.

Changed the /etc/fstab to mount the partition as /home and rebooted. It went much easier than I had expected.

--
Robin Laing

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux