Add some echo so it is easy to monitor progress/which LV are being moved.

This commit is contained in:
Aymeric / APLU 2016-01-10 11:42:34 +01:00 committed by Joel Yliluoma
parent 3667678f82
commit b280298ce7
1 changed files with 2 additions and 0 deletions

View File

@ -361,6 +361,7 @@ class VG
print "# Moving {$lv->name} ($reason)\n";
print "echo "Moving {$lv->name} ($reason)\n";
print "pvmove --alloc anywhere $spv:$sbeg-$send $dpv:$dbeg-$dend\n";
$this->pvs[$lv->cur_pv]->contents[$lv->cur_ofs] = &$lv;
@ -469,6 +470,7 @@ class VG
$amount += $dend - $dbeg + 1;
print "# Moving {$lv->name} ({$lv->size}) ({$lv->move_reason})\n";
print "echo Moving {$lv->name} ({$lv->size}) ({$lv->move_reason})\n";
$slist .= ":$sbeg-$send";
$dlist .= ":$dbeg-$dend";