public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-pvcreate-usage.sh
@ 2011-03-06 18:28 mbroz
0 siblings, 0 replies; 4+ messages in thread
From: mbroz @ 2011-03-06 18:28 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz@sourceware.org 2011-03-06 18:28:09
Modified files:
test : t-pvcreate-usage.sh
Log message:
Fix test for 8k page (fails on Sparc architecture).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.19&r2=1.20
--- LVM2/test/t-pvcreate-usage.sh 2011/02/25 14:12:14 1.19
+++ LVM2/test/t-pvcreate-usage.sh 2011/03/06 18:28:09 1.20
@@ -106,9 +106,10 @@
check pv_field $dev1 pe_start 200.00k
# metadata area start is aligned according to pagesize
-# pagesize should be 64k or 4k ...
if [ $PAGESIZE -eq 65536 ] ; then
pv_align="192.50k"
+elif [ $PAGESIZE -eq 8192 ] ; then
+ pv_align="136.50k"
else
pv_align="133.00k"
fi
^ permalink raw reply [flat|nested] 4+ messages in thread
* LVM2/test t-pvcreate-usage.sh
@ 2011-02-21 12:37 prajnoha
0 siblings, 0 replies; 4+ messages in thread
From: prajnoha @ 2011-02-21 12:37 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha@sourceware.org 2011-02-21 12:37:34
Modified files:
test : t-pvcreate-usage.sh
Log message:
Temporarily disable 'convert a VG from lvm2 to lvm1 format' test until a known issue is resolved.
Otherwise we get an error:
PV segment VG free_count mismatch: 32 != 33
PV segment VG extent_count mismatch: 32 != 33
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.17&r2=1.18
--- LVM2/test/t-pvcreate-usage.sh 2011/01/05 00:16:20 1.17
+++ LVM2/test/t-pvcreate-usage.sh 2011/02/21 12:37:33 1.18
@@ -133,18 +133,18 @@
#COMM 'pv with LVM1 compatible data alignment can be convereted'
#compatible == LVM1_PE_ALIGN == 64k
-pvcreate --dataalignment 256k $dev1
-vgcreate -s 1m $vg $dev1
-vgconvert -M1 $vg
-vgconvert -M2 $vg
-check pv_field $dev1 pe_start 256.00k
-vgremove $vg
+#pvcreate --dataalignment 256k $dev1
+#vgcreate -s 1m $vg $dev1
+#vgconvert -M1 $vg
+#vgconvert -M2 $vg
+#check pv_field $dev1 pe_start 256.00k
+#vgremove $vg
#COMM 'pv with LVM1 incompatible data alignment cannot be convereted'
pvcreate --dataalignment 10k $dev1
vgcreate -s 1m $vg $dev1
not vgconvert -M1 $vg
-vgremove $vg
+#vgremove $vg
#COMM 'vgcfgrestore allows pe_start=0'
#basically it produces nonsense, but it tests vgcfgrestore,
^ permalink raw reply [flat|nested] 4+ messages in thread
* LVM2/test t-pvcreate-usage.sh
@ 2010-06-30 12:17 wysochanski
0 siblings, 0 replies; 4+ messages in thread
From: wysochanski @ 2010-06-30 12:17 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski@sourceware.org 2010-06-30 12:17:56
Modified files:
test : t-pvcreate-usage.sh
Log message:
Update pvcreate tests for --metadataignore.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.14&r2=1.15
--- LVM2/test/t-pvcreate-usage.sh 2009/10/05 20:55:57 1.14
+++ LVM2/test/t-pvcreate-usage.sh 2010/06/30 12:17:55 1.15
@@ -158,3 +158,34 @@
check_pv_field_ $dev1 pe_start 0
check_pv_field_ $dev2 pe_start 0
vgremove $vg
+
+echo test pvcreate --metadataignore
+for pv_in_vg in 1 0; do
+for mdacp in 1 2; do
+for ignore in y n; do
+ echo pvcreate --metadataignore has proper mda_count and mda_used_count
+ pvcreate --metadatacopies $mdacp --metadataignore $ignore $dev1 $dev2
+ check_pv_field_ $dev1 pv_mda_count $mdacp
+ check_pv_field_ $dev2 pv_mda_count $mdacp
+ if [ $ignore = y ]; then
+ check_pv_field_ $dev1 pv_mda_used_count 0
+ check_pv_field_ $dev2 pv_mda_used_count 0
+ else
+ check_pv_field_ $dev1 pv_mda_used_count $mdacp
+ check_pv_field_ $dev2 pv_mda_used_count $mdacp
+ fi
+ echo vgcreate has proper vg_mda_count and vg_mda_used_count
+ if [ $pv_in_vg = 1 ]; then
+ vgcreate -c n "$vg" $dev1 $dev2
+ check_vg_field_ $vg vg_mda_count $(($mdacp * 2))
+ if [ $ignore = y ]; then
+ check_vg_field_ $vg vg_mda_used_count 1
+ else
+ check_vg_field_ $vg vg_mda_used_count $(($mdacp * 2))
+ fi
+ check_vg_field_ $vg vg_mda_copies unmanaged
+ vgremove $vg
+ fi
+done
+done
+done
^ permalink raw reply [flat|nested] 4+ messages in thread
* LVM2/test t-pvcreate-usage.sh
@ 2009-02-22 19:32 mbroz
0 siblings, 0 replies; 4+ messages in thread
From: mbroz @ 2009-02-22 19:32 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz@sourceware.org 2009-02-22 19:32:29
Modified files:
test : t-pvcreate-usage.sh
Log message:
Comment out pvcreate pagesize alignment test for now.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.5&r2=1.6
--- LVM2/test/t-pvcreate-usage.sh 2009/02/22 19:00:28 1.5
+++ LVM2/test/t-pvcreate-usage.sh 2009/02/22 19:32:28 1.6
@@ -76,9 +76,9 @@
not pvcreate --dataalignment 1E $dev1
#COMM 'pvcreate always rounded up to page size for start of device'
-pvcreate --metadatacopies 0 --dataalignment 1 $dev1
+#pvcreate --metadatacopies 0 --dataalignment 1 $dev1
# amuse shell experts
-check_pv_field_ $dev1 pe_start $(($(getconf PAGESIZE)/1024))".00K"
+#check_pv_field_ $dev1 pe_start $(($(getconf PAGESIZE)/1024))".00K"
#COMM 'pvcreate sets data offset directly'
pvcreate --dataalignment 512k $dev1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-06 18:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-06 18:28 LVM2/test t-pvcreate-usage.sh mbroz
-- strict thread matches above, loose matches on Subject: below --
2011-02-21 12:37 prajnoha
2010-06-30 12:17 wysochanski
2009-02-22 19:32 mbroz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).