diff options
Diffstat (limited to 'test/shell/lvchange-partial.sh')
-rw-r--r-- | test/shell/lvchange-partial.sh | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/shell/lvchange-partial.sh b/test/shell/lvchange-partial.sh index fe642d4..7913811 100644 --- a/test/shell/lvchange-partial.sh +++ b/test/shell/lvchange-partial.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright (C) 2012 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, @@ -7,15 +8,19 @@ # # 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + -. lib/test +SKIP_WITH_LVMPOLLD=1 -aux target_at_least dm-raid 1 1 0 || skip +. lib/inittest -aux prepare_vg 2 +aux prepare_vg 4 -lvcreate --type raid1 -m 1 -l 2 -n $lv1 $vg +TYPE=raid1 +aux have_raid 1 3 0 || TYPE=mirror + +lvcreate -aey --type $TYPE -m 1 -l 2 -n $lv1 $vg lvchange -an $vg/$lv1 aux disable_dev "$dev1" @@ -64,3 +69,6 @@ not lvchange --zero y $vg/$lv1 not lvchange --resync -ay $vg/$lv1 not lvchange --resync --addtag foo $vg/$lv1 +aux enable_dev "$dev1" + +vgremove -ff $vg |