1 # Copyright (C) 2008 Red Hat, Inc. All rights reserved.
3 # This copyrighted material is made available to anyone wishing to use,
4 # modify, copy, or redistribute it subject to the terms and conditions
5 # of the GNU General Public License v.2.
7 # You should have received a copy of the GNU General Public License
8 # along with this program; if not, write to the Free Software Foundation,
9 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14 # not required, just testing
15 aux pvcreate --metadatacopies 0 $dev1
18 pvchange --addtag fast $devs
20 # 3 stripes with 3 PVs (selected by tag, @fast) is fine
21 lvcreate -l3 -i3 $vg @fast
23 # too many stripes(4) for 3 PVs
24 not lvcreate -l4 -i4 $vg @fast
26 # 2 stripes is too many with just one PV
27 not lvcreate -l2 -i2 $vg $G_dev_/mapper/pv1
30 lvcreate -l1 -m1 $vg @fast
32 # lvcreate mirror w/corelog
33 lvcreate -l1 -m2 --corelog $vg @fast
35 # lvcreate mirror w/no free PVs
36 not lvcreate -l1 -m2 $vg @fast
38 # lvcreate mirror (corelog, w/no free PVs)
39 not lvcreate -l1 -m3 --corelog $vg @fast
41 # lvcreate mirror with a single PV arg
42 not lvcreate -l1 -m1 --corelog $vg $dev1