2 # Copyright (C) 2008 Red Hat, Inc. All rights reserved.
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.
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
16 exit 200 # this breaks upstream .33 and RHEL6 kernel :(
18 # fail multiple devices
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
28 lvchange -a n $vg/4way