Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

speed up pvmove for small moves

  • Loading branch information...
commit 07ba6865d6009700569b91f548ed7348a88f895f 1 parent 824e8ab
@tomato42 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lvmtsd.c
View
4 lvmtsd.c
@@ -146,7 +146,7 @@ queue_extents_move(struct extents *ext, struct program_params *pp,
if (optimal.lv_name && !strcmp(optimal.lv_name, "free")) {
printf("PE %li is free\n", optimal.pe);
- snprintf(cmd, 4096, "pvmove --alloc anywhere %s:%li %s:%li "
+ snprintf(cmd, 4096, "pvmove -i1 --alloc anywhere %s:%li %s:%li "
"# LE: %li, score: %f\n",
ext->extents[i]->dev, ext->extents[i]->pe,
optimal.dev, optimal.pe,
@@ -160,7 +160,7 @@ queue_extents_move(struct extents *ext, struct program_params *pp,
printf("PE %li is allocated by LV %s LE %li\n, using default allocation\n",
optimal_pe, optimal.lv_name, optimal.le);
- snprintf(cmd, 4096, "pvmove --alloc anywhere %s:%li %s # LE: %li, score: %f\n", ext->extents[i]->dev,
+ snprintf(cmd, 4096, "pvmove -i1 --alloc anywhere %s:%li %s # LE: %li, score: %f\n", ext->extents[i]->dev,
ext->extents[i]->pe, get_tier_device(pp, lv_name, dst_tier),
ext->extents[i]->le, ext->extents[i]->score);
printf(cmd);
Please sign in to comment.
Something went wrong with that request. Please try again.