« Previous | Next » 

Revision 38256320

Parent e5b7c4ca
Child 7b3ac94d

Added by Iustin Pop almost 15 years ago

Use full-stripe size in LVM growth

LVM has issues when growing stripped volumes, so it's best to specify
the growth in exact multiples of the full stripe size (as precise as
possible). For this we need to do a couple of changes:
- in LVM Attach(), we query additionally the VG extent size and the LV
stripe count; since this makes lvs return a (possibly) multi-line
output, we now split it into lines and only take the last one
- in LVM Grow(), we round up the increase in multiples of the full
stripe size

The patch also sets the correct target size in DRBD growth.

Signed-off-by: Iustin Pop <>
Reviewed-by: Olivier Tharan <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences