Using Linux LVM, can I change the number of stripes and "rebalance" the logical volume?
- by mss
I created a RAID10 by adding two RAID1 md devices as physical volumes to a volume group. Unfortunately it looks like I forgot to specify the number of stripes when I created the logical volumes (it was late):
PV VG Fmt Attr PSize PFree
/dev/md312 volume lvm2 a- 927.01G 291.01G
/dev/md334 volume lvm2 a- 927.01G 927.01G
I know that I can move all the data of a logical volume from one physical volume to another with pvmove. It also looks like lvextend supports an -i switch to change the number of stripes. Is there any way to combine these two, ie. change the number of stripes and "rebalance" the data over the stripes based on the allocation policy?
According to this mail by Ross Walker from March 2010 it isn't possible but maybe this has changed since then.