From 831ce3cda941f02556dd8c4a407754397df17997 Mon Sep 17 00:00:00 2001 From: Jonathan Brassow Date: Mon, 15 Oct 2012 15:43:15 -0500 Subject: [PATCH] TEST: Re-add testing of lvconvert-raid for kernels < 3.2 I'm not sure what 'BUG's were being encountered when the restriction to limit lvconvert-raid.sh tests to kernels > 3.2 was added. I do know that there were BUG's that could be triggered when testing snapshots and some of the earliest DM RAID available in the kernel. I've taken out the 3.2 kernel restriction and added a dm-raid >= 1.2 restriction instead. This will allow the test to run on patched production kernels. --- test/shell/lvconvert-raid.sh | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/test/shell/lvconvert-raid.sh b/test/shell/lvconvert-raid.sh index 4fa766d5b..59c8bdb8f 100644 --- a/test/shell/lvconvert-raid.sh +++ b/test/shell/lvconvert-raid.sh @@ -22,8 +22,7 @@ get_image_pvs() { ######################################################## # MAIN ######################################################## -aux target_at_least dm-raid 1 1 0 || skip -aux kernel_at_least 3 2 0 || skip +aux target_at_least dm-raid 1 2 0 || skip # 9 PVs needed for RAID10 testing (3-stripes/2-mirror - replacing 3 devs) aux prepare_pvs 9 80 @@ -33,8 +32,8 @@ vgcreate -c n -s 256k $vg $(cat DEVICES) # RAID1 convert tests ########################################### for under_snap in false true; do -for i in 1 2 3 4; do - for j in 1 2 3 4; do +for i in 1 2 3; do + for j in 1 2 3; do if [ $i -eq 1 ]; then from="linear" else @@ -121,17 +120,6 @@ check linear $vg $lv2 # FIXME: ensure no residual devices lvremove -ff $vg -# 3-way to linear/2-way -lvcreate --type raid1 -m 2 -l 2 -n $lv1 $vg -aux wait_for_sync $vg $lv1 -# FIXME: Can't split off a RAID1 from a RAID1 yet -# 'should' results in "warnings" -should lvconvert --splitmirrors 2 -n $lv2 $vg/$lv1 -#check linear $vg $lv1 -#check lv_exists $vg $lv2 -# FIXME: ensure no residual devices -lvremove -ff $vg - ########################################### # RAID1 split + trackchanges / merge ########################################### -- 2.43.5