1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/test
Leo Yan 92b47d8eb8 tests: idm: Add testing for IDM lock manager failure
If the IDM lock manager fails to access drives, might partially fail to
access drives (e.g. it fails to access one of three drives), or totally
fail to access drives, the lock manager should handle properly for these
cases.  When the drives are partially failure, if the lock manager still
can renew the lease for the locking, then it doesn't need to take any
action for the drive failure; otherwise, if it detects it cannot renew
the locking majority, it needs ti immediately kill the VG from the
lvmlockd.

This patch adds the test for verification the IDM lock manager failure;
the command can be used as below:

  # make check_lvmlockd_idm \
    LVM_TEST_BACKING_DEVICE=/dev/sdp3,/dev/sdl3,/dev/sdq3 \
    LVM_TEST_FAILURE=1 T=idm_ilm_failure.sh

Signed-off-by: Leo Yan <leo.yan@linaro.org>
2021-06-03 09:39:32 -05:00
..
api shellcheck: updates 2021-04-23 23:00:55 +02:00
dbus tests: test_pv_symlinks works only with /dev dir 2021-03-28 00:21:38 +01:00
lib tests: Add testing for lvmlockd failure 2021-06-03 09:39:32 -05:00
shell tests: idm: Add testing for IDM lock manager failure 2021-06-03 09:39:32 -05:00
unit makefiles: static linking enhancements 2021-04-12 09:54:15 +02:00
.gitignore test: add results/ to .gitignore 2016-12-10 18:00:25 +00:00
Makefile.in tests: Support idm failure injection 2021-06-03 09:39:32 -05:00