diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index ab89bdf5b..31fb0f77d 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -6660,9 +6660,9 @@ static int _lv_raid_rebuild_or_replace(struct logical_volume *lv, } if (!match_count) { - log_print_unless_silent("%s does not contain devices specified to %s.", - display_lvname(lv), action_str); - return 1; + log_error("Logical volume %s does not contain devices specified to %s.", + display_lvname(lv), action_str); + return 0; } else if (match_count == raid_seg->area_count) { log_error("Unable to %s all PVs from %s at once.", action_str, display_lvname(lv));