Dave Wysochanski
6ce652e3ec
Add pvcreate tests to verify failure on md array detection.
2008-07-29 21:05:20 +00:00
Dave Wysochanski
65a431fe1f
Refactor pvcreate - simplify return codes.
2008-07-25 14:59:51 +00:00
Dave Wysochanski
3cf01067cf
Refactor pvcreate - --force parameter.
2008-07-25 14:36:55 +00:00
Dave Wysochanski
1a02e2e43b
Refactor pvcreate - move uuid and restorefile options.
2008-07-25 00:30:57 +00:00
Dave Wysochanski
495a551e06
Add pvcreate tests for uuid and restorefile.
2008-07-24 17:33:40 +00:00
Dave Wysochanski
3ea8df93b1
Add more pvcreate tests to validate writing lvm2 label using --labelsector.
2008-07-21 18:50:10 +00:00
Dave Wysochanski
fa53d359d5
Only use lvm2 metadata for now.
2008-07-17 04:03:04 +00:00
Dave Wysochanski
4833ac3d3d
Update pvcreate and vgsplit tests.
...
Add more pvcreate tests.
Start handling lvm1 and lvm2 metadata and metadatacopies=0,1.
2008-07-17 03:17:01 +00:00
Dave Wysochanski
d2edd6ac07
Add pvcreate sanity tests, check for label_write() failure in _text_pv_write().
...
Failure to check for label_write() return code caused the following test
to indicate it passed when it really failed:
pvcreate rejects labelsector > 1000000000000
2008-07-16 21:32:38 +00:00
Alasdair Kergon
5556819ac8
tweak lcov configuration/makefiles
2008-06-27 19:24:17 +00:00
Dave Wysochanski
937a25249f
Test script cleanup.
2008-06-25 16:51:26 +00:00
Zdenek Kabelac
5f2c195933
Improve/Fix read ahead 'auto' calculation for stripe_size
...
Fix lvchange output for -r auto setting if auto is already set
Add testcase for read ahead
2008-06-18 11:32:14 +00:00
Dave Wysochanski
3a152aea38
Add simple test case to repro pvs segfault with duplicate vgnames.
2008-06-09 15:31:58 +00:00
Jim Meyering
644d83fb04
* lvm-utils.sh (init_root_dir_): Correct a diagnostic.
...
Author: Jim Meyering <meyering@redhat.com>
2008-06-06 13:48:57 +00:00
Dave Wysochanski
505e6bc117
Add test for rhbz440405 - lvconvert -m0 fails incorrectly if all PEs allocated.
2008-04-23 18:27:59 +00:00
Dave Wysochanski
029d4de4be
Update test function _check_{vg|lv|pv}_field to aid in test debug.
...
Author: Dave Wysochanski <dwysocha@redhat.com>
2008-04-23 13:02:03 +00:00
Dave Wysochanski
657d4df010
Fix vgsplit and vgmerge tests for updated lv counting.
2008-04-11 14:06:16 +00:00
Dave Wysochanski
6920681cab
Update vgsplit test to verify loosening of active LV restriction.
...
This and prior 2 commits resolve Red Hat bz 252041:
Ability to vgsplit an active Volume Group where the split involves only inactive LVs
2008-04-10 21:38:52 +00:00
Alasdair Kergon
3a370b7350
more pre-release cleanup
2008-04-10 19:59:43 +00:00
Dave Wysochanski
55ea8590ae
Update vgsplit tests that count LVs for adjusted LV counting.
2008-04-10 18:55:40 +00:00
Dave Wysochanski
ec49b413c6
Fix lvm tool exit code display in some tests.
2008-04-10 01:06:48 +00:00
Dave Wysochanski
d37beb92db
Add vgsplit tests to verify mirror is not moved unnecessarily.
2008-04-09 21:10:13 +00:00
Dave Wysochanski
eec663aa3b
Fix vgsplit to only move hidden 'snapshotN' LVs when necessary.
...
This bug has been around for a long time as far as I can tell.
Without this fix, a vgsplit would unconditionally move the
'hidden/internal' snapshot LVs, and result in corrupted metadata
in the following case:
vg1: contains lv1, lv1snap, both on pvset1
vg1: contains lv2, on pvset2
"vgsplit vg1 vg2 pvset2"
would result in "snapshot0" hidden LV being moved to vg2, and
the origin and cow being left in vg1. The tools detect the
corruption in vg2, but not in vg1.
2008-04-09 20:56:06 +00:00
Dave Wysochanski
f2696211dc
Update vgsplit tests for lvnames on the cmdline.
2008-04-09 14:47:34 +00:00
Milan Broz
d2901a62a4
Add validation of LV name to pvmove -n.
2008-04-04 11:59:31 +00:00
Dave Wysochanski
d0bf2f3fa0
Fix lvresize to dump stack if vg_lock_and_read() fails.
...
Necessary because vg_lock_and_read() may fail silently if the vg_check_status() call fails.
Also add lvresize tests.
2008-04-02 12:17:30 +00:00
Dave Wysochanski
a16d7d46dd
Enhance test debugging by updating verbose mode of check_*_field_ functions.
...
Author: Dave Wysochanski <dwysocha@redhat.com>
2008-03-28 18:02:22 +00:00
Dave Wysochanski
4f618eba00
Add vgmerge tests.
2008-03-26 18:03:35 +00:00
Dave Wysochanski
c206c19c19
Add vgsplit tests to verfy attributes of new VG match source VG.
...
Author: Dave Wysochanski <dwysocha@redhat.com>
2008-03-23 15:40:35 +00:00
Dave Wysochanski
8a4c2b13bd
Fixup vgsplit tests in preparation for vgsplit changes.
2008-03-21 22:00:29 +00:00
Dave Wysochanski
dff4e43269
Update vgsplit tests to execute twice (existing and new VG as destination).
2008-03-21 21:14:38 +00:00
Milan Broz
94d271ff7b
Add metadata test for escaping double quotes in device names (bz431474).
2008-03-12 17:34:58 +00:00
Dave Wysochanski
3fa875dd79
Update vgsplit tests.
...
- Add validation on pv_count, lv_count, and snap_count after split
NOTE: Some of these counts are misleading. If you compare "lvs" output
with these counts you will be left scratching your head what a "logical volume"
really is. ;-)
2008-03-04 22:49:00 +00:00
Dave Wysochanski
da73d34264
Update vgsplit tests.
...
- Divide into 'usage' and 'operation' tests.
- Add operation tests for specific LV types.
2008-03-04 19:48:32 +00:00
Dave Wysochanski
8f613692fd
Add vgsplit test to check failure when PV not in source volume group.
2008-02-29 00:09:21 +00:00
Dave Wysochanski
c383a8717b
Fix t-vgsplit-operation.sh lv2-3 definitions to include test signature.
2008-02-28 17:39:47 +00:00
Dave Wysochanski
81625d8f65
Fix t-vgsplit-operation.sh lv1 definition to include test signature.
2008-02-28 16:48:09 +00:00
Alasdair Kergon
4e9083db10
Fix mirror log name construction during lvconvert. (2.02.30)
...
Make monitor_dev_for_events recurse through the stack of LVs.
Clean up some more compiler warnings.
Add mirror names test script.
2008-01-31 12:19:36 +00:00
Alasdair Kergon
eb63c265db
.
2008-01-26 00:25:45 +00:00
Dave Wysochanski
c1df0103c2
Fix vgsplit tests 12-13
2008-01-22 03:30:14 +00:00
Dave Wysochanski
c1f2ce3938
Fix vgsplit - print different message on successful split of existing / new vg
...
Fix vgsplit - fix a couple error paths that forgot to call unlock_vg
Update vgsplit test cases
2008-01-22 03:25:45 +00:00
Dave Wysochanski
1ce224d13f
Fix vgsplit - print error if vgcreate option given w/existing vg destination
...
Fix vgsplit - reject split if metadata types or clustered attributes differ
Fix vgsplit - remove physicalextentsize option
Add vgsplit test cases
2008-01-22 02:48:53 +00:00
Dave Wysochanski
9f2d46513c
Add a test case for 'vgreduce --removemissing' on stacked mirror
2008-01-17 18:29:36 +00:00
Dave Wysochanski
378bbe63f3
More test script fixes.
2008-01-17 18:05:57 +00:00
Dave Wysochanski
cea51b32fc
Minor test fix
2008-01-17 15:56:53 +00:00
Dave Wysochanski
5aed321d7b
Fix descriptions in the newly added test cases
2008-01-17 02:20:48 +00:00
Dave Wysochanski
9e6c1edc88
Fix 'make check' runnable with recent versions of dmsetup.
...
Fix 'make check' to use DMDIR to check DM_DEV_DIR support in dmsetup.
Add basic test cases for mirrored LV.
Add basic test cases for lvconvert mirror.
Add basic test cases for pvmove.
Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Add new vgsplit and vgmerge tests.
Dave Wysochanski <dwysocha@redhat.com>
2008-01-16 21:21:22 +00:00
Dave Wysochanski
d865615e9a
Create vgs_are_compatible() fn to check whether vgs are compatible for merging.
...
Add new vgmerge and vgsplit tests to check rejection of incompatible vgs.
Cleanup comments.
Bugzilla: bz251992
---
lib/metadata/metadata-exported.h | 3 +
lib/metadata/metadata.c | 89 +++++++++++++++++++++++++++++++++-
test/t-vgmerge-usage.sh | 101 +++++++++++++++++++++++++++++++++++++++
test/t-vgsplit-operation.sh | 20 +++++++
tools/vgmerge.c | 69 --------------------------
tools/vgsplit.c | 5 -
6 files changed, 215 insertions(+), 72 deletions(-)
2008-01-16 19:54:39 +00:00
Dave Wysochanski
8868a4ffc2
Move more parameter validation into the library.
...
Update vgrename to call validate_vg_rename_params().
Fix vgcreate and vgsplit default arguments by adding defaults parameter to
fill_vg_create_params().
Add t-vgrename-usage.sh test.
Bugzilla: bz251992
---
tools/toollib.c | 32 ++++++++------------------------
tools/toollib.h | 5 ++---
tools/vgcreate.c | 35 +++++++++++++++++++++--------------
tools/vgrename.c | 35 ++++++-----------------------------
tools/vgsplit.c | 21 ++++++++++++++-------
5 files changed, 51 insertions(+), 77 deletions(-)
2008-01-15 22:56:30 +00:00
Dave Wysochanski
b8daca8570
Allow vgcreate options as input to vgsplit when new vg is split destination.
2008-01-14 21:07:58 +00:00