Re: Limiting i/o bandwith for pvmove?

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

 



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]
	sleep 5
done

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

hth,

-- 
: 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.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux