[linux-lvm] Limiting i/o bandwith for pvmove?
lars.ellenberg at linbit.com
Fri Dec 5 13:07:29 UTC 2008
On Fri, Dec 05, 2008 at 02:24:03AM +0000, Alasdair G Kergon wrote:
> On Thu, Dec 04, 2008 at 10:21:23PM +0100, Philipp Schmidt wrote:
> > Is there a way to limit the bandwidth usage of pvmove, like it is
> > possible when reconstructing software raid mirris sets?
> I wish there was! This problem annoys me too but nobody's been bothered
> enough about it to come up with a workaround yet...
really ugly workaround: do it chunk-by-chunk...
for i in `seq 0 10 10000`; do
pvmove overloaded01:$i-$[i+99] newarray:$i-$[i+99]
or something like that...
you have to adjust offsets as needed.
you may want to restrict to a particular lv (-n yourlv).
you can find out the PE mapping of your lvs with
pvs -o name,pvseg_start,pvseg_size,vg_name,lv_name
append /dev/pvname to restrict output on one pv
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the linux-lvm