master - test: Warn and exit on problematic integrity device behavior
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=be61bd6ff5c6c186f38cb36f8878e310df20eff0 Commit: be61bd6ff5c6c186f38cb36f8878e310df20eff0 Parent: 74a211cfd30e93d9388de5ac1ee22e630c840e94 Author: Marian Csontos <[email protected]> AuthorDate: Thu May 28 17:04:35 2020 +0200 Committer: Marian Csontos <[email protected]> CommitterDate: Thu May 28 17:04:35 2020 +0200
test: Warn and exit on problematic integrity device behavior
The first leg of integrity enabled raid device sometimes does not get recalculated.
--- test/shell/integrity-dmeventd.sh | 8 ++++++++ test/shell/integrity-large.sh | 8 ++++++++ test/shell/integrity-misc.sh | 8 ++++++++ test/shell/integrity.sh | 8 ++++++++ 4 files changed, 32 insertions(+)
test/shell/integrity-dmeventd.sh +8 -0
@@ -109,6 +109,14 @@ _wait_recalc() { sleep 1 done + # TODO: There is some strange bug, first leg of RAID with integrity + # enabled never gets in sync. I saw this in BB, but not when executing + # the commands manually + if test -z "$sync"; then + echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed" + dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}" + exit + fi echo "timeout waiting for recalc" return 1 }
test/shell/integrity-large.sh +8 -0
@@ -95,6 +95,14 @@ _wait_recalc() { sleep 1 done + # TODO: There is some strange bug, first leg of RAID with integrity + # enabled never gets in sync. I saw this in BB, but not when executing + # the commands manually + if test -z "$sync"; then + echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed" + dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}" + exit + fi echo "timeout waiting for recalc" return 1 }
test/shell/integrity-misc.sh +8 -0
@@ -109,6 +109,14 @@ _wait_recalc() { sleep 1 done + # TODO: There is some strange bug, first leg of RAID with integrity + # enabled never gets in sync. I saw this in BB, but not when executing + # the commands manually + if test -z "$sync"; then + echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed" + dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}" + exit + fi echo "timeout waiting for recalc" return 1 }
test/shell/integrity.sh +8 -0
@@ -204,6 +204,14 @@ _wait_recalc() { sleep 1 done + # TODO: There is some strange bug, first leg of RAID with integrity + # enabled never gets in sync. I saw this in BB, but not when executing + # the commands manually + if test -z "$sync"; then + echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed" + dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}" + exit + fi echo "timeout waiting for recalc" return 1 }