From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23342 invoked by alias); 22 Feb 2012 16:03:56 -0000 Received: (qmail 23324 invoked by uid 9478); 22 Feb 2012 16:03:56 -0000 Date: Wed, 22 Feb 2012 16:03:00 -0000 Message-ID: <20120222160356.23322.qmail@sourceware.org> From: jbrassow@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools lvconvert.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00131.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: jbrassow@sourceware.org 2012-02-22 16:03:55 Modified files: tools : lvconvert.c Log message: Add some messages that indicate completion of RAID device replacement. There were no messages printed upon completiion of RAID device replacement. This could cause confusion/concern during automated recovery, because the user sees the failure messages but no other messages indicating correction. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.183&r2=1.184 --- LVM2/tools/lvconvert.c 2012/02/22 15:20:50 1.183 +++ LVM2/tools/lvconvert.c 2012/02/22 16:03:55 1.184 @@ -1531,7 +1531,15 @@ if (!(failed_pvs = _failed_pv_list(lv->vg))) return_0; - return lv_raid_replace(lv, failed_pvs, lp->pvh); + if (!lv_raid_replace(lv, failed_pvs, lp->pvh)) { + log_error("Failed to replace faulty devices in" + " %s/%s.", lv->vg->name, lv->name); + return 0; + } + + log_print("Faulty devices in %s/%s successfully" + " replaced.", lv->vg->name, lv->name); + return 1; } /* "warn" if policy not set to replace */