public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW test/t-mirror-lvconvert.sh to ...
@ 2009-08-02 21:59 mornfall
0 siblings, 0 replies; 2+ messages in thread
From: mornfall @ 2009-08-02 21:59 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall@sourceware.org 2009-08-02 21:59:21
Modified files:
. : WHATS_NEW
test : t-mirror-lvconvert.sh
tools : lvconvert.c
Log message:
Make lvconvert honour log mirror options combined with downconversion.
(RHBZ 463272)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1227&r2=1.1228
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-mirror-lvconvert.sh.diff?cvsroot=lvm2&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.90&r2=1.91
--- LVM2/WHATS_NEW 2009/08/02 21:03:09 1.1227
+++ LVM2/WHATS_NEW 2009/08/02 21:59:21 1.1228
@@ -1,5 +1,6 @@
Version 2.02.51 -
================================
+ Make lvconvert honour log mirror options combined with downconversion.
Allow LV suspend while --ignorelockingfailure is in force.
Update synopsis in lvconvert manpage to mention --repair.
Set cookies in activation code and wait for udev to complete processing.
--- LVM2/test/t-mirror-lvconvert.sh 2009/06/01 14:43:28 1.10
+++ LVM2/test/t-mirror-lvconvert.sh 2009/08/02 21:59:21 1.11
@@ -321,3 +321,9 @@
check_mirror_count_ $vg/$lv1 2
check_mirror_log_ $vg/$lv1
check_and_cleanup_lvs_
+
+# BZ 463272: disk log mirror convert option is lost if downconvert option is also given
+prepare_lvs_
+lvcreate -l1 -m2 --corelog -n $lv1 $vg
+lvconvert -m1 --mirrorlog disk $vg/$lv1
+check_mirror_log_ $vg/$lv1
--- LVM2/tools/lvconvert.c 2009/08/02 21:56:29 1.90
+++ LVM2/tools/lvconvert.c 2009/08/02 21:59:21 1.91
@@ -673,6 +673,9 @@
(corelog || lp->mirrors == 1) ? 1U : 0U,
remove_pvs, 0))
return_0;
+ if (lp->mirrors > 1 &&
+ !_lv_update_log_type(cmd, lp, lv, corelog))
+ return_0;
} else if (!(lv->status & MIRRORED)) {
/*
* Converting from linear to mirror
^ permalink raw reply [flat|nested] 2+ messages in thread
* LVM2 ./WHATS_NEW test/t-mirror-lvconvert.sh to ...
@ 2010-04-21 14:04 jbrassow
0 siblings, 0 replies; 2+ messages in thread
From: jbrassow @ 2010-04-21 14:04 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow@sourceware.org 2010-04-21 14:04:26
Modified files:
. : WHATS_NEW
test : t-mirror-lvconvert.sh
tools : lvconvert.c
Log message:
Disallow the addition of mirror images while a mirror up-convert
is already occurring. The addition of new legs can be retried
once the current conversion is complete.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1533&r2=1.1534
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-mirror-lvconvert.sh.diff?cvsroot=lvm2&r1=1.24&r2=1.25
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.129&r2=1.130
--- LVM2/WHATS_NEW 2010/04/21 13:55:08 1.1533
+++ LVM2/WHATS_NEW 2010/04/21 14:04:24 1.1534
@@ -1,5 +1,6 @@
Version 2.02.64 -
=================================
+ Disallow the addition of mirror images while a conversion is happening.
Disallow primary mirror image removal when mirror is not in-sync.
Remove obsolete --name parameter from vgcfgrestore.
Add -S command to clvmd to restart the daemon preserving exclusive locks.
--- LVM2/test/t-mirror-lvconvert.sh 2010/04/21 13:55:08 1.24
+++ LVM2/test/t-mirror-lvconvert.sh 2010/04/21 14:04:26 1.25
@@ -155,11 +155,14 @@
# add 1 mirror
prepare_lvs_
lvs -a -o+devices $vg
-lvcreate -l2 -m1 -n $lv1 $vg $dev1 $dev2 $dev3:0
+lvcreate -l5 -m1 -n $lv1 $vg $dev1 $dev2 $dev3:0
lvs -a -o+devices $vg
check_mirror_count_ $vg/$lv1 2
check_mirror_log_ $vg/$lv1
-lvconvert -m+1 -i1 $vg/$lv1 $dev4
+lvconvert -m+1 -i 20 -b $vg/$lv1 $dev4
+# Next convert should fail b/c we can't have 2 at once
+not lvconvert -m+1 -b $vg/$lv1 $dev5
+wait_conversion_ $vg/$lv1
lvs -a -o+devices $vg
check_no_tmplvs_ $vg/$lv1
check_mirror_count_ $vg/$lv1 3
--- LVM2/tools/lvconvert.c 2010/04/20 12:18:31 1.129
+++ LVM2/tools/lvconvert.c 2010/04/21 14:04:26 1.130
@@ -995,6 +995,16 @@
}
/*
+ * Is there already a convert in progress? We do not
+ * currently allow more than one.
+ */
+ if (find_temporary_mirror(lv) || (lv->status & CONVERTING)) {
+ log_error("%s is already being converted. Unable to start another conversion.",
+ lv->name);
+ return 0;
+ }
+
+ /*
* Log addition/removal should be done before the layer
* insertion to make the end result consistent with
* linear-to-mirror conversion.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-21 14:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-02 21:59 LVM2 ./WHATS_NEW test/t-mirror-lvconvert.sh to mornfall
2010-04-21 14:04 jbrassow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).