1# Copyright (C) 2008 Red Hat, Inc. All rights reserved. 2# 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. 6# 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 10 11. ./test-utils.sh 12 13aux prepare_pvs 3 14# not required, just testing 15aux pvcreate --metadatacopies 0 $dev1 16 17vgcreate $vg $devs 18pvchange --addtag fast $devs 19 20# 3 stripes with 3 PVs (selected by tag, @fast) is fine 21lvcreate -l3 -i3 $vg @fast 22 23# too many stripes(4) for 3 PVs 24not lvcreate -l4 -i4 $vg @fast 25 26# 2 stripes is too many with just one PV 27not lvcreate -l2 -i2 $vg $G_dev_/mapper/pv1 28 29# lvcreate mirror 30lvcreate -l1 -m1 $vg @fast 31 32# lvcreate mirror w/corelog 33lvcreate -l1 -m2 --corelog $vg @fast 34 35# lvcreate mirror w/no free PVs 36not lvcreate -l1 -m2 $vg @fast 37 38# lvcreate mirror (corelog, w/no free PVs) 39not lvcreate -l1 -m3 --corelog $vg @fast 40 41# lvcreate mirror with a single PV arg 42not lvcreate -l1 -m1 --corelog $vg $dev1 43