From 3c966e637fe1bec587ceb9ad13aa009db64b4f8e Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Wed, 22 Aug 2018 17:11:03 +0200 Subject: [PATCH] test: add striped -> raid0 test script --- test/shell/lvconvert-striped-raid0.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/shell/lvconvert-striped-raid0.sh diff --git a/test/shell/lvconvert-striped-raid0.sh b/test/shell/lvconvert-striped-raid0.sh new file mode 100644 index 000000000..5cfb792a5 --- /dev/null +++ b/test/shell/lvconvert-striped-raid0.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# Copyright (C) 2018 Red Hat, Inc. All rights reserved. +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions +# of the GNU General Public License v.2. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + +SKIP_WITH_LVMPOLLD=1 + +. lib/inittest + +aux have_raid 1 7 0 || skip + +aux prepare_vg 3 16 + +lvcreate -aey --type striped -i 3 -l3 -n $lv $vg +lvconvert -y --type raid0_meta $vg/$lv +check lv_field $vg/$lv segtype "raid0_meta" +vgremove -ff $vg