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

Re: [linux-lvm] How can I restripe LVs on addition of extra PVs?

On Wednesday, October 13, 2004, at 06:12 PM, Daniel . wrote:


[I'm only familiar with LVM1, so that's what I'm referring to in the rest of the mail. I probably could move to LVM2 if it solves my problems.]

I'm planning on using LVM to create LVs striped across multiple PVs (which, incidentally, are RAID 1 mirrorred partitions).
In the future I will need to add extra PVs to the VG and extend the LVs.

This just came up in #lvm on freenode today. I don't think this is at all possible with LVM1. Once the striping is done for an LV, that LV cannot be extended past the physical extents that were allocated at that time.

However, with LVM2, you could write a script to do this by manually running pvmove over and over, doing something like "pvmove dev:1-8 otherdev;pvmove otherdev:1-8 dev;" .. It gets rather complex to figure this out on the cmdline, but I do believe it can be done and you would end up with PE's evenly spread out over all PVs.

Somebody tell me this is wrong and stupid before I try it. ;)

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