Using Linux LVM, can I change the number of stripes and "rebalance" the logical volume?
        Posted  
        
            by 
                mss
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by mss
        
        
        
        Published on 2011-06-30T14:58:25Z
        Indexed on 
            2011/06/30
            16:24 UTC
        
        
        Read the original article
        Hit count: 969
        
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.
© Server Fault or respective owner