diff --git a/WHATS_NEW b/WHATS_NEW index 48ec6793b..c587a9c4b 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.173 - ================================= + Add synchornization points with udev during conversion of raid LVs. Improve --size args validation and report more detailed error message. Initialize debugging mutex before any debug message in clvmd. Log error instad of warn when noticing connection problem with lvmetad. diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index 895bb734b..e275da11a 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -329,6 +329,13 @@ static int _deactivate_and_remove_lvs(struct volume_group *vg, struct dm_list *r return_0; } + /* Wait for events following any deactivation. */ + if (!sync_local_dev_names(vg->cmd)) { + log_error("Failed to sync local devices after removing %u LVs in VG %s.", + dm_list_size(removal_lvs), vg->name); + return 0; + } + return 1; } @@ -3852,13 +3859,6 @@ static int _eliminate_extracted_lvs_optional_write_vg(struct volume_group *vg, if (!_deactivate_and_remove_lvs(vg, removal_lvs)) return_0; - /* Wait for events following any deactivation. */ - if (!sync_local_dev_names(vg->cmd)) { - log_error("Failed to sync local devices after removing %u LVs in VG %s.", - dm_list_size(removal_lvs), vg->name); - return 0; - } - dm_list_init(removal_lvs); if (vg_write_requested) {