FedoraThis forum is for the discussion of the Fedora Project.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
you'd need to rebuild your system compeltely really. you'd need to totally reformat both drives as a single device with a different partition type. once done you would then partition the resulting /dev/md0, making it LVM, or seperate native ext3 partitions.
It could be done using just the two drives, but it would be a very complex process.
As acid_kewpie pointed out, the easiest and most straightforward option would be to reinstall.
The fastest option for retaining your current configurations and files would be to backup the system to another drive/server, repartition the drives, create the raid(s), set up LVM, restore the installation, edit grub.conf/fstab to reflect the new setup and then remake the initrd images (which could be done before you start the conversion).
It’s straightforward to do, but by no means trivial. And before anyone asks, no one is going to post a step-by-step protocol for doing it.
No matter how you decide to proceed, the first step should always be making a full backup.
yeah i guess you technically could shrink the LVM PV off of one disk, recreate that single disk as a pre-degraded array, format it and copy the other drive across, then recreate as a full raid array.. pretty horrible though, and i'd imagine unliekly to go smoothly at all.
It gets really nasty. Been there, done that, won’t do it again.
A couple of weeks ago, I needed to convert a 2-drive mdadm-based raid1/lvm system to a 3-drive raid1/raid5/lvm setup. The idea was to degrade the original raids, create a degraded raid5 using two drives, create a new lvm physical volume on the new raid5, add it to the existing volume group, pvmove the physical extents off the degraded raid1, stop the original raid1 and recover the new raids using the newly available drive.
Turned out that pvmove would not run on degraded raids and, of course, I didn’t learn that until I had two sets of degraded raids running. But, not a lot to get worried about, since a good backup was sitting on another server if things went south.
Then the fun began. Renamed the old volume groups on the degraded raid1 so that the new ones could be created with the correct names, copied everything over from the original raid1 to the new setup, stopped the original raids, recovered the new raids and fired up mkinitrd.
But don’t be fooled by how simple that sounds. It seemed like every third command returned an error message.
Everything works fine now, but it would have been a lot easier to back up, dump the original setup, create the new raid5 setup and restore the installation, hence my suggestion above.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.