mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
If the fabric is broken instantly and the partial drives connected on the fabric disappear from the system. For this case, according to the locking algorithm in idm, the lease will not lose since the half drives are still alive so can renew the lease for the half drives. On the other hand, since the VG lock requires to acquire the majority of drive number, but half drives failure cannot achieve the majority, so it cannot acquire the lock for VG and thus cannot change metadata for VG. This patch is to add half brain failure for idm; the test command is as below: # make check_lvmlockd_idm \ LVM_TEST_BACKING_DEVICE=/dev/sdp3,/dev/sdo3 LVM_TEST_FAILURE=1 \ T=idm_fabric_failure_half_brain.sh Signed-off-by: Leo Yan <leo.yan@linaro.org>