Re: lvm2 - question about pvmove
Don't try to do two things at once. If something goes wrong, you
won't know which is the cause.
Just put in the new drive and partition it into swap + lvm
swapoff /dev/sda1
vi /etc/fstab # remove swap
pvcreate
vgextend
pvmove -v /dev/sdb2
vgreduce /dev/sdb2
shutdown and remove the bad drive
At that point, everything should be good and you can continue on.
Moreover, you'll still have nearly 400G on the new drive that you can
play with.
Now you can lvcreate a new volume and move stuff over and set up mount
points at your leisure. You can then reduce the existing partition
and eventually get to the form you're looking for.
mrc
Reply to: