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

Re: lvm2 - question about pvmove



On 2009-07-13 11:54, Mike Castle wrote:
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

What if I want 4 "small" partitions instead of one monster 1TB partition? I've read that you need a target at least as large as the source.

(I've got this aching feeling that 1TB partitions are just not a good idea, and that granularity is always a good idea...)

vgreduce /dev/sdb2

Interesting, and helpful that I don't have to know how large that /dev/sdb2 is.


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.


--
Scooty Puff, Sr
The Doom-Bringer


Reply to: