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

Re: lvm2 - question about pvmove



On 2009-07-13 13:32, Boyd Stephen Smith Jr. wrote:
In <[🔎] 4A5B26B9.50804@cox.net>, Ron Johnson wrote:
I have a 640GB drive that's starting to throw errors, so I'm going
to replace it with a 1TB drive.

The 640GB (596GiB) drive is partitioned into:
sdb1 - 2GiB swap
sdb2 - 594GiB lvm2 member

When I get the new device, I want to create 4x 250GB PVs, and then
move the contents of sdb2 into them.

Any tips?

Not really. pvmove is relatively foolproof. It makes sure there are enough free PEs before it begins the process and it checkpoints regularly. It can be aborted at any time. Even if it is completed and you find you don't like the results, you can always restore your old VG metadata because LVM makes a backup immediately before the pvmove and immediately after.

In your case, you'll have to add at least 3 of the new PVs to the VG before pvmove will let you begin. Are you going to move swap onto LVM? If not, make sure your partition table for the new drive still has space for swap.

So pvmove will spread the blocks across any empty devices?

Like others, I think having multiple PVs on a single physical disk is a bit silly, but I don't foresee it causing any issues.

Is there an lvmove or vgmove?

--
Scooty Puff, Sr
The Doom-Bringer


Reply to: