FedoraThis forum is for the discussion of the Fedora Project.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.