1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/test
Mike Snitzer b123a82d73 Change default alignment of pe_start to 1MB.
The new standard in the storage industry is to default alignment of data
areas to 1MB.  fdisk, parted, and mdadm have all been updated to this
default.

Update LVM to align the PV's data area start (pe_start) to 1MB.  This
provides a more useful default than the previous default of 64K (which
generally ended up being a 192K pe_start once the first metadata area
was created).

Before this patch:
# pvs -o name,vg_mda_size,pe_start
  PV         VMdaSize  1st PE
  /dev/sdd     188.00k 192.00k

After this patch:
# pvs -o name,vg_mda_size,pe_start
  PV         VMdaSize  1st PE
  /dev/sdd    1020.00k   1.00m

The heuristic for setting the default alignment for LVM data areas is:
- If the default value (1MB) is a multiple of the detected alignment
  then just use the default.
- Otherwise, use the detected value.

In practice this means we'll almost always use 1MB -- that is unless:
- the alignment was explicitly specified with --dataalignment
- or MD's full stripe width, or the {minimum,optimal}_io_size exceeds
  1MB
- or the specified/detected value is not a power-of-2
2010-08-12 04:11:48 +00:00
..
api Test lvm_vgname_from_{pvid|device}. 2010-05-19 11:53:30 +00:00
.gitignore Add testing framework, along with first few tests. 2007-09-18 14:00:42 +00:00
check.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
harness.c add copyright notices to new files 2010-07-28 12:20:38 +00:00
harness.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
lvm2app.sh Fix path to test/api/vgtest in nightly testsuite. 2009-09-04 14:26:16 +00:00
lvm-utils.sh Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
Makefile.in Run tests in alphabetical (and thus stable across machines) order. 2010-05-12 11:59:46 +00:00
mkdtemp Clean-up and wording changes; add copyright notices. 2007-09-18 14:02:22 +00:00
not.c add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-000-basic.sh Visually better align lines which are executed as a result of true 2010-08-02 13:18:01 +00:00
t-activate-missing.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-activate-partial.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-covercmd.sh Require --restorefile when using pvcreate --uuid. 2010-08-12 04:08:59 +00:00
t-fsadm.sh Refactor the test utilities, dropping the legacy test-lib.sh and curtailing 2010-04-07 14:46:26 +00:00
t-inconsistent-metadata.sh Test failed commit of mda on new pv - failed vgextend. 2010-07-07 14:43:57 +00:00
t-listings.sh Fix pvseg report for orphan PVs and other devices. 2009-04-21 12:59:18 +00:00
t-lock-blocking.sh Minor speedup of lock test - 2010-08-02 13:23:01 +00:00
t-lvchange-mirror.sh Explode t-mirror-basic into a number of smaller tests. 2010-04-12 19:16:24 +00:00
t-lvconvert-mirror-basic-0.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-lvconvert-mirror-basic-1.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-lvconvert-mirror-basic-2.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-lvconvert-mirror-basic-3.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-lvconvert-mirror-basic.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-lvconvert-mirror.sh A fairly extensive refactor of the mirror testing code. The exhaustive 2010-05-12 10:08:35 +00:00
t-lvconvert-repair-dmeventd.sh Revert the "repeat failed tests with -vvvv" feature. Instead, dump debug logs 2010-05-12 11:23:16 +00:00
t-lvconvert-repair-policy.sh Account for mirror transient status when doing lvconvert --repair. 2010-05-24 15:32:20 +00:00
t-lvconvert-repair-replace.sh Allow incomplete mirror restore in lvconvert --repair upon insufficient space. 2010-04-14 13:51:58 +00:00
t-lvconvert-repair-transient.sh t-lvconvert-repair-transient hangs on .33 and on RHEL6 kernel -> disable 2010-05-24 16:33:21 +00:00
t-lvconvert-repair.sh Account for mirror transient status when doing lvconvert --repair. 2010-05-24 15:32:20 +00:00
t-lvcreate-mirror.sh A fairly extensive refactor of the mirror testing code. The exhaustive 2010-05-12 10:08:35 +00:00
t-lvcreate-operation.sh Refactor the test utilities, dropping the legacy test-lib.sh and curtailing 2010-04-07 14:46:26 +00:00
t-lvcreate-pvtags.sh Refactor the test utilities, dropping the legacy test-lib.sh and curtailing 2010-04-07 14:46:26 +00:00
t-lvcreate-usage.sh Fix t-lvcreate-usage, as lvcreate ... -i1 no longer prints "Redundant stripes 2010-04-13 06:25:08 +00:00
t-lvextend-percent-extents.sh In testsuite, catch also failures that happen in the middle of a pipeline. 2010-02-17 15:41:28 +00:00
t-lvm-init.sh Add t-lvm-init.sh - test lvm init routines and error paths. 2009-07-08 18:14:47 +00:00
t-lvmcache-exercise.sh Update a bunch of tests to use functionality from test-utils.sh. 2008-09-29 16:02:50 +00:00
t-lvresize-mirror.sh Explode t-mirror-basic into a number of smaller tests. 2010-04-12 19:16:24 +00:00
t-lvresize-usage.sh Update a bunch of tests to use functionality from test-utils.sh. 2008-09-29 16:02:50 +00:00
t-mdata-strings.sh Fix whitespace in t-mdata-strings.sh 2009-04-03 14:23:17 +00:00
t-metadata-balance.sh Add --force to pvchange, and allow override of prompt involving metadataignore. 2010-07-07 19:14:57 +00:00
t-metadata.sh Explicitly use non-clustered vgcreate in test. 2009-12-28 18:33:04 +00:00
t-mirror-names.sh Avoid spurious skips in the testsuite due to obsoleted 2010-04-07 16:00:19 +00:00
t-mirror-vgreduce-removemissing.sh Avoid spurious skips in the testsuite due to obsoleted 2010-04-07 16:00:19 +00:00
t-nomda-missing.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-pool-labels.sh Fix t-pool-labels to pass again after the vgdisplay error return fix from 2008-11-10 13:44:01 +00:00
t-pv-range-overflow.sh More test conversions by jstava. Make check still passes. 2008-10-06 16:47:07 +00:00
t-pvchange-usage.sh Add shell function to trim spaces. 2010-08-02 13:20:50 +00:00
t-pvcreate-metadata0.sh More test conversions by jstava. Make check still passes. 2008-10-06 16:47:07 +00:00
t-pvcreate-operation-md.sh Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
t-pvcreate-operation.sh Require --restorefile when using pvcreate --uuid. 2010-08-12 04:08:59 +00:00
t-pvcreate-usage.sh Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
t-pvmove-basic.sh Visually better align lines which are executed as a result of true 2010-08-02 13:18:01 +00:00
t-pvremove-usage.sh In testsuite, catch also failures that happen in the middle of a pipeline. 2010-02-17 15:41:28 +00:00
t-read-ahead.sh Refactor the test utilities, dropping the legacy test-lib.sh and curtailing 2010-04-07 14:46:26 +00:00
t-snapshot-merge.sh Require logical volume(s) to be explicitly named for lvconvert --merge. 2010-08-03 20:22:31 +00:00
t-snapshots-of-mirrors.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-tags.sh Add nightly test to cover vg/lv tags add/delete. 2010-02-16 17:49:18 +00:00
t-topology-support.sh Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
t-unknown-segment.sh Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
t-unlost-pv.sh Allow metadata correction even when PVs are missing. 2009-06-10 20:17:32 +00:00
t-vgcfgbackup-usage.sh Require --restorefile when using pvcreate --uuid. 2010-08-12 04:08:59 +00:00
t-vgchange-usage.sh Add get_{pv|vg|lv}_field() nightly test helper functions. 2010-02-16 17:48:46 +00:00
t-vgcreate-usage.sh Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
t-vgextend-usage.sh Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
t-vgmerge-operation.sh Explicitly use non-clustered vgcreate in test. 2009-12-28 18:33:04 +00:00
t-vgmerge-usage.sh Explicitly use non-clustered vgcreate in test. 2009-12-28 18:33:04 +00:00
t-vgreduce-usage.sh Explicitly use non-clustered vgcreate in test. 2009-12-28 18:33:04 +00:00
t-vgrename-usage.sh Add alphabetical vgname ordering tests for vgsplit, vgmerge, vgrename. 2009-09-02 18:31:11 +00:00
t-vgsplit-operation.sh Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
t-vgsplit-stacked.sh add copyright notices to new files 2010-07-28 12:20:38 +00:00
t-vgsplit-usage.sh Fix vgsplit test to require -M on ordering of vgnames. 2009-09-02 19:38:53 +00:00
test-utils.sh Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00