Tizen 2.1 base
[external/device-mapper.git] / test / t-lvconvert-repair-transient.sh
1 #!/bin/bash
2 # Copyright (C) 2008 Red Hat, Inc. All rights reserved.
3 #
4 # This copyrighted material is made available to anyone wishing to use,
5 # modify, copy, or redistribute it subject to the terms and conditions
6 # of the GNU General Public License v.2.
7 #
8 # You should have received a copy of the GNU General Public License
9 # along with this program; if not, write to the Free Software Foundation,
10 # Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
11
12 . ./test-utils.sh
13
14 prepare_vg 5
15
16 exit 200 # this breaks upstream .33 and RHEL6 kernel :(
17
18 # fail multiple devices
19
20 lvcreate -m 3 --ig -L 1 -n 4way $vg
21 disable_dev $dev2 $dev4
22 mkfs.ext3 $DM_DEV_DIR/$vg/4way
23 enable_dev $dev2 $dev4
24 echo n | lvconvert --repair $vg/4way 2>&1 | tee 4way.out
25 lvs -a -o +devices | not grep unknown
26 vgreduce --removemissing $vg
27 check mirror $vg 4way
28 lvchange -a n $vg/4way