From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16595 invoked by alias); 27 Mar 2012 12:01:25 -0000 Received: (qmail 16578 invoked by uid 9664); 27 Mar 2012 12:01:24 -0000 Date: Tue, 27 Mar 2012 12:01:00 -0000 Message-ID: <20120327120124.16576.qmail@sourceware.org> From: mbroz@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools pvmove.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-03/txt/msg00153.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mbroz@sourceware.org 2012-03-27 12:01:23 Modified files: tools : pvmove.c Log message: Fail early if cmirror is not detected and pvmove requires it. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/pvmove.c.diff?cvsroot=lvm2&r1=1.98&r2=1.99 --- LVM2/tools/pvmove.c 2012/03/27 11:43:32 1.98 +++ LVM2/tools/pvmove.c 2012/03/27 12:01:22 1.99 @@ -274,7 +274,15 @@ return NULL; } - if (lv_exclusive_count) { + if (vg_is_clustered(vg) && lv_active_count && *exclusive) { + log_error("Cannot move in clustered VG %s, " + "clustered mirror (cmirror) not detected " + "and LVs are activated non-exclusively.", + vg->name); + return NULL; + } + + if (vg_is_clustered(vg) && lv_exclusive_count) { if (lv_active_count) { log_error("Cannot move in clustered VG %s " "if some LVs are activated "