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
16 pvcreate
--metadatacopies 0 $dev2
17 pvcreate
--metadatacopies 0 $dev3
19 pvcreate
--metadatacopies 0 $dev5
21 vgcreate
-c n
"$vg" $devs
22 lvcreate
-n $lv -l 1 -i5 -I256 $vg
31 # check that PVs without metadata don't cause too many full device rescans (bz452606)
33 pvcreate
--metadatacopies $mdacp $devs
36 lvcreate
-n $lv1 -l 2 -i5 -I256 $vg
37 lvcreate
-n $lv2 -m2 -l 2 $vg
39 lvchange
-an $vg/$lv1 >out
$mdacp 2>&1
40 lvchange
-an $vg/$lv2 >>out
$mdacp 2>&1
43 lvchange
-vvvv -an $vg/$lv1 >out
$mdacp 2>&1
44 lvchange
-vvvv -an $vg/$lv2 >>out
$mdacp 2>&1
45 eval run
$mdacp=$
(wc -l <out
$mdacp)
48 not
grep "Cached VG .* incorrect PV list" out0
50 # some M1 metadata tests
54 vgcreate
-M1 $vg $dev1 $dev2 $dev3