Moving root to a logical volume
Long story short: I want to move my root partition to an empty logical volume. I have /boot mounted on a regular partition, so there won't be any worries about the machine not booting. What I want to know is if the following scheme sounds reasonable.
Long story: I have four 250 GB drives (sda - sdd).
Sda is split into four partitions:
sda1 == /boot
sda2 == swap
sda3 == /
sda4 == part of a logical volume that includes all of sdb (/dev/mapper/Main-MainVolume)
Sdc and sdd are all one logical volume -- /dev/mapper/Backup-BackupVolume
The volume Backup-BackupVolume is (surprise surprise) where I keep some of my backups and won't be touched. I want to move all the information currently mounted on sda3 on to Main-MainVolume.
My thoughts on how to complete the process are as follows,
- sudo cp -upr / /mnt/fakeroot # Main-MainVolume is mounted at /mnt/fakeroot
- sudo rm -rf /mnt/fakeroot/boot
- Edit fstab to mount Main-MainVolume at /
- Remove fstab line that mounts sda3 at /
So, do you think that will work, or will I be left with an unbootable mess?