Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e12bdd591a1e60f055bae…
Commit: e12bdd591a1e60f055baee6cf5e9a144ea245a33
Parent: 7a507583d97c1f4b11d5f1a94958f65cf42b6f9f
Author: Marian Csontos <mcsontos(a)redhat.com>
AuthorDate: Tue Jul 28 17:36:57 2020 +0200
Committer: Marian Csontos <mcsontos(a)redhat.com>
CommitterDate: Tue Jul 28 17:36:57 2020 +0200
tests: Adapt RAID test to changes
Change 3c9177fdc0b8 causes a conversion of raid1 volume to a raid1 with
the same number of legs succeed with a warning.
---
test/shell/lvconvert-m-raid1-degraded.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/shell/lvconvert-m-raid1-degraded.sh b/test/shell/lvconvert-m-raid1-degraded.sh
index 05c3e893c..c3f70855e 100644
--- a/test/shell/lvconvert-m-raid1-degraded.sh
+++ b/test/shell/lvconvert-m-raid1-degraded.sh
@@ -33,8 +33,10 @@ aux disable_dev "$dev1"
vgreduce --force --removemissing $vg
check raid_leg_status $vg $lv "DA"
-# Conversion to 2 legs must fail on degraded 2-legged raid1 LV
-not lvconvert -y -m1 $vg/$lv
+# Conversion to 2 legs does nothing on degraded 2-legged raid1 LV
+lvconvert -y -m1 $vg/$lv 2>&1 | tee out
+grep "already has 2 images" out
+# Check it remains degraded after the successful "conversion"
check raid_leg_status $vg $lv "DA"
# Repair has to succeed
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=119d5947881a8b99640d8…
Commit: 119d5947881a8b99640d81592986e508e040766d
Parent: 4667c4b35be03ad0dd6b0dc5aac65ac516af0a0b
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Wed Jul 15 10:57:05 2020 -0500
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Wed Jul 15 10:57:05 2020 -0500
integrity: allow type option to be set when changing mirrors
Allow the optional '--type raid1' to be included in the lvconvert
command when adding or removing raid images with integrity.
It does not change the meaning of the command (specifying a type
that matches the current type is redundant but generally allowed.)
---
tools/command-lines.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/command-lines.in b/tools/command-lines.in
index 0051b77b5..e38b6e62f 100644
--- a/tools/command-lines.in
+++ b/tools/command-lines.in
@@ -359,7 +359,8 @@ OP: PV ...
ID: lvconvert_raid_types
DESC: Convert LV to raid or change raid layout
DESC: (a specific raid level must be used, e.g. raid1).
-RULE: all not lv_is_locked lv_is_pvmove lv_is_raid_with_integrity
+RULE: all not lv_is_locked lv_is_pvmove
+RULE: lv_is_raid_with_integrity not --stripes_long --stripesize --regionsize --interval
lvconvert --mirrors SNumber LV
OO: --regionsize RegionSize, --interval Number, --mirrorlog MirrorLog, OO_LVCONVERT