summaryrefslogtreecommitdiffstats
path: root/test/shell/vgextend-restoremissing.sh
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-03-16 13:00:05 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2012-03-16 13:00:05 +0000
commit351be15dc481a130ca880121b53f849e1053c687 (patch)
tree953399bafee31d9bc34e82166efefcfb44e1e7f1 /test/shell/vgextend-restoremissing.sh
parentcce2475889ae32e8bfff6d35dc797e6054372120 (diff)
downloadlvm2-351be15dc481a130ca880121b53f849e1053c687.tar.gz
lvm2-351be15dc481a130ca880121b53f849e1053c687.tar.xz
lvm2-351be15dc481a130ca880121b53f849e1053c687.zip
Update tests
Indent Shell improvements - use internal function for checks Use PVs in "" (LV and VG cannot have spaces) Several test very starting 'dmeventd' without annoucing it via prepade_dmeventd. Fix some of test actually.
Diffstat (limited to 'test/shell/vgextend-restoremissing.sh')
-rw-r--r--test/shell/vgextend-restoremissing.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/shell/vgextend-restoremissing.sh b/test/shell/vgextend-restoremissing.sh
index ed61f789..fae68e46 100644
--- a/test/shell/vgextend-restoremissing.sh
+++ b/test/shell/vgextend-restoremissing.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
@@ -11,20 +11,20 @@
. lib/test
-
aux prepare_vg 3
+
lvcreate -m 1 -l 1 -n mirror $vg
lvchange -a n $vg/mirror
-lvcreate -l 1 -n lv1 $vg $dev1
+lvcreate -l 1 -n lv1 $vg "$dev1"
# try to just change metadata; we expect the new version (with MISSING_PV set
# on the reappeared volume) to be written out to the previously missing PV
-aux disable_dev $dev1
+aux disable_dev "$dev1"
lvremove $vg/mirror
-aux enable_dev $dev1
+aux enable_dev "$dev1"
not vgck $vg 2>&1 | tee log
grep "missing 1 physical volume" log
not lvcreate -m 1 -l 1 -n mirror $vg # write operations fail
-vgextend --restore $vg $dev1 # restore the missing device
+vgextend --restore $vg "$dev1" # restore the missing device
vgck $vg
lvcreate -m 1 -l 1 -n mirror $vg