[linux-lvm] stripped LV with segments vs one segment

lejeczek peljasz at yahoo.co.uk
Mon Apr 10 13:35:24 UTC 2017



On 10/04/17 13:27, Marian Csontos wrote:
> On 04/10/2017 01:16 PM, lejeczek wrote:
>
>>
>> I had 3 stripe LV, you know, three PVs, and wanted the LV 
>> to have 4
>> stripes, wanted to add 4th PV, you can see it from above 
>> lvdisplay.
>
> What you want is "reshape" not extend. This was committed 
> as RAID feature to 2.02.169, but it is still somewhat 
> experimental. You would need to convert stripe LV to RAID0 
> (aka takeover) and then reshape.
>
thanks, I see it more clearly now.
Is it possible to get rid of that second segment now? Have 
the LV prior to extension?


>> I tried these and each time it errored:
>> $ lvextend -v -i 4 -l+100%free dellH200.InternalB/0
>> $ lvextend -v -i 4 -l+100%pv dellH200.InternalB/0 /dev/sdf
>> $ lvextend -i 4 -l 100%vg dellH200.InternalB/0
>>
>
> lvextend With -i 4 this would add another striped segment 
> with 4 devices after the first segment - and IIUC you do 
> not have enough space for that.
>
>
>> I did have only one segment, an LV spanning 100%vg with 
>> 100%each-pv.
>> And the above is the result of: $ lvextend -i 1 -l +100%free
>> dellH200.InternalB/0 /dev/sdf
>>
>> so, either I'm not getting it right or a stripped LV 
>> cannot be extended
>> this way - then: is there performance penalty with 
>> segments like above
>> vs one stripped
>> segment?
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm at redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/




More information about the linux-lvm mailing list