<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 10/04/17 12:03, Zdenek Kabelac
wrote:<br>
</div>
<blockquote
cite="mid:38e06f2a-5af9-6469-ec2c-5bde2c1b199b@gmail.com"
type="cite">Dne 10.4.2017 v 11:29 lejeczek napsal(a):
<br>
<blockquote type="cite">hi there
<br>
<br>
I could not extend my stripped LV, had 3 stripes and wanted to
add one more.
<br>
Only way LVM let me do it was where I ended up with this:
<br>
<br>
--- Segments ---
<br>
Logical extents 0 to 751169:
<br>
Type striped
<br>
Stripes 3
<br>
Stripe size 16.00 KiB
<br>
Stripe 0:
<br>
Physical volume /dev/sdd
<br>
Physical extents 0 to 250389
<br>
Stripe 1:
<br>
Physical volume /dev/sde
<br>
Physical extents 0 to 250389
<br>
Stripe 2:
<br>
Physical volume /dev/sdc
<br>
Physical extents 0 to 250389
<br>
<br>
Logical extents 751170 to 1001559:
<br>
Type linear
<br>
Physical volume /dev/sdf
<br>
Physical extents 0 to 250389
<br>
<br>
1st question - was this really the only way LVM would extend?
<br>
2nd - is there performance penalty with segments like above vs
one stripped
<br>
segment?
<br>
<br>
</blockquote>
<br>
Hi
<br>
<br>
<br>
Not really sure what you aim to do.
<br>
<br>
If you have LV segment with 3 stripes - you have to keep also
extension using 3 stripes - you can't have 1st. halve of LV
spanning 3 disk and add there a new LV segment as linear - as
listed in this post.
<br>
<br>
Both segments must by striped.
<br>
<br>
Regards
<br>
<br>
Zdenek
<br>
</blockquote>
<br>
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.<br>
I tried these and each time it errored:<br>
$ lvextend -v -i 4 -l+100%free dellH200.InternalB/0<br>
$ lvextend -v -i 4 -l+100%pv dellH200.InternalB/0 /dev/sdf<br>
$ lvextend -i 4 -l 100%vg dellH200.InternalB/0<br>
<br>
I did have only one segment, an LV spanning 100%vg with 100%each-pv.<br>
And the above is the result of: $ lvextend -i 1 -l +100%free
dellH200.InternalB/0 /dev/sdf<br>
<br>
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
<br>
segment?<br>
<br>
<br>
<br>
</body>
</html>