summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* RAID: Add support for RAID10Jonathan Brassow2012-08-242-2/+128
| | | | | | This patch adds support for RAID10. It is not the default at this stage. The user needs to specify '--type raid10' if they would like RAID10 instead of stacked mirror over stripe.
* libdaemon: Draft logging infrastructure.Petr Rockai2012-08-081-1/+1
| | | | | | | | | | | - logging is not controlled by "levels" but by "types"; types are independent of each other... implementation of the usual "log level" user-level semantics can be simply done on top; the immediate application is enabling/disabling wire traffic logging independently of other debug data, since the former is rather bulky and can easily obscure almost everything else - all logs go to "outlets", of which we currently have 2: syslog and stderr; which "types" go to which "outlets" is entirely configurable
* TEST: Add lvmetad-test; checks --test with lvmetad.Petr Rockai2012-07-301-0/+34
|
* TEST: Conditionalize RAID tests on whether the dm-raid module existsJonathan Brassow2012-07-251-21/+23
|
* RAID: Fix segfault when attempting to replace RAID 4/5/6 deviceJonathan Brassow2012-07-241-1/+25
| | | | | | | | | | | | | | Commit 8767435ef847831455fadc1f7e8f4d2d94aef0d5 allowed RAID 4/5/6 LV to be extended properly, but introduced a regression in device replacement - a critical component of fault tolerance. When only 1 or 2 drives are being replaced, the 'area_count' needed can be equal to the parity_count. The 'area_multiple' for RAID 4/5/6 was computed as 'area_count - parity_devs', which could result in 'area_multiple' being 0. This would ultimately lead to a division by zero error. Therefore, in calc_area_multiple, it is important to take into account the number of areas that are being requested - just as we already do in _alloc_init.
* TEST: Replace old sync test/wait functions with new library functionsJonathan Brassow2012-07-243-116/+15
| | | | Generic sync test/wait functions have replaced the old mirror/raid functions.
* TEST: Add library functions for checking and waiting for syncJonathan Brassow2012-07-242-0/+57
| | | | | Add 'in_sync' and 'wait_for_sync' to test and wait for synchronization of a mirror or RAID logical volume.
* TEST (lvresize-raid): Don't run test when RAID module doesn't existJonathan Brassow2012-07-171-0/+2
| | | | Check for RAID module and skip test if not there.
* RAID: Fix extending size of RAID 4/5/6 logical volumes.Jonathan Brassow2012-06-261-0/+78
| | | | | | Reducing a RAID 4/5/6 LV or extending it with a different number of stripes is still not implemented. This patch covers the "simple" case where the LV is extended with the same number of stripes as the orginal.
* TEST (lvconvert-raid): Turn on RAID conversion testing under snapshotsJonathan Brassow2012-06-261-5/+1
|
* TEST (lvconvert-raid): localize a function variableJonathan Brassow2012-06-251-0/+1
| | | | | Function was overwriting a global variable because it used a variable of the same name without first declaring it with 'local'.
* TEST (lvcreate-raid): Allow more time for RAID arrays to syncJonathan Brassow2012-06-251-1/+1
| | | | | My machines can run very slow sometimes causing this test to fail when it would otherwise have succeeded given more time.
* gitignore: Remove redundant test dir entryAlasdair G Kergon2012-06-081-1/+0
|
* Partial activation working, expect success in tests.Peter Rajnoha2012-05-171-1/+0
|
* Re-enable tests for snapshots of mirrors.Peter Rajnoha2012-05-172-13/+0
|
* snaps of mirrors are enabledZdenek Kabelac2012-05-161-1/+2
|
* Add a (currently failing) test for RHBZ 816672.Petr Rockai2012-05-161-0/+30
|
* Add provisions to flag tests that we know will fail, without flagging the buildPetr Rockai2012-05-162-4/+24
| | | | (i.e. an expected failure).
* Remove VG/PV used in the test.Peter Rajnoha2012-05-091-0/+2
|
* Fix division by zero if PV with zero PE count is used during vgcfgrestore.Peter Rajnoha2012-05-091-0/+8
|
* Fix up-convert when mirror activation is controled by volume_list and tags.Jonathan Earl Brassow2012-05-051-1/+13
| | | | | | | | | | | | When mirrors are up-converted, a transient mirror layer is put in so that only the new devices are sync'ed. That transient layer must carry the tags of the original mirror LV, otherwise it will fail to activate when activation is regulated by lvm.conf:activation/volume_list. The conversion would then fail. The fix is to do exactly the same thing that is being done for linear -> mirror converting (lib/metadata/mirror.c:_init_mirror_log()). We copy the tags temporarily for the new LV and remove them after the activation.
* Disallow snapshots of mirror segment types.Jonathan Earl Brassow2012-05-013-2/+23
| | | | | | | | | | | Snapshots of RAID logical volumes are allowed (including "raid1"). However, snapshots of "mirror" logical volumes has been disallowed due to unsolvable issues inherent to the design. The fact that mirroring (dm-raid1.c) must stop all I/O as the result of a failure and wait for userspace intervention can lead to a circular dependency if userspace is simultaneously waiting for snapshots (on mirrors) to make an I/O update before proceeding. Various snapshot on mirror tests have been removed as a result.
* Expect failure if the reduction doesn't really happenZdenek Kabelac2012-04-241-1/+1
|
* Update testZdenek Kabelac2012-04-111-11/+75
|
* Improve test suiteZdenek Kabelac2012-03-2811-54/+58
| | | | | | | | | Add make help target. Add LVM_TEST_PARALLEL to support parallel runs of tests Work around the problem the dmsetup table/info may return error by using dmtable and dminfo function that will use 'should'. (Error happens when some concurently running process removes table entry while dmsetup command resolves table entries inside the loop.)
* Fix tests to work with vgscan --cache fixing inconsistent metadata.Peter Rajnoha2012-03-282-5/+8
|
* Improve teardown_devsZdenek Kabelac2012-03-231-8/+10
| | | | | Try to avoid start of dmeventd during vgremove if the code has any bug inside.
* Sleep longer in the test so it really dies properlyZdenek Kabelac2012-03-201-2/+7
| | | | and check for right exit code from pgrep
* Update testing scriptsZdenek Kabelac2012-03-203-106/+122
| | | | | | | | | Make the teardown really usable - it will try down to remove all the left devices even from previous test runs (the only missing piece is probably proper mdadm teardown) Add few more local vars Try to setup PATH and LD_LIBRARY_PATH just once. Try shorter sleeps.
* Update test for dmevent restartZdenek Kabelac2012-03-202-34/+32
| | | | | | | | Actually restart was failing for different reason - so pass in proper location of dmeventd for restart from lvm command and avoid using the one from /sbin location. Update pv create test with "" around path.
* Add comment about slow startup of dmeventdZdenek Kabelac2012-03-161-11/+21
| | | | | Separat lvm dumpconfig on extra line, so the shell trace output is not mixed with dump.
* Skip dmeventd restart testZdenek Kabelac2012-03-161-0/+6
| | | | | If dmevendt is not in /sbin, do not try to run restarting test. FIXME: add some workaround for testing.
* Regression fix kernel version checkZdenek Kabelac2012-03-161-1/+1
| | | | got changed improperly with large update patch.
* Longer sleep after clvmd startZdenek Kabelac2012-03-161-3/+3
|
* Switch condition for dmeventd checkZdenek Kabelac2012-03-161-1/+1
|
* Update testsZdenek Kabelac2012-03-1689-1964/+1901
| | | | | | | | | | | | | Indent Shell improvements - use internal function for checks Use PVs in "" (LV and VG cannot have spaces) Several test very starting 'dmeventd' without annoucing it via prepade_dmeventd. Fix some of test actually.
* Update test.sh check.sh utils.sh get.shZdenek Kabelac2012-03-164-368/+342
| | | | | | | | | | | | Indent Better shell usage Function simplification More usage of 'get' functions Don't use valgrind tracing for check and get function (faster) Update shell debugging (PS4, better stacktrace) Support paths with spaces Export SCRIPTNAME for external usage Watch for dmeventd unexpectedly started during test
* Update aux.sh lvmwrapperZdenek Kabelac2012-03-162-208/+235
| | | | | | | | | | | | | | | | | | | Indent Add valgrind support: env LVM_TEST_VALGRIND={0123} (the higher level, more commands tested) env LVM_TEST_CLVMD=1 runs clvmd within valgrind. env VALGRIND script name executed for each lvm command (def. is valg). Smarted teardown - should minimize occurence of left dev entries (using dmsetup remove -f only as last resort) sort removed devices by open count before actual removal Use "" around string that may contain spaces. Set log/verbose and activation/retry_deactivation to defined value. Remove debug.log after successful lvm command (easier to check output).
* Test suite skip md_detectionZdenek Kabelac2012-03-161-0/+1
| | | | | Not normally needed - lets' enable it only for test that really needs it.
* Allow to use also special prefixed names for testZdenek Kabelac2012-03-161-2/+2
| | | | | | | | | | | | | | | | | Currently we could not test special prefixes in our test suite. As teardown will not find such device and basicaly busyloops here, as at cannot remove such names. This patch adds possibity to use: vgcreate V_$vg1 $dev Note: you still need to use $PREFIX somewhere in the name. (And of course, it's really bad idea to use $PREFIX (=LVMTEST) for normally used LVs) The only purpose of this patch is to allow testing cluster with special vg names that begins with V_ , P_....
* Relax the active-minor test a bit.Petr Rockai2012-03-161-1/+1
|
* Fix a regression in handling --major/--minor arguments to lvcreate & lvchange,Petr Rockai2012-03-161-0/+19
| | | | by allowing arg_int_value to be used with groupable options.
* Fix name conflicts that prevent down-converting RAID1 when specifying a deviceJonathan Earl Brassow2012-03-151-0/+7
| | | | | | | | | | | | | When down-converting a RAID1 device, it is the last device that is extracted and removed when the user does not specify a particular device. However, when a device is specified (and it is not the last), the device is removed and the remaining sub-LVs are "shifted down" to fill the hole. This cause problems when resuming the LV because if the shifted devices were resumed (and thus renamed) before the sub-LV being extracted, there would be a name conflict. The solution is to resume the extracted sub-LVs first so that they can be properly renamed preventing a possible conflict. This addresses bug 801967.
* Use proper "" for absolute pathsZdenek Kabelac2012-03-141-11/+11
|
* Improve harness codeZdenek Kabelac2012-03-121-21/+85
| | | | | | | Support timestamping with harness - using VERBOSE=2 Fix also logging in several situation (i.e. continue logging multiple test in VERBOSE mode, do not coredump with empty output).
* update reworded stringAlasdair Kergon2012-03-061-1/+1
|
* Change pvscan --cache syntaxAlasdair Kergon2012-03-061-1/+1
|
* Add test for name mangling functionality.Peter Rajnoha2012-03-051-0/+230
|
* Update thin test for thin_checkZdenek Kabelac2012-03-041-4/+34
| | | | | | | | | Test if thin_check is present in system and disable its use, when its missing. Add testing for poolmetadatasize. FIXME: Allocation policy for metadata pool might need some relaxing. (For now it needs to put all block on one PV.)
* Speedup test run by a few minutesZdenek Kabelac2012-03-048-162/+134
| | | | | | | | | | | | Reduce disc excercise for some test and focus on LVM testing by using smaller extent size. Reduce number of teardown_devs calls and use vg/lvremove instead. Don't sleep for seconds on pvmove. FIXME: shell/lvconvert-mirror-basic.sh seems to need more checking. Test fails for smalled extent size then 512k.