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
aux lvmconf 'allocation/maximise_cling = 0'
15
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
17
# not required, just testing
18
aux pvcreate --metadatacopies 0 $dev1
20
vgcreate -c n $vg $(cat DEVICES)
21
pvchange --addtag fast $(cat DEVICES)
23
# 3 stripes with 3 PVs (selected by tag, @fast) is fine
24
lvcreate -l3 -i3 $vg @fast
26
# too many stripes(4) for 3 PVs
27
not lvcreate -l4 -i4 $vg @fast
29
# 2 stripes is too many with just one PV
30
not lvcreate -l2 -i2 $vg $DM_DEV_DIR/mapper/pv1
33
lvcreate -l1 -m1 $vg @fast
35
# lvcreate mirror w/corelog
36
lvcreate -l1 -m2 --corelog $vg @fast
38
# lvcreate mirror w/no free PVs
39
not lvcreate -l1 -m2 $vg @fast
41
# lvcreate mirror (corelog, w/no free PVs)
42
not lvcreate -l1 -m3 --corelog $vg @fast
44
# lvcreate mirror with a single PV arg
45
not lvcreate -l1 -m1 --corelog $vg $dev1