]> sourceware.org Git - lvm2.git/commit
tests: Support idm failure injection
authorLeo Yan <leo.yan@linaro.org>
Thu, 3 Jun 2021 09:59:16 +0000 (17:59 +0800)
committerDavid Teigland <teigland@redhat.com>
Thu, 3 Jun 2021 14:39:32 +0000 (09:39 -0500)
commit8c7b2df41fdddcd1b1c504522ab79300882eb72f
treedce7a70c75319aa46460b5eb6c705be4c4c21144
parentf83e11ff4332ce7ca24f6bfede4fe60c48123700
tests: Support idm failure injection

When the drive failure occurs, the IDM lock manager and lvmlockd should
handle this case properly.  E.g. when the IDM lock manager detects the
lease renewal failure caused by I/O errors, it should invoke the kill
path which is predefined by lvmlockd, so that the kill path program
(like lvmlockctl) can send requests to lvmlockd to stop and drop lock
for the relevant VG/LVs.

To verify the failure handling flow, this patch introduces an idm
failure injection program, it can input the "percentage" for drive
failures so that can emulate different failure cases.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
test/Makefile.in
test/lib/idm_inject_failure.c [new file with mode: 0644]
This page took 0.02923 seconds and 5 git commands to generate.