1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/test
Milan Broz 980d2d8683 Fix handling of partial VG for lvm1 format metadata
If some lvm1 device is missing, lvm fails on all operations
# vgcfgbackup -f bck -P vg_test
  Partial mode. Incomplete volume groups will be activated read-only.
  3 PV(s) found for VG vg_test: expected 4
  PV segment VG free_count mismatch: 152599 != 228909
  PV segment VG extent_count mismatch: 152600 != 228910
  Internal error: PV segments corrupted in vg_test.
  Volume group "vg_test" not found

Allow loading of lvm1 partial VG by allocating "new" missing PV,
which covers lost space. Also this fake mising PV inform code
that it is partial VG.

https://bugzilla.redhat.com/show_bug.cgi?id=501390
2010-09-22 13:45:21 +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 Attempt to fix buildbot failure in t-lvconvert-mirror.sh due to failing to 2010-08-17 22:01:41 +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 Add some v1 to v2 metadata upgrade testing. 2010-08-16 23:21:20 +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 Verify that pvcreate --dataalignment really does override the topology 2010-08-21 15:43:45 +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 Fix handling of partial VG for lvm1 format metadata 2010-09-22 13:45:21 +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 Do not run singlenode clvmd tests if support for singlenode not compiled in. 2010-08-27 08:52:54 +00:00