mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lv_manip: allow extension on --nosync raid lv
If the recovery of the repleced leg(s) of a RaidLV created without initial resynchronization (i.e. "lvcreate --nosync ...") got interrupted, it can't be extended because of the < 100% sync rate.
This commit is contained in:
parent
3688eeeea0
commit
4daad1cf11
@ -4233,7 +4233,8 @@ int lv_extend(struct logical_volume *lv,
|
|||||||
log_error("Failed to get sync percent for %s.",
|
log_error("Failed to get sync percent for %s.",
|
||||||
display_lvname(lv));
|
display_lvname(lv));
|
||||||
goto out;
|
goto out;
|
||||||
} else if (sync_percent == DM_PERCENT_100) {
|
} else if (lv_is_not_synced(lv) ||
|
||||||
|
sync_percent == DM_PERCENT_100) {
|
||||||
log_verbose("Skipping initial resync for "
|
log_verbose("Skipping initial resync for "
|
||||||
"extended portion of %s",
|
"extended portion of %s",
|
||||||
display_lvname(lv));
|
display_lvname(lv));
|
||||||
|
Loading…
Reference in New Issue
Block a user